loopinfo state handling on program basis
authorGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 15 Jun 2005 08:00:19 +0000 (08:00 +0000)
committerGötz Lindenmaier <goetz@ipd.info.uni-karlsruhe.de>
Wed, 15 Jun 2005 08:00:19 +0000 (08:00 +0000)
[r6014]

ir/ir/irgraph.c
ir/ir/irgraph.h

index 68cf783..24ac3a7 100644 (file)
@@ -652,6 +652,15 @@ void
   _set_irg_loopinfo_inconsistent(irg);
 }
 
   _set_irg_loopinfo_inconsistent(irg);
 }
 
+void set_irp_loopinfo_inconsistent(void) {
+  int i, n_irgs = get_irp_n_irgs();
+  for (i = 0; i < n_irgs; ++i) {
+    set_irg_loopinfo_inconsistent(get_irp_irg(i));
+  }
+}
+
+
+
 void
 (set_irg_pinned)(ir_graph *irg, op_pin_state p) {
   _set_irg_pinned(irg, p);
 void
 (set_irg_pinned)(ir_graph *irg, op_pin_state p) {
   _set_irg_pinned(irg, p);
index 0d4ed54..d0e2ab7 100644 (file)
@@ -364,7 +364,7 @@ typedef enum {
   loopinfo_inter            = 8,       /**< Loop information for interprocedural view. */
 
   loopinfo_for_firmjni      = 16,      /**< A hack for firmjni:  all enums must differ as they
   loopinfo_inter            = 8,       /**< Loop information for interprocedural view. */
 
   loopinfo_for_firmjni      = 16,      /**< A hack for firmjni:  all enums must differ as they
-                      are used in a switch. */
+                                         are used in a switch. */
 
   /** IntRAprocedural loop information constructed and valid. */
   loopinfo_consistent         = loopinfo_constructed | loopinfo_for_firmjni | loopinfo_valid,
 
   /** IntRAprocedural loop information constructed and valid. */
   loopinfo_consistent         = loopinfo_constructed | loopinfo_for_firmjni | loopinfo_valid,
@@ -394,8 +394,12 @@ irg_loopinfo_state get_irg_loopinfo_state(const ir_graph *irg);
 void set_irg_loopinfo_state(ir_graph *irg, irg_loopinfo_state s);
 
 /** Sets the loop information state to the appropriate inconsistent state.
 void set_irg_loopinfo_state(ir_graph *irg, irg_loopinfo_state s);
 
 /** Sets the loop information state to the appropriate inconsistent state.
-   If state is 'none' does not change. */
*  If state is 'none' does not change. */
 void set_irg_loopinfo_inconsistent(ir_graph *irg);
 void set_irg_loopinfo_inconsistent(ir_graph *irg);
+/** Sets the loop information state to the appropriate inconsistent state.
+ *  If state is 'none' does not change.
+ *  Does this for all irgs. */
+void set_irp_loopinfo_inconsistent(void);
 
 /** state: callee_information_state
  *  Call nodes contain a list of possible callees.  This list must be
 
 /** state: callee_information_state
  *  Call nodes contain a list of possible callees.  This list must be