fix
[libfirm] / ir / ir / irreflect.h
index c0db562..8e303f5 100644 (file)
@@ -1,13 +1,31 @@
-/**
- * @file irreflect.h
- * @date 9.9.2004
- * @author Sebastian Hack
- * @brief Reflection for Firm operations.
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
  *
- * $Id$
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
  */
-#ifndef _FIRM_IR_REFLECT_H_
-#define _FIRM_IR_REFLECT_H_
+
+/**
+ * @file
+ * @brief   Reflection for Firm operations.
+ * @author  Sebastian Hack
+ * @date    9.9.2004
+ * @version $Id$
+ */
+#ifndef FIRM_IR_REFLECT_H
+#define FIRM_IR_REFLECT_H
 
 #include <limits.h>
 
@@ -83,7 +101,7 @@ rflct_mode_class_t rflct_get_mode_class(const ir_mode *mode);
  * @param opc The opcode.
  * @return The number of signatures for this opcode.
  */
-int rflct_get_signature_count(opcode opc);
+int rflct_get_signature_count(ir_opcode opc);
 
 /**
  * Try to get the signature, that matches to a given instance
@@ -100,7 +118,7 @@ int rflct_get_signature(const ir_node *irn);
  * @param sig The signature you are refering to.
  * @return The number of arguments.
  */
-int rflct_get_in_args_count(opcode opc, int sig);
+int rflct_get_in_args_count(ir_opcode opc, int sig);
 
 /**
  * Get the number of out arguments.
@@ -109,7 +127,7 @@ int rflct_get_in_args_count(opcode opc, int sig);
  * @param sig The signature you are refering to.
  * @return The number of arguments.
  */
-int rflct_get_out_args_count(opcode opc, int sig);
+int rflct_get_out_args_count(ir_opcode opc, int sig);
 
 #define rflct_get_args_count(opc, sig, use) \
   ((use) ? rflct_get_in_args_count(opc, sig) : rflct_get_out_args_count(opc, sig))
@@ -123,7 +141,7 @@ int rflct_get_out_args_count(opcode opc, int sig);
  * 0 and the signature count).
  * @return The array.
  */
-const rflct_arg_t *rflct_get_in_args(opcode opc, int sig);
+const rflct_arg_t *rflct_get_in_args(ir_opcode opc, int sig);
 
 /**
  * Get the array of def args.
@@ -134,7 +152,7 @@ const rflct_arg_t *rflct_get_in_args(opcode opc, int sig);
  * 0 and the signature count).
  * @return The array.
  */
-const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
+const rflct_arg_t *rflct_get_out_args(ir_opcode opc, int sig);
 
 #define rflct_get_args(opc, sig, use) \
   ((use) ? rflct_get_in_args(opc, sig) : rflct_get_out_args(opc, sig))
@@ -147,7 +165,7 @@ const rflct_arg_t *rflct_get_out_args(opcode opc, int sig);
  * @param sig The signature.
  * @return buf.
  */
-char *rflct_to_string(char *buf, int n, opcode opc, int sig);
+char *rflct_to_string(char *buf, int n, ir_opcode opc, int sig);
 
 /**
  * Get a string representation of a mode class.
@@ -164,7 +182,7 @@ char *rflct_mode_class_name(char *str, int n, rflct_mode_class_t mc);
  * @param name        A name.
  * @param commutative non-zero, if the opcode is commutative.
  */
-void rflct_new_opcode(opcode opc, const char *name, int commutative);
+void rflct_new_opcode(ir_opcode opc, const char *name, int commutative);
 
 /**
  * Add a signature to the opcode.
@@ -173,7 +191,7 @@ void rflct_new_opcode(opcode opc, const char *name, int commutative);
  * @return non-zero, if the signature was added successfully, false if no
  * more signatures can be added to the opcode.
  */
-int rflct_opcode_add_signature(opcode opc, rflct_sig_t *sig);
+int rflct_opcode_add_signature(ir_opcode opc, rflct_sig_t *sig);
 
 /**
  * Allocate a new signature.
@@ -216,5 +234,4 @@ int rflct_signature_set_arg(rflct_sig_t *sig, int is_use, int num,
  */
 int rflct_signature_get_index(const rflct_sig_t *sig, int is_use, int num);
 
-
-#endif /* _FIRM_IR_REFLECT_H_ */
+#endif