+/** Returns non-zero if operation is a const-like op */
+static inline bool is_op_constlike(const ir_op *op)
+{
+ return op->flags & irop_flag_constlike;
+}
+
+static inline bool is_op_uses_memory(const ir_op *op)
+{
+ return op->flags & irop_flag_uses_memory;
+}
+
+/** Returns non-zero if operation must always be optimized */
+static inline bool is_op_always_opt(const ir_op *op)
+{
+ return op->flags & irop_flag_always_opt;
+}
+
+/** Returns non-zero if operation is a keep-like op */
+static inline bool 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 bool 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 bool is_op_machine(const ir_op *op)
+{
+ return op->flags & irop_flag_machine;
+}
+
+/** Returns non-zero if operation is a machine operand */
+static inline bool is_op_machine_operand(const ir_op *op)
+{
+ return op->flags & irop_flag_machine_op;
+}
+
+/** Returns non-zero if operation is CSE neutral */
+static inline bool is_op_cse_neutral(const ir_op *op)
+{
+ return op->flags & irop_flag_cse_neutral;
+}
+
+/** Returns non-zero if operation is a machine user op number n */
+static inline bool is_op_machine_user(const ir_op *op, unsigned n)
+{
+ return op->flags & (irop_flag_user << n);
+}
+
+static inline unsigned _get_op_code(const ir_op *op)
+{
+ return op->code;
+}
+
+static inline ident *_get_op_ident(const ir_op *op)
+{
+ return op->name;
+}