summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 11:15:16 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 20:53:44 +0100
commit60d49bf6351f543e33f122c6d60567486a054051 (patch)
tree0b074ecc407884b385cff0f440e9f8be121147b9
parent4d951714d396dea7c3121ba6ac419c95011203ee (diff)
be: Mark be_Asm as memory user.
-rw-r--r--ir/be/benode.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index 94d718b..f26a654 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -638,7 +638,7 @@ void be_init_op(void)
/* Acquire all needed opcodes. */
unsigned const o = get_next_ir_opcodes(beo_last + 1);
- op_be_Asm = new_be_op(o + beo_Asm, "be_Asm", op_pin_state_exc_pinned, irop_flag_none, sizeof(be_asm_attr_t));
+ op_be_Asm = new_be_op(o + beo_Asm, "be_Asm", op_pin_state_exc_pinned, irop_flag_uses_memory, sizeof(be_asm_attr_t));
op_be_Copy = new_be_op(o + beo_Copy, "be_Copy", op_pin_state_floats, irop_flag_none, 0);
op_be_CopyKeep = new_be_op(o + beo_CopyKeep, "be_CopyKeep", op_pin_state_floats, irop_flag_keep, 0);
op_be_IncSP = new_be_op(o + beo_IncSP, "be_IncSP", op_pin_state_pinned, irop_flag_none, sizeof(be_incsp_attr_t));
@@ -649,6 +649,8 @@ void be_init_op(void)
op_be_Start = new_be_op(o + beo_Start, "be_Start", op_pin_state_pinned, irop_flag_start_block, 0);
op_be_Unknown = new_be_op(o + beo_Unknown, "be_Unknown", op_pin_state_floats, irop_flag_constlike, 0);
+ ir_op_set_memory_index(op_be_Asm, pn_be_Asm_M);
+
set_op_attrs_equal(op_be_Asm, be_asm_attr_equal);
set_op_attrs_equal(op_be_Copy, attrs_equal_be_node);
set_op_attrs_equal(op_be_CopyKeep, attrs_equal_be_node);