X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fldst2.c;h=d73a8f76aa82e8f7620cdde3a4075d3ac6a08c0f;hb=1852308bd33b77378f0fca9e5347d4f9082464c4;hp=1c039c69b991c19dd5776e79607da65a9fe300f8;hpb=e1397b01aceb38b6bb62c319007146af3b922f39;p=libfirm diff --git a/ir/opt/ldst2.c b/ir/opt/ldst2.c index 1c039c69b..d73a8f76a 100644 --- a/ir/opt/ldst2.c +++ b/ir/opt/ldst2.c @@ -41,6 +41,7 @@ #include "irdump.h" #include "irflag_t.h" #include "irprintf.h" +#include "irpass.h" #if +0 #define OPTIMISE_LOAD_AFTER_LOAD @@ -845,3 +846,8 @@ void opt_sync(ir_graph *irg) //optimize_graph_df(irg); //irg_walk_graph(irg, NormaliseSync, NULL, NULL); } + +ir_graph_pass_t *opt_sync_pass(const char *name) +{ + return def_graph_pass(name ? name : "opt_sync", opt_sync); +}