projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed comment
[libfirm]
/
ir
/
lower
/
lower_hl.c
diff --git
a/ir/lower/lower_hl.c
b/ir/lower/lower_hl.c
index
c7df278
..
38d1e4b
100644
(file)
--- a/
ir/lower/lower_hl.c
+++ b/
ir/lower/lower_hl.c
@@
-506,6
+506,20
@@
static void lower_bitfields_stores(ir_node *store) {
set_Store_ptr(store, ptr);
} /* lower_bitfields_stores */
set_Store_ptr(store, ptr);
} /* lower_bitfields_stores */
+/**
+ * Lowers unaligned Loads.
+ */
+static void lower_unaligned_Load(ir_node *load) {
+ /* NYI */
+}
+
+/**
+ * Lowers unaligned Stores
+ */
+static void lower_unaligned_Store(ir_node *store) {
+ /* NYI */
+}
+
/**
* lowers IR-nodes, called from walker
*/
/**
* lowers IR-nodes, called from walker
*/
@@
-518,6
+532,14
@@
static void lower_irnode(ir_node *irn, void *env) {
case iro_SymConst:
lower_symconst(irn);
break;
case iro_SymConst:
lower_symconst(irn);
break;
+ case iro_Load:
+ if (env != NULL && get_Load_align(irn) == align_non_aligned)
+ lower_unaligned_Load(irn);
+ break;
+ case iro_Store:
+ if (env != NULL && get_Store_align(irn) == align_non_aligned)
+ lower_unaligned_Store(irn);
+ break;
default:
break;
}
default:
break;
}
@@
-563,7
+585,7
@@
void lower_highlevel(void) {
/* First step: lower bitfield access: must be run as long as Sels still exists. */
irg_walk_graph(irg, NULL, lower_bf_access, NULL);
/* First step: lower bitfield access: must be run as long as Sels still exists. */
irg_walk_graph(irg, NULL, lower_bf_access, NULL);
- /* Finally: lower SymConst-Size and Sel nodes. */
+ /* Finally: lower SymConst-Size and Sel nodes
, unaligned Load/Stores
. */
irg_walk_graph(irg, NULL, lower_irnode, NULL);
set_irg_phase_low(irg);
irg_walk_graph(irg, NULL, lower_irnode, NULL);
set_irg_phase_low(irg);