*** empty log message ***
[libfirm] / ir / ir / irop.h
index 5f6ed7d..9dc564e 100644 (file)
@@ -14,6 +14,7 @@
 # ifndef _IROP_H_
 # define _IROP_H_
 
+# include <stddef.h>
 # include "ident.h"
 
 typedef enum {
@@ -29,12 +30,7 @@ typedef enum {
   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;
 
@@ -44,7 +40,6 @@ extern ir_op *op_Jmp;
 extern ir_op *op_Cond;
 extern ir_op *op_Return;
 extern ir_op *op_Raise;
-
 extern ir_op *op_Sel;
 
 extern ir_op *op_Const;
@@ -85,13 +80,11 @@ extern ir_op *op_Proj;
 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. */
 
-/* returns the attribute size of the operator. */
+opcode get_op_code (ir_op *op);
+ident *get_op_name(ir_op *op);
 int get_op_attr_size (ir_op *op);