X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fir%2Firpass.c;h=06f978794fa8deb78b457781aa17a693b168f7f5;hb=35a7482553cc710c2e1de31091a921339398145c;hp=3626d215514e9f66fb9b1d88423c323018af311b;hpb=1a3b7d363474ab544c13093a2f0b578718d37c7a;p=libfirm diff --git a/ir/ir/irpass.c b/ir/ir/irpass.c index 3626d2155..06f978794 100644 --- a/ir/ir/irpass.c +++ b/ir/ir/irpass.c @@ -21,7 +21,6 @@ * @file * @brief Manager for optimization passes. * @author Michael Beck - * @version $Id$ */ #include "config.h" @@ -356,7 +355,7 @@ static int void_graph_wrapper(ir_graph *irg, void *context) void_pass_func_irg function = (void_pass_func_irg)context; function(irg); return 0; -} /* void_graph_wrapper */ +} /* Creates an ir_graph pass for running void function(ir_graph *irg). */ ir_graph_pass_t *def_graph_pass( @@ -372,7 +371,7 @@ ir_graph_pass_t *def_graph_pass( INIT_LIST_HEAD(&pass->list); return pass; -} /* def_graph_pass */ +} /** * Wrapper for running int function(ir_graph *irg) as an ir_graph pass. @@ -381,7 +380,7 @@ static int int_graph_wrapper(ir_graph *irg, void *context) { int_pass_func_irg function = (int_pass_func_irg)context; return function(irg); -} /* int_graph_wrapper */ +} /* Creates an ir_graph pass for running void function(ir_graph *irg). */ ir_graph_pass_t *def_graph_pass_ret( @@ -397,7 +396,7 @@ ir_graph_pass_t *def_graph_pass_ret( INIT_LIST_HEAD(&pass->list); return pass; -} /* def_graph_pass_ret */ +} /* constructor for a default graph pass */ ir_graph_pass_t *def_graph_pass_constructor( @@ -415,13 +414,13 @@ ir_graph_pass_t *def_graph_pass_constructor( INIT_LIST_HEAD(&pass->list); return pass; -} /* def_graph_pass_constructor */ +} /* set the run parallel property */ void ir_graph_pass_set_parallel(ir_graph_pass_t *pass, int flag) { pass->run_parallel = flag != 0; -} /* ir_graph_pass_set_parallel */ +} /** * Wrapper for running void function(void) as an ir_prog pass. @@ -433,7 +432,7 @@ static int void_prog_wrapper(ir_prog *irp, void *context) (void)irp; function(); return 0; -} /* void_graph_wrapper */ +} /* Creates an ir_prog pass for running void function(void). */ ir_prog_pass_t *def_prog_pass( @@ -450,7 +449,7 @@ ir_prog_pass_t *def_prog_pass( INIT_LIST_HEAD(&pass->list); return pass; -} /* def_prog_pass */ +} /* Creates an ir_prog pass for running void function(void). */ ir_prog_pass_t *def_prog_pass_constructor( @@ -471,7 +470,7 @@ ir_prog_pass_t *def_prog_pass_constructor( INIT_LIST_HEAD(&pass->list); return pass; -} /* def_prog_pass_constructor */ +} typedef struct pass_t { ir_prog_pass_t pass; @@ -489,7 +488,7 @@ static int call_function_wrapper(ir_prog *irp, void *context) (void)irp; pass->function(pass->context); return 0; -} /* call_function_wrapper */ +} ir_prog_pass_t *call_function_pass( const char *name, void (*function)(void *context), void *context) { @@ -506,4 +505,4 @@ ir_prog_pass_t *call_function_pass( pass->context = context; return &pass->pass; -} /* call_function_pass */ +}