Fixed the last fix again:
[libfirm] / ir / lower / lower_intrinsics.h
index e413c48..362ba7b 100644 (file)
@@ -1,23 +1,30 @@
 /*
- * Project:     libFIRM
- * File name:   ir/lower/lower_intrinsics.h
- * Purpose:     lowering of Calls of intrinsic functions
- * Author:      Michael Beck
- * Created:
- * CVS-ID:      $Id$
- * Copyright:   (c) 1998-2005 Universität Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ * 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.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
  */
 
 /**
- * @file lower_intrinsics.h
- *
- * Lowering of Calls of intrinsic functions.
- *
- * @author Michael Beck
+ * @file
+ * @brief   lowering of Calls of intrinsic functions
+ * @author  Michael Beck
+ * @version $Id$
  */
-#ifndef _LOWER_INTRINSICS_H_
-#define _LOWER_INTRINSICS_H_
+#ifndef FIRM_LOWER_LOWER_INTRINSICS_H
+#define FIRM_LOWER_LOWER_INTRINSICS_H
 
 #include "firm_types.h"
 
@@ -41,9 +48,10 @@ enum ikind {
  */
 typedef struct _i_call_record {
   enum ikind    kind;       /**< must be INTRINSIC_CALL */
-  entity        *i_ent;     /**< the entity representing an intrinsic call */
+  ir_entity     *i_ent;     /**< the entity representing an intrinsic call */
   i_mapper_func i_mapper;   /**< the mapper function to call */
   void          *ctx;       /**< mapper context */
+  void          *link;      /**< used in the construction algorithm, must be NULL */
 } i_call_record;
 
 /**
@@ -54,6 +62,7 @@ typedef struct _i_instr_record {
   ir_op         *op;        /**< the opcode that must be mapped. */
   i_mapper_func i_mapper;   /**< the mapper function to call */
   void          *ctx;       /**< mapper context */
+  void          *link;      /**< used in the construction algorithm, must be NULL */
 } i_instr_record;
 
 /**
@@ -77,7 +86,7 @@ typedef union _i_record {
  *
  * @return number of found intrinsics.
  */
-unsigned lower_intrinsics(const i_record *list, int length);
+unsigned lower_intrinsics(i_record *list, int length);
 
 /**
  * A mapper for the integer absolute value: inttype abs(inttype v).
@@ -99,12 +108,12 @@ int i_mapper_Alloca(ir_node *call, void *ctx);
  * A runtime routine description.
  */
 typedef struct _runtime_rt {
-  entity  *ent;            /**< The entity representing the runtime routine. */
-  ir_mode *mode;           /**< The operation mode of the mapped instruction. */
-  long    mem_proj_nr;      /**< if >= 0, create a memory ProjM() */
-  long    exc_proj_nr;      /**< if >= 0, create a exception ProjX() */
-  long    exc_mem_proj_nr;  /**< if >= 0, create a exception memory ProjM() */
-  long    res_proj_nr;      /**< if >= 0, first result projection number */
+  ir_entity *ent;            /**< The entity representing the runtime routine. */
+  ir_mode   *mode;           /**< The operation mode of the mapped instruction. */
+  long      mem_proj_nr;     /**< if >= 0, create a memory ProjM() */
+  long      exc_proj_nr;     /**< if >= 0, create a exception ProjX() */
+  long      exc_mem_proj_nr; /**< if >= 0, create a exception memory ProjM() */
+  long      res_proj_nr;     /**< if >= 0, first result projection number */
 } runtime_rt;
 
 /**
@@ -138,7 +147,8 @@ typedef struct _runtime_rt {
     INTRINSIC_INSTR,
     op_Div,
     i_mapper_RuntimeCall,
-    &rt_Div
+    &rt_Div,
+    NULL
   };
   @endcode
  *
@@ -156,10 +166,11 @@ typedef struct _runtime_rt {
     INTRINSIC_INSTR,
     op_Conv,
     i_mapper_RuntimeCall,
-    &rt_Float2Double
+    &rt_Float2Double,
+    NULL
   };
   @endcode
  */
 int i_mapper_RuntimeCall(ir_node *node, runtime_rt *rt);
 
-#endif /* _LOWER_INTRINSICS_H_ */
+#endif /* FIRM_LOWER_LOWER_INTRINSICS_H */