initial work for phi-nodes (ifs should work, loops not yet)
[libfirm] / include / libfirm / irtypeinfo.h
index 3a2b498..324d033 100644 (file)
@@ -61,24 +61,17 @@ void free_irtypeinfo(void);
 
 /* ------------ Irgraph state handling. ------------------------------- */
 
-/*
-#define irg_typeinfo_none         ir_typeinfo_none
-#define irg_typeinfo_consistent   ir_typeinfo_consistent
-#define irg_typeinfo_inconsistent ir_typeinfo_inconsistent
-#define irg_typeinfo_state        ir_typeinfo_state
-*/
-
 typedef enum {
-  ir_typeinfo_none,         /**< No typeinfo computed, calls to set/get_irn_typeinfo_type()
-                                 are invalid. */
-  ir_typeinfo_consistent,   /**< Type info valid, calls to set/get_irn_typeinfo_type() return
-                                 the proper type. */
-  ir_typeinfo_inconsistent  /**< Type info can be accessed, but it can be invalid
-                                 because of other transformations. */
+       ir_typeinfo_none,        /**< No typeinfo computed, calls to set/get_irn_typeinfo_type()
+                                     are invalid. */
+       ir_typeinfo_consistent,  /**< Type info valid, calls to set/get_irn_typeinfo_type() return
+                                     the proper type. */
+       ir_typeinfo_inconsistent /**< Type info can be accessed, but it can be invalid
+                                     because of other transformations. */
 } ir_typeinfo_state;
 
 void              set_irg_typeinfo_state(ir_graph *irg, ir_typeinfo_state s);
-ir_typeinfo_state get_irg_typeinfo_state(ir_graph *irg);
+ir_typeinfo_state get_irg_typeinfo_state(const ir_graph *irg);
 
 /** Returns accumulated type information state information.
  *
@@ -99,7 +92,7 @@ void              set_irp_typeinfo_inconsistent(void);
  * ir_typeinfo_consistent or ir_typeinfo_inconsistent.  They
  * assume current_ir_graph set properly.
  */
-ir_type *get_irn_typeinfo_type(ir_node *n);
+ir_type *get_irn_typeinfo_type(const ir_node *n);
 void    set_irn_typeinfo_type(ir_node *n, ir_type *tp);
 
 #endif