X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=e542a5495763aaf9e33deed99bd5cd4f41f2f49e;hb=a947c2090825c6a49b3fbfaafc00c8c34d649a40;hp=5f7c53993ea65d1d7e1eb8c556b4bc3d1051536f;hpb=1b1a0f1d75893ea203c8c0911e7d787a623d640d;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 5f7c53993..e542a5495 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -38,6 +38,8 @@ #include "xmalloc.h" +void be_init_op(void); + /** the available next opcode */ static unsigned next_iro = iro_MaxOpcode; @@ -113,6 +115,7 @@ ir_op *op_Bound; ir_op *get_op_Bound (void) { return op_Bound; } ir_op *op_Pin; ir_op *get_op_Pin (void) { return op_Pin; } ir_op *op_ASM; ir_op *get_op_ASM (void) { return op_ASM; } +ir_op *op_Dummy; ir_op *get_op_Dummy (void) { return op_Dummy; } ir_op *op_Anchor; ir_op *get_op_Anchor (void) { return op_Anchor; } /* @@ -356,6 +359,8 @@ init_op(void) op_ASM = new_ir_op(iro_ASM, "ASM", op_pin_state_mem_pinned, K|M, oparity_variable, -1, sizeof(asm_attr), NULL); op_Builtin = new_ir_op(iro_Builtin, "Builtin", op_pin_state_mem_pinned, M, oparity_variable, -1, sizeof(builtin_attr), NULL); + op_Dummy = new_ir_op(iro_Dummy, "Dummy", op_pin_state_pinned, X|F|S|c|NB,oparity_zero, -1, 0, NULL); + op_Anchor = new_ir_op(iro_Anchor, "Anchor", op_pin_state_pinned, N|NB, oparity_variable, -1, 0, NULL); #undef S @@ -369,6 +374,9 @@ init_op(void) #undef E #undef NB #undef NI + + /* initialize backend opcodes */ + be_init_op(); } /* init_op */ @@ -443,6 +451,7 @@ void finish_op(void) { free_ir_op (op_Pin ); op_Pin = NULL; free_ir_op (op_ASM ); op_ASM = NULL; + free_ir_op (op_Dummy ); op_Dummy = NULL; free_ir_op (op_Anchor ); op_Anchor = NULL; }