* @param old_node the old node from which the attributes are read
* @param new_node the new node to which the attributes are written
*/
* @param old_node the old node from which the attributes are read
* @param new_node the new node to which the attributes are written
*/
/**
* Returns the attribute size of nodes of this opcode.
* @note Use not encouraged, internal feature.
*/
/**
* Returns the attribute size of nodes of this opcode.
* @note Use not encouraged, internal feature.
*/
* Returns non-zero if op is a control flow opcode,
* like Start, End, Jmp, Cond, Return, Raise or Bad.
*/
* Returns non-zero if op is a control flow opcode,
* like Start, End, Jmp, Cond, Return, Raise or Bad.
*/
-/**
- * Returns non-zero if the operation manipulates interprocedural control flow:
- * CallBegin, EndReg, EndExcept
- */
-static INLINE int is_ip_cfopcode(const ir_op *op) {
- return op->flags & irop_flag_ip_cfopcode;
+static inline bool is_op_unknown_jump(const ir_op *op)
+{
+ return op->flags & irop_flag_unknown_jump;
return op->flags & irop_flag_keep;
}
/** Returns non-zero if operation must always be placed in the start block. */
return op->flags & irop_flag_keep;
}
/** Returns non-zero if operation must always be placed in the start block. */
return op->flags & irop_flag_start_block;
}
/** Returns non-zero if operation is a machine operation */
return op->flags & irop_flag_start_block;
}
/** Returns non-zero if operation is a machine operation */
-static INLINE int is_op_machine_user(const ir_op *op, unsigned n) {
- return op->flags & (irop_flag_user << n);
+static inline bool is_op_machine_user(const ir_op *op, unsigned n)
+{
+ return op->flags & (irop_flag_user << n);
-static INLINE void _set_generic_function_ptr(ir_op *op, op_func func) {
- op->ops.generic = func;
+static inline void _set_generic_function_ptr(ir_op *op, op_func func)
+{
+ op->ops.generic = func;
#define get_op_code(op) _get_op_code(op)
#define get_op_ident(op) _get_op_ident(op)
#define get_op_pinned(op) _get_op_pinned(op)
#define get_op_ops(op) _get_op_ops(op)
#define set_op_tag(op, tag) _set_op_tag((op), (tag))
#define get_op_tag(op) _get_op_tag(op)
#define get_op_code(op) _get_op_code(op)
#define get_op_ident(op) _get_op_ident(op)
#define get_op_pinned(op) _get_op_pinned(op)
#define get_op_ops(op) _get_op_ops(op)
#define set_op_tag(op, tag) _set_op_tag((op), (tag))
#define get_op_tag(op) _get_op_tag(op)