X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana2%2Fpto_comp.h;h=cefb9911590e341f658c08123477ad137feb6bb1;hb=ff0e8d7fcb34481652f0bf521ba04b1eca5e2106;hp=dc7e0b6b96a232bfcfc6208af863b097e0c38377;hpb=ab26e77386f81ec8f84d1bfe41af8ae11be6c913;p=libfirm diff --git a/ir/ana2/pto_comp.h b/ir/ana2/pto_comp.h index dc7e0b6b9..cefb99115 100644 --- a/ir/ana2/pto_comp.h +++ b/ir/ana2/pto_comp.h @@ -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); /* $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