# ifndef _PTO_COMP_
# define _PTO_COMP_
+# include "pto.h"
# include "irnode.h"
+# include "qset.h"
/* ===================================================
Global Defines:
Global Data Types:
=================================================== */
typedef struct pto_str {
- int dummy;
+ qset_t *values;
} pto_t;
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 */
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:
=================================================== */
\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