summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-08-07 22:27:05 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-08-07 22:28:45 +0200
commit4ca20458be1edbf4b77098535c56f6d934aa1afd (patch)
tree782f367f902378a1cef0b4e75d71e7aa2f18ac18 /ir/be/benode.h
parentaea257b0796ee5958292f7068f550cbf8e5a23f5 (diff)
be: Add and use be_get_or_make_Proj_for_pn().
Diffstat (limited to 'ir/be/benode.h')
-rw-r--r--ir/be/benode.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/benode.h b/ir/be/benode.h
index 51f8f7f..ea1acf0 100644
--- a/ir/be/benode.h
+++ b/ir/be/benode.h
@@ -204,6 +204,12 @@ ir_node *be_new_Proj(ir_node *pred, unsigned pos);
*/
ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg);
+/**
+ * Gets the Proj with number pn from irn.
+ * Creates the Proj, if it does not exist, yet.
+ */
+ir_node *be_get_or_make_Proj_for_pn(ir_node *irn, unsigned pn);
+
static inline bool be_is_Asm (const ir_node *irn) { return get_irn_op(irn) == op_be_Asm ; }
static inline bool be_is_Copy (const ir_node *irn) { return get_irn_op(irn) == op_be_Copy ; }
static inline bool be_is_CopyKeep (const ir_node *irn) { return get_irn_op(irn) == op_be_CopyKeep ; }