Added Exception marking support --flo
[libfirm] / ir / ir / irop.h
index 6ad92f6..1ea3b1f 100644 (file)
@@ -7,10 +7,13 @@
 **  irop.h  operators of firm nodes
 **
 **  This module specifies the opcodes possible for ir nodes.  Their
-**  definition is close to the operations specified in UKA Tech-Report 1999-44
+**  definition is close to the operations specified in UKA Tech-Report
+**  1999-14
 **
 */
 
+/* $Id$ */
+
 # ifndef _IROP_H_
 # define _IROP_H_
 
@@ -90,8 +93,22 @@ opcode get_op_code      (ir_op *op);
 /* Returns the ident for the opcode name */
 ident *get_op_ident     (ir_op *op);
 
-/* Returns the attribute size of the opcode.
+typedef enum {
+  floats = 0,    /* Nodes of this opcode can be placed in any basic block. */
+  pinned           /* Nodes must remain in this basic block. */
+} op_pinned;
+
+op_pinned get_op_pinned (ir_op *op);
+/* Sets pinned in the opcode.  Setting it to floating has no effect
+   for Block, Phi and control flow nodes. */
+void      set_op_pinned(ir_op *op, op_pinned pinned);
+
+/* Returns the attribute size of nodes of this opcode.
    Use not encouraged, internal feature. */
 int    get_op_attr_size (ir_op *op);
 
+/* Returns true if op is one of Start, End, Jmp, Cond, Return, Raise or Bad. */
+int is_cfopcode(ir_op *op);
+
+
 # endif /* _IROP_H_ */