summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 17:46:52 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-01-10 17:46:52 +0100
commit41d66eda83a38cc1a044fac06372baca18ad0acf (patch)
treef99d79a5f91c52a57de3cb35480e0b96c3b07f64 /ir/be/benode.h
parent6855c08f1176caa92fb155afb458e2e43b61c74d (diff)
benode: Add be_new_Phi0() and be_complete_Phi().
Diffstat (limited to 'ir/be/benode.h')
-rw-r--r--ir/be/benode.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ir/be/benode.h b/ir/be/benode.h
index b2bd6f8..60dbb67 100644
--- a/ir/be/benode.h
+++ b/ir/be/benode.h
@@ -176,6 +176,17 @@ ir_node *be_new_Phi(ir_node *block, int n_ins, ir_node **ins, ir_mode *mode,
const arch_register_req_t *req);
/**
+ * Create a new Phi with backend info and without inputs.
+ * Inputs are added later with @see be_complete_Phi().
+ */
+ir_node *be_new_Phi0(ir_node *block, ir_mode *mode, arch_register_req_t const *req);
+
+/**
+ * Add inputs to a inputless Phi created by @see be_new_Phi0().
+ */
+ir_node *be_complete_Phi(ir_node *phi, unsigned n_ins, ir_node **ins);
+
+/**
* 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);