projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CVS:
[libfirm]
/
ir
/
ir
/
irop.c
diff --git
a/ir/ir/irop.c
b/ir/ir/irop.c
index
f6dc2b0
..
da6f27d
100644
(file)
--- a/
ir/ir/irop.c
+++ b/
ir/ir/irop.c
@@
-5,7
+5,7
@@
**
*/
**
*/
-# include "irop.h"
+# include "irop
_t
.h"
# include "irnode_t.h"
# include "misc.h"
# include "irnode_t.h"
# include "misc.h"
@@
-127,6
+127,19
@@
init_op(void)
op_Bad = new_ir_op (iro_Bad, id_from_str ("Bad", 3), 0, 0);
}
op_Bad = new_ir_op (iro_Bad, id_from_str ("Bad", 3), 0, 0);
}
+/* 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_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;
/* returns the attribute size of the operator. */
int get_op_attr_size (ir_op *op) {
return op->attr_size;