renamed all type * to ir_type *
[libfirm] / ir / ir / irgraph_t.h
index 3f7aa49..ef3b38f 100644 (file)
@@ -22,6 +22,7 @@
 #ifndef _IRGRAPH_T_H_
 #define _IRGRAPH_T_H_
 
+#include "firm_types.h"
 #include "irgraph.h"
 
 #include "firm_common_t.h"
@@ -58,29 +59,29 @@ struct ir_graph {
   struct entity  *ent;               /**< The entity of this procedure, i.e.,
                     the type of the procedure and the
                     class it belongs to. */
-  struct type    *frame_type;    /**< A class type representing the stack frame.
-                    Can include "inner" methods. */
-  struct ir_node *start_block;   /**< block the start node will belong to */
-  struct ir_node *start;         /**< start node of this ir_graph */
-  struct ir_node *end_block;     /**< block the end node will belong to */
-  struct ir_node *end;           /**< end node of this ir_graph */
-  struct ir_node *end_reg;       /**< end node of this ir_graph */
-  struct ir_node *end_except;    /**< end node of this ir_graph */
-  struct ir_node *cstore;        /**< constant store -- no more needed!! */
-  struct ir_node *frame;         /**< method's frame */
-  struct ir_node *globals;       /**< pointer to the data segment containing all
-                                      globals as well as global procedures. */
-  struct ir_node *initial_mem;   /**< initial memory of this graph */
-  struct ir_node *args;          /**< methods arguments */
-  struct ir_node **proj_args;    /**< projs of the methods arguments */
-  struct ir_node *bad;           /**< bad node of this ir_graph, the one and
-                    only in this graph */
-  struct ir_node *no_mem;        /**< NoMem node of this ir_graph, the one and
+  ir_type *frame_type;    /**< A class type representing the stack frame.
+                               Can include "inner" methods. */
+  ir_node *start_block;   /**< block the start node will belong to */
+  ir_node *start;         /**< start node of this ir_graph */
+  ir_node *end_block;     /**< block the end node will belong to */
+  ir_node *end;           /**< end node of this ir_graph */
+  ir_node *end_reg;       /**< end node of this ir_graph */
+  ir_node *end_except;    /**< end node of this ir_graph */
+  ir_node *cstore;        /**< constant store -- no more needed!! */
+  ir_node *frame;         /**< method's frame */
+  ir_node *globals;       /**< pointer to the data segment containing all
+                               globals as well as global procedures. */
+  ir_node *initial_mem;   /**< initial memory of this graph */
+  ir_node *args;          /**< methods arguments */
+  ir_node **proj_args;    /**< projs of the methods arguments */
+  ir_node *bad;           /**< bad node of this ir_graph, the one and
+                               only in this graph */
+  ir_node *no_mem;        /**< NoMem node of this ir_graph, the one and
                                       only in this graph */
   /* GL removed: we need unknown with mode for analyses. */
   /*   struct ir_node *unknown;*/           /**< unknown node of this ir_graph */
   struct obstack *obst;          /**< obstack where all of the ir_nodes live */
-  struct ir_node *current_block; /**< block for newly gen_*()-erated ir_nodes */
+  ir_node *current_block;        /**< block for newly gen_*()-erated ir_nodes */
   struct obstack *extbb_obst;    /**< obstack for extended basic block info */
 
   /* -- Fields for graph properties -- */
@@ -89,7 +90,7 @@ struct ir_graph {
 
   /* -- Fields indicating different states of irgraph -- */
   irg_phase_state phase_state;       /**< compiler phase */
-  op_pin_state op_pin_state_pinned;  /**< Flag for status of nodes */
+  op_pin_state irg_pinned_state;     /**< Flag for status of nodes */
   irg_outs_state outs_state;         /**< Out edges. */
   irg_dom_state dom_state;           /**< Dominator information */
   ir_typeinfo_state typeinfo_state;        /**< Validity of type information */
@@ -183,11 +184,11 @@ int node_is_in_irgs_storage(ir_graph *irg, ir_node *n);
 /* inline functions for graphs                                       */
 /*-------------------------------------------------------------------*/
 
-extern int __interprocedural_view;
+extern int firm_interprocedural_view;
 
 static INLINE int
 _get_interprocedural_view(void) {
-  return __interprocedural_view;
+  return firm_interprocedural_view;
 }
 
 static INLINE int
@@ -376,7 +377,7 @@ _set_irg_phase_low(ir_graph *irg) {
 
 static INLINE op_pin_state
 _get_irg_pinned(const ir_graph *irg) {
-  return irg->op_pin_state_pinned;
+  return irg->irg_pinned_state;
 }
 
 static INLINE irg_outs_state
@@ -417,7 +418,7 @@ _set_irg_loopinfo_inconsistent(ir_graph *irg) {
 
 static INLINE void
 _set_irg_pinned(ir_graph *irg, op_pin_state p) {
-  irg->op_pin_state_pinned = p;
+  irg->irg_pinned_state = p;
 }
 
 static INLINE irg_callee_info_state