X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firop.c;h=da6f27d0a36a0243837a2e9923d38ae781ae51b4;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=033f0fa1c1ff61789e3fbf89b6542ab48aa30a97;hpb=66065b2e2b79a428ccd24f065f099f22fbf6caf2;p=libfirm diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 033f0fa1c..da6f27d0a 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -127,16 +127,20 @@ init_op(void) op_Bad = new_ir_op (iro_Bad, id_from_str ("Bad", 3), 0, 0); } -/* returns the attribute size of the operator. */ +/* Returns the string for the opcode. */ +const char *get_op_name (ir_op *op) { + return id_to_str(op->name); +} opcode get_op_code (ir_op *op){ return op->code; } -ident *get_op_name(ir_op *op){ +ident *get_op_ident(ir_op *op){ return op->name; } +/* returns the attribute size of the operator. */ int get_op_attr_size (ir_op *op) { return op->attr_size; }