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.h
diff --git
a/ir/ir/irop.h
b/ir/ir/irop.h
index
eee223b
..
6ad92f6
100644
(file)
--- a/
ir/ir/irop.h
+++ b/
ir/ir/irop.h
@@
-30,12
+30,7
@@
typedef enum {
iro_Proj, iro_Tuple, iro_Id, iro_Bad
} opcode;
iro_Proj, iro_Tuple, iro_Id, iro_Bad
} opcode;
-typedef struct {
- opcode code;
- ident *name;
- size_t attr_size;
- int labeled;
-} ir_op;
+typedef struct ir_op ir_op;
extern ir_op *op_Block;
extern ir_op *op_Block;
@@
-85,14
+80,18
@@
extern ir_op *op_Proj;
extern ir_op *op_Id;
extern ir_op *op_Bad;
extern ir_op *op_Id;
extern ir_op *op_Bad;
-/* create a new ir operation */
-ir_op * new_ir_op (opcode code, ident *name, size_t attr_size, int labeled);
-/*
initialize the irop module
*/
-
void init_op (void
);
+/*
Returns the string for the opcode.
*/
+
const char *get_op_name (ir_op *op
);
-/*
returns the attribute size of the operator.
*/
-
int get_op_attr_size
(ir_op *op);
+/*
Returns the enum for the opcode
*/
+
opcode get_op_code
(ir_op *op);
+/* Returns the ident for the opcode name */
+ident *get_op_ident (ir_op *op);
+
+/* Returns the attribute size of the opcode.
+ Use not encouraged, internal feature. */
+int get_op_attr_size (ir_op *op);
# endif /* _IROP_H_ */
# endif /* _IROP_H_ */