summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-11-24 15:30:51 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2015-12-03 15:43:41 +0100
commit96b4cd58401d1100daa4495c87cab0be715c2acb (patch)
treee247f9a2b53d5ccec7265a7ccc7bcaa889943e6e /ir/be/betranshlp.c
parentf1d435c6ec90a7f8ce0bdc5f9bc09c34d36bfcd6 (diff)
be: Factorise code to make Syncs.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 374da55..ff55e9c 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -872,3 +872,10 @@ bool be_match_immediate(ir_node const *const node, ir_tarval **const tarval_out,
*reloc_kind_out = reloc_kind;
return true;
}
+
+ir_node *be_make_Sync(ir_node *const block, int const arity, ir_node **const ins)
+{
+ return
+ arity == 1 ? ins[0] :
+ new_r_Sync(block, arity, ins);
+}