start of new project
authorBeyhan <beyhan@ipd.info.uni-karlsruhe.de>
Tue, 16 Nov 2004 12:29:31 +0000 (12:29 +0000)
committerBeyhan <beyhan@ipd.info.uni-karlsruhe.de>
Tue, 16 Nov 2004 12:29:31 +0000 (12:29 +0000)
[r4408]

ir/opt/loop_unrolling.c [new file with mode: 0644]
ir/opt/loop_unrolling.h [new file with mode: 0644]

diff --git a/ir/opt/loop_unrolling.c b/ir/opt/loop_unrolling.c
new file mode 100644 (file)
index 0000000..459b1c2
--- /dev/null
@@ -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 (file)
index 0000000..ab2ab0b
--- /dev/null
@@ -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_ */