Dump calling conventions for entities
[libfirm] / ir / ir / irop.h
index 30d6249..5e7b4a8 100644 (file)
@@ -72,7 +72,7 @@ typedef enum {
   iro_Load, iro_Store, iro_Alloc, iro_Free, iro_Sync,
   iro_Proj, iro_Tuple, iro_Id, iro_Bad, iro_Confirm,
   iro_Unknown, iro_Filter, iro_Break, iro_CallBegin, iro_EndReg, iro_EndExcept,
-  iro_NoMem, iro_Mux,
+  iro_NoMem, iro_Mux, iro_CopyB,
   iro_MaxOpcode
 } opcode;
 
@@ -139,6 +139,7 @@ extern ir_op *op_EndExcept;       ir_op *get_op_EndExcept (void);
 
 extern ir_op *op_NoMem;           ir_op *get_op_NoMem     (void);
 extern ir_op *op_Mux;             ir_op *get_op_Mux       (void);
+extern ir_op *op_CopyB;           ir_op *get_op_CopyB     (void);
 
 /** Returns the ident for the opcode name */
 ident *get_op_ident(const ir_op *op);
@@ -188,4 +189,22 @@ unsigned get_next_ir_opcode(void);
 ir_op * new_ir_op(opcode code, const char *name, op_pin_state p,
                   unsigned flags, op_arity opar, int op_index, size_t attr_size);
 
+/**
+ * A generic function pointer.
+ */
+typedef void (*op_func)(void);
+
+/** The NULL-function. */
+#define NULL_FUNC       ((generic_func)(NULL))
+
+/**
+ * Returns the generic function pointer from an ir operation.
+ */
+op_func get_generic_function_ptr(const ir_op *op);
+
+/**
+ * Store a generic function pointer into an ir operation.
+ */
+void set_generic_function_ptr(ir_op *op, op_func func);
+
 # endif /* _IROP_H_ */