summaryrefslogtreecommitdiffhomepage
path: root/ir/be/betranshlp.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-12-19 12:50:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-12-19 13:05:42 +0100
commit027905d948e51ea05e8a2e8c9b3a094956e7d67a (patch)
treef575232e3b4607e346fc8d436214ac76a34daff6 /ir/be/betranshlp.c
parent3eb8ea29ba7a39dcb6c3676db16361c97473bc98 (diff)
be: Make 'gen_Proj_default()' of ia32 available for all backends as 'be_gen_Proj_default()'.
Diffstat (limited to 'ir/be/betranshlp.c')
-rw-r--r--ir/be/betranshlp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/ir/be/betranshlp.c b/ir/be/betranshlp.c
index 1b951da..d01b2e0 100644
--- a/ir/be/betranshlp.c
+++ b/ir/be/betranshlp.c
@@ -200,6 +200,14 @@ ir_node *be_duplicate_node(ir_node *const node)
return new_node;
}
+ir_node *be_gen_Proj_default(ir_node *const node)
+{
+ ir_node *const pred = get_Proj_pred(node);
+ ir_node *const new_pred = be_transform_node(pred);
+ unsigned const pn = get_Proj_num(node);
+ return be_new_Proj(new_pred, pn);
+}
+
ir_node *be_transform_node(ir_node *node)
{
ir_node *new_node;