rename type entity into ir_entity
[libfirm] / ir / ana2 / pto_comp.h
index dc7e0b6..cefb991 100644 (file)
@@ -16,7 +16,9 @@
 # ifndef _PTO_COMP_
 # define _PTO_COMP_
 
+# include "pto.h"
 # include "irnode.h"
+# include "qset.h"
 
 /* ===================================================
    Global Defines:
@@ -26,7 +28,7 @@
  Global Data Types:
  =================================================== */
 typedef struct pto_str {
-  int dummy;
+  qset_t *values;
 } pto_t;
 
 typedef struct alloc_pto_str {
@@ -35,9 +37,14 @@ typedef struct alloc_pto_str {
   pto_t *curr_pto;              /* name for current ctx */
 } alloc_pto_t;
 
+struct pto_env_str;             /* forward decl only */
+
 /* ===================================================
    Global Prototypes:
    =================================================== */
+/* Main loop: Initialise the graph for the given ctx_idx and iterate over it */
+void pto_graph (ir_graph*, int, struct pto_env_str*);
+
 /* Set the PTO value for the given node */
 void set_node_pto (ir_node*, pto_t*);
 /*Get the PTO value for the given non-alloc node */
@@ -50,11 +57,6 @@ void set_alloc_pto (ir_node*, alloc_pto_t*);
 pto_t *get_alloc_pto (ir_node*);
 
 
-/* Perform PTO on all visible graphs. */
-void pto_init (void);
-void pto_run (int);
-void pto_cleanup (void);
-
 /* ===================================================
    Global Variables:
    =================================================== */
@@ -66,6 +68,12 @@ void pto_cleanup (void);
 \f
 /*
   $Log$
+  Revision 1.3  2004/12/20 17:34:35  liekweg
+  fix recursion handling
+
+  Revision 1.2  2004/11/24 14:53:55  liekweg
+  Bugfixes
+
   Revision 1.1  2004/11/18 16:37:34  liekweg
   rewritten