/** 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. */
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;
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;
}