summaryrefslogtreecommitdiffhomepage
path: root/ir/lower
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-02-17 07:14:48 +0100
committerMatthias Braun <matze@braunis.de>2017-02-17 08:07:41 +0100
commit06cb80c5b7f318fb1fc0caef3adcf84b9802df6c (patch)
tree72c596abcda06468ebe41d0038f520e10f19acc3 /ir/lower
parentd29ca3a0ba661b9826e126b407c1c9d6f5a81aa9 (diff)
Reorganize include directives
Diffstat (limited to 'ir/lower')
-rw-r--r--ir/lower/lower_alloc.c5
-rw-r--r--ir/lower/lower_builtins.c9
-rw-r--r--ir/lower/lower_calls.c6
-rw-r--r--ir/lower/lower_copyb.c10
-rw-r--r--ir/lower/lower_dw.c14
-rw-r--r--ir/lower/lower_hl.c12
-rw-r--r--ir/lower/lower_intrinsics.c25
-rw-r--r--ir/lower/lower_mode_b.c21
-rw-r--r--ir/lower/lower_mux.c11
-rw-r--r--ir/lower/lower_softfloat.c10
-rw-r--r--ir/lower/lower_switch.c5
11 files changed, 63 insertions, 65 deletions
diff --git a/ir/lower/lower_alloc.c b/ir/lower/lower_alloc.c
index 15827c9..af397f9 100644
--- a/ir/lower/lower_alloc.c
+++ b/ir/lower/lower_alloc.c
@@ -9,10 +9,11 @@
* @author Matthias Braun
*/
#include "lower_alloc.h"
-#include "irgwalk.h"
-#include "irnode_t.h"
+
#include "ircons.h"
#include "irgmod.h"
+#include "irgwalk.h"
+#include "irnode_t.h"
#include "irnodeset.h"
static unsigned po2_stack_alignment;
diff --git a/ir/lower/lower_builtins.c b/ir/lower/lower_builtins.c
index dc9648a..f60953c 100644
--- a/ir/lower/lower_builtins.c
+++ b/ir/lower/lower_builtins.c
@@ -9,18 +9,19 @@
* @author Matthias Braun
*/
#include "lower_builtins.h"
-#include <stdbool.h>
-#include <stdlib.h>
+
#include "adt/pmap.h"
#include "be.h"
-#include "irnode_t.h"
#include "ircons_t.h"
#include "irgmod.h"
#include "irgwalk.h"
+#include "irnode_t.h"
#include "iroptimize.h"
-#include "panic.h"
#include "irprog_t.h"
+#include "panic.h"
#include "util.h"
+#include <stdbool.h>
+#include <stdlib.h>
static bool dont_lower[ir_bk_last + 1];
static lower_func lower_va_arg;
diff --git a/ir/lower/lower_calls.c b/ir/lower/lower_calls.c
index fcad157..749050b 100644
--- a/ir/lower/lower_calls.c
+++ b/ir/lower/lower_calls.c
@@ -8,11 +8,10 @@
* @brief Lowering of Calls with compound parameters and return types.
* @author Michael Beck, Matthias Braun
*/
-#include <stdbool.h>
+#include "lower_calls.h"
#include "array.h"
#include "be.h"
-#include "panic.h"
#include "firm_types.h"
#include "heights.h"
#include "ircons.h"
@@ -26,11 +25,12 @@
#include "iroptimize.h"
#include "irprog_t.h"
#include "irtools.h"
-#include "lower_calls.h"
#include "lowering.h"
+#include "panic.h"
#include "pmap.h"
#include "type_t.h"
#include "util.h"
+#include <stdbool.h>
static pmap *pointer_types;
static pmap *lowered_mtps;
diff --git a/ir/lower/lower_copyb.c b/ir/lower/lower_copyb.c
index 8b91b61..efc5f68 100644
--- a/ir/lower/lower_copyb.c
+++ b/ir/lower/lower_copyb.c
@@ -9,15 +9,15 @@
* @author Michael Beck, Matthias Braun, Manuel Mohr
*/
#include "adt/list.h"
+#include "be.h"
#include "ircons.h"
-#include "lowering.h"
-#include "irprog_t.h"
+#include "irgmod.h"
#include "irgwalk.h"
#include "irnode_t.h"
-#include "type_t.h"
-#include "irgmod.h"
+#include "irprog_t.h"
+#include "lowering.h"
#include "panic.h"
-#include "be.h"
+#include "type_t.h"
#include "util.h"
static unsigned max_small_size; /**< The maximum size of a CopyB node
diff --git a/ir/lower/lower_dw.c b/ir/lower/lower_dw.c
index 3d9785c..835717b 100644
--- a/ir/lower/lower_dw.c
+++ b/ir/lower/lower_dw.c
@@ -9,10 +9,7 @@
* @date 8.10.2004
* @author Michael Beck
*/
-#include <string.h>
-#include <stdlib.h>
-#include <stdbool.h>
-#include <assert.h>
+#include "lower_dw.h"
#include "array.h"
#include "be.h"
@@ -28,13 +25,12 @@
#include "irgraph_t.h"
#include "irgwalk.h"
#include "irmode_t.h"
-#include "irnodeset.h"
#include "irnode_t.h"
+#include "irnodeset.h"
#include "iropt_dbg.h"
-#include "iroptimize.h"
#include "iropt_t.h"
+#include "iroptimize.h"
#include "irprog_t.h"
-#include "lower_dw.h"
#include "lowering.h"
#include "panic.h"
#include "pdeq.h"
@@ -42,6 +38,10 @@
#include "set.h"
#include "tv_t.h"
#include "type_t.h"
+#include <assert.h>
+#include <stdbool.h>
+#include <stdlib.h>
+#include <string.h>
/** A map from (op, imode, omode) to Intrinsic functions entities. */
static set *intrinsic_fkt;
diff --git a/ir/lower/lower_hl.c b/ir/lower/lower_hl.c
index 67c4d87..755cb58 100644
--- a/ir/lower/lower_hl.c
+++ b/ir/lower/lower_hl.c
@@ -8,16 +8,16 @@
* @brief Lower some High-level constructs, moved from the firmlower.
* @author Boris Boesler, Goetz Lindenmaier, Michael Beck
*/
-#include "lowering.h"
-#include "irmode_t.h"
-#include "irnode_t.h"
#include "entity_t.h"
-#include "typerep.h"
-#include "irprog_t.h"
#include "ircons.h"
-#include "irhooks.h"
#include "irgmod.h"
#include "irgwalk.h"
+#include "irhooks.h"
+#include "irmode_t.h"
+#include "irnode_t.h"
+#include "irprog_t.h"
+#include "lowering.h"
+#include "typerep.h"
/**
* Lower a Sel node. Do not touch Sels accessing entities on the frame type.
diff --git a/ir/lower/lower_intrinsics.c b/ir/lower/lower_intrinsics.c
index 02a95e9..7d43b23 100644
--- a/ir/lower/lower_intrinsics.c
+++ b/ir/lower/lower_intrinsics.c
@@ -8,25 +8,24 @@
* @brief lowering of Calls of intrinsic functions
* @author Michael Beck
*/
-#include <stdbool.h>
-
-#include "lowering.h"
-#include "irop_t.h"
-#include "irprog_t.h"
-#include "irnode_t.h"
-#include "irprog_t.h"
-#include "irgwalk.h"
+#include "array.h"
+#include "be.h"
#include "ircons_t.h"
#include "irgmod.h"
#include "irgopt.h"
-#include "irverify.h"
-#include "pmap.h"
-#include "array.h"
+#include "irgwalk.h"
+#include "irnode_t.h"
+#include "irop_t.h"
#include "iropt_dbg.h"
+#include "irprog_t.h"
+#include "irprog_t.h"
+#include "irverify.h"
+#include "lowering.h"
#include "panic.h"
-#include "be.h"
-#include "util.h"
+#include "pmap.h"
#include "tv_t.h"
+#include "util.h"
+#include <stdbool.h>
/** Walker environment. */
struct ir_intrinsics_map {
diff --git a/ir/lower/lower_mode_b.c b/ir/lower/lower_mode_b.c
index 679cca2..bc1323d 100644
--- a/ir/lower/lower_mode_b.c
+++ b/ir/lower/lower_mode_b.c
@@ -10,23 +10,22 @@
*/
#include "lower_mode_b.h"
-#include <stdlib.h>
-#include <stdbool.h>
-
-#include "irnode_t.h"
+#include "array.h"
#include "ircons_t.h"
+#include "iredges_t.h"
#include "irflag.h"
+#include "irgmod.h"
+#include "irgopt.h"
#include "irgwalk.h"
-#include "irtools.h"
-#include "iredges_t.h"
+#include "irnode_t.h"
#include "iropt_t.h"
-#include "irgmod.h"
-#include "tv.h"
-#include "panic.h"
+#include "irtools.h"
#include "lowering.h"
+#include "panic.h"
+#include "tv.h"
#include "util.h"
-#include "array.h"
-#include "irgopt.h"
+#include <stdbool.h>
+#include <stdlib.h>
typedef struct needs_lowering_t {
ir_node *node;
diff --git a/ir/lower/lower_mux.c b/ir/lower/lower_mux.c
index b17296f..86a0a7f 100644
--- a/ir/lower/lower_mux.c
+++ b/ir/lower/lower_mux.c
@@ -8,16 +8,15 @@
* @brief Replaces Mux nodes with control-flow
* @author Olaf Liebe
*/
-#include <assert.h>
-
-#include "lowering.h"
#include "array.h"
-#include "irnode_t.h"
+#include "ircons.h"
+#include "irgmod.h"
#include "irgraph_t.h"
#include "irgwalk.h"
-#include "irgmod.h"
-#include "ircons.h"
+#include "irnode_t.h"
+#include "lowering.h"
#include "util.h"
+#include <assert.h>
typedef struct walk_env {
lower_mux_callback *cb_func;
diff --git a/ir/lower/lower_softfloat.c b/ir/lower/lower_softfloat.c
index 0151673..00c5cd5 100644
--- a/ir/lower/lower_softfloat.c
+++ b/ir/lower/lower_softfloat.c
@@ -8,26 +8,26 @@
* @brief Lower floating point operations to function calls
* @author Sebastian Buchwald
*/
-#include <stdbool.h>
+#include "lower_softfloat.h"
#include "be.h"
#include "dbginfo_t.h"
-#include "panic.h"
#include "ircons_t.h"
#include "iredges_t.h"
#include "irgmod.h"
-#include "irnodeset.h"
#include "irgwalk.h"
#include "irmode_t.h"
+#include "irnodeset.h"
#include "irop_t.h"
#include "iropt_dbg.h"
#include "iroptimize.h"
#include "irprog_t.h"
-#include "lower_softfloat.h"
#include "lowering.h"
+#include "panic.h"
#include "pmap.h"
-#include "type_t.h"
#include "tv_t.h"
+#include "type_t.h"
+#include <stdbool.h>
typedef bool (*lower_softfloat_func)(ir_node *node);
diff --git a/ir/lower/lower_switch.c b/ir/lower/lower_switch.c
index c6e9d32..a58a055 100644
--- a/ir/lower/lower_switch.c
+++ b/ir/lower/lower_switch.c
@@ -8,18 +8,17 @@
* @brief Lowering of Switches if necessary or advantageous.
* @author Moritz Kroll
*/
-#include <stdbool.h>
-
#include "array.h"
#include "ircons.h"
#include "irgopt.h"
#include "irgwalk.h"
-#include "irnodeset.h"
#include "irnode_t.h"
+#include "irnodeset.h"
#include "irouts_t.h"
#include "lowering.h"
#include "panic.h"
#include "util.h"
+#include <stdbool.h>
typedef struct walk_env_t {
ir_nodeset_t processed;