X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.h;h=a40e98365538830bf7a417850a50cd1ab8dd58ce;hb=9f9273149e9a3aabc0333393db7f5dc07491325b;hp=52f8b4b97f0f5cc0b9086977c1b46a6f8f1aec21;hpb=44fec44bd47ef88ae276179866d4a65cda6e0253;p=libfirm diff --git a/ir/ir/irprog.h b/ir/ir/irprog.h index 52f8b4b97..a40e98365 100644 --- a/ir/ir/irprog.h +++ b/ir/ir/irprog.h @@ -157,6 +157,20 @@ 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); + + /** Return the graph for global constants. * * Returns an irgraph that only contains constant expressions for