X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop_t.h;h=0e6cbb050f9049945fa18d1ddbd3dac8ced25772;hb=e1c33a238578342a072e1c95ff12eefe6d0acd37;hp=61b20e781356a3a20a0b9ccb99ccf46f5ec7ed58;hpb=79f98a607640a4cb268f157bf64d52c8510acd3f;p=libfirm diff --git a/ir/ir/irop_t.h b/ir/ir/irop_t.h index 61b20e781..0e6cbb050 100644 --- a/ir/ir/irop_t.h +++ b/ir/ir/irop_t.h @@ -56,7 +56,7 @@ void default_copy_attr(const ir_node *old_node, ir_node *new_node); * Returns the attribute size of nodes of this opcode. * @note Use not encouraged, internal feature. */ -static INLINE int get_op_attr_size (const ir_op *op) { +static INLINE size_t get_op_attr_size (const ir_op *op) { return op->attr_size; } @@ -111,6 +111,11 @@ static INLINE int is_op_machine(const ir_op *op) { return op->flags & irop_flag_machine; } +/** Returns non-zero if operation is a machine operand */ +static INLINE int is_op_machine_operand(const ir_op *op) { + return op->flags & irop_flag_machine_op; +} + /** Returns non-zero if operation is a machine user op number n */ static INLINE int is_op_machine_user(const ir_op *op, unsigned n) { return op->flags & (irop_flag_user << n);