X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=2fec766312e57f62a894e21a20edbcd9f64ffabf;hb=169fd803ea2ed08171113c1fd7ab4e528e1ebc26;hp=a2497ea1360dcc45b8679e4336ae8e90c52e90f5;hpb=99d5b69d2e62cfc4f3ca0268677b867f07631edb;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index a2497ea13..2fec76631 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -359,3 +359,13 @@ void set_op_pinned(ir_op *op, op_pin_state op_pin_state_pinned) { unsigned get_next_ir_opcode(void) { return next_iro++; } + +/* Returns the generic function pointer from an ir operation. */ +op_func (get_generic_function_ptr)(const ir_op *op) { + return _get_generic_function_ptr(op); +} + +/* Store a generic function pointer into an ir operation. */ +void (set_generic_function_ptr)(ir_op *op, op_func func) { + _set_generic_function_ptr(op, func); +}