summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-26 22:06:51 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2015-08-29 18:49:12 +0200
commitfeeff92a4bdcd3e8ce9f32200fdc9af7b0f3c2dc (patch)
tree6acef5fb1b23e1c5243f911456807e3d7c872b96 /ir/be/benode.c
parent7ceddc8e39411b72f909f79d39811d19c78afaeb (diff)
be: Add and use be_new_Proj_reg(), to create a Proj using the given register.
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index d02902c..330cc38 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -557,6 +557,12 @@ ir_node *be_new_Proj(ir_node *const pred, unsigned const pos)
return new_r_Proj(pred, req->cls->mode, pos);
}
+ir_node *be_new_Proj_reg(ir_node *const pred, unsigned const pos, arch_register_t const *const reg)
+{
+ arch_set_irn_register_out(pred, pos, reg);
+ return be_new_Proj(pred, pos);
+}
+
ir_node *be_get_or_make_Proj_for_pn(ir_node *const irn, unsigned const pn)
{
ir_node *const proj = get_Proj_for_pn(irn, pn);