From e3ca3cde843544042eb2e3c953510f70cb36b818 Mon Sep 17 00:00:00 2001 From: Beyhan Date: Tue, 16 Nov 2004 12:29:31 +0000 Subject: [PATCH] start of new project [r4408] --- ir/opt/loop_unrolling.c | 40 ++++++++++++++++++++++++++++++++++++++++ ir/opt/loop_unrolling.h | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 ir/opt/loop_unrolling.c create mode 100644 ir/opt/loop_unrolling.h diff --git a/ir/opt/loop_unrolling.c b/ir/opt/loop_unrolling.c new file mode 100644 index 000000000..459b1c24c --- /dev/null +++ b/ir/opt/loop_unrolling.c @@ -0,0 +1,40 @@ +/** + * + * @file loop_unrolling.c + * + * Project: libFIRM + * File name: ir/opt/loop_unrolling.c + * Purpose: Make loop unrolling. + * Author: Beyhan Veliev + * Modified by: + * Created: 16.11.2004 + * CVS-ID: $Id$ + * Copyright: (c) 2004 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ + + +# include "loop_unrolling.h" + +# include "irgwalk.h" +# include "irnode_t.h" +# include "irloop_t.h" + +static void do_loop_unroll(ir_node *n, void *env){ +} + + + + + + + +/* Performs loop unrolling for the passed graph. */ +void optimize_loop_unrolling(ir_graph *irg) { + + if (!get_optimize() || !get_opt_loop_unrolling()) return; + + /* -- Search expressions that can be optimized -- */ + irg_walk_graph(irg, NULL, do_loop_unroll, NULL); + +} diff --git a/ir/opt/loop_unrolling.h b/ir/opt/loop_unrolling.h new file mode 100644 index 000000000..ab2ab0be4 --- /dev/null +++ b/ir/opt/loop_unrolling.h @@ -0,0 +1,33 @@ +/** + * + * @file loop_unrolling.h + * + * Project: libFIRM + * File name: ir/opt/loop_unrolling.h + * Purpose: Loop unrolling. + * Author: Beyhan Veliev + * Modified by: + * Created: 16.11.2004 + * CVS-ID: $Id$ + * Copyright: (c) 2004 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * + * + * + * + */ + + +# ifndef _LOOP_UNROLLING_H_ +# define _LOOP_UNROLLING_H_ + +# include "irgraph.h" + +/** Loop unrolling. + * + */ + +void optimize_loop_unrolling (ir_graph *irg); + + +#endif /* _LOOP_UNROLLING_H_ */ -- 2.20.1