never set the startblock to bad (even without the self-referencing loop)
[libfirm] / ir / ir / irop_t.h
index ae1f0e0..11ec792 100644 (file)
@@ -20,7 +20,7 @@
 
 /** The type of an ir_op. */
 struct ir_op {
-  opcode code;            /**< The unique opcode of the op. */
+  ir_opcode code;         /**< The unique opcode of the op. */
   ident *name;            /**< The name of the op. */
   size_t attr_size;       /**< Space needed in memory for private attributes. */
   op_pin_state op_pin_state_pinned; /**< How to deal with the node in CSE, PRE. */
@@ -111,6 +111,11 @@ static INLINE int is_op_keep(const ir_op *op) {
   return op->flags & irop_flag_keep;
 }
 
+/** Returns non-zero if operation must always be placed in the start block. */
+static INLINE int is_op_start_block_placed(const ir_op *op) {
+  return op->flags & irop_flag_start_block;
+}
+
 /** Returns non-zero if operation is a machine operation */
 static INLINE int is_op_machine(const ir_op *op) {
   return op->flags & irop_flag_machine;
@@ -126,7 +131,7 @@ static INLINE int is_op_machine_user(const ir_op *op, unsigned n) {
   return op->flags & (irop_flag_user << n);
 }
 
-static INLINE opcode _get_op_code(const ir_op *op) {
+static INLINE ir_opcode _get_op_code(const ir_op *op) {
   return op->code;
 }