X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.h;h=3bb8113cdcc0f7ec7190e132d5551e8e59e8f8aa;hb=acf7f9c98cff58c72656a3aab19cd1e224446dc9;hp=52f8b4b97f0f5cc0b9086977c1b46a6f8f1aec21;hpb=44fec44bd47ef88ae276179866d4a65cda6e0253;p=libfirm diff --git a/ir/ir/irprog.h b/ir/ir/irprog.h index 52f8b4b97..3bb8113cd 100644 --- a/ir/ir/irprog.h +++ b/ir/ir/irprog.h @@ -157,6 +157,23 @@ int get_irp_n_modes(void); /** Returns the mode at position pos in the irp. */ ir_mode *get_irp_mode(int pos); +/** Adds opcode to the list of opcodes in irp. */ +void add_irp_opcode(ir_op *opcode); + +/** Removes opcode from the list of opcodes, deallocates it and + shrinks the list by one. */ +void remove_irp_opcode(ir_op *opcode); + +/** Returns the number of all opcodes in the irp. */ +int get_irp_n_opcodes(void); + +/** Returns the opcode at position pos in the irp. */ +ir_op *get_irp_opcode(int pos); + +/** Sets the generic function pointer of all opcodes to NULL */ +void clear_irp_opcodes_generic_func(void); + + /** Return the graph for global constants. * * Returns an irgraph that only contains constant expressions for