path: root/ir/be/benode.h
diff options
authorChristoph Mallon <>2015-07-27 21:52:04 +0200
committerChristoph Mallon <>2015-07-28 10:36:31 +0200
commit9a6b8525e9916f0b0448468defd150413814ecfe (patch)
tree8560176b7b598b84c47f88efd0f6dbaff2cb5679 /ir/be/benode.h
parent6a3abbe420b99019efd3e8a51bfce4e3cf713d5b (diff)
be: Add and use be_new_Proj().
It is like new_r_Proj(), but the mode is determined automatically from the out requirement of the predecessor. This probably resolves some mode mismatches in untested code paths -- AMD64 backend and SPARC hard float, I'm looking at you!
Diffstat (limited to 'ir/be/benode.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/benode.h b/ir/be/benode.h
index 3ae7c55..51f8f7f 100644
--- a/ir/be/benode.h
+++ b/ir/be/benode.h
@@ -194,6 +194,12 @@ ir_entity *be_get_Relocation_entity(ir_node const* node);
unsigned be_get_Relocation_kind(ir_node const* node);
+ * Create a new Proj node. Its mode is determined from the out requirement
+ * @p pos of @p pred.
+ */
+ir_node *be_new_Proj(ir_node *pred, unsigned pos);
* Search for output of start node with a specific register
ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg);