#include "entity_t.h"
#include "be_t.h"
-#include "bearch.h"
+#include "bearch_t.h"
#define BE_OUT_POS(p) (-((p) + 1))
/** Returns the number of real returns values */
int be_Return_get_n_rets(ir_node *ret);
+/** appends a node to the return node, returns the position of the node */
+int be_Return_append_node(ir_node *ret, ir_node *node);
+
/**
* Construct a new Stack Parameter node.
*/
*
* @returns the proj node for the new register
*/
-ir_node *be_RegParams_append_out_req(ir_node *regparams,
+ir_node *be_RegParams_append_out_reg(ir_node *regparams,
+ const arch_env_t *arch_env,
const arch_register_t *reg);
/**
*/
void be_phi_handler_reset(arch_irn_handler_t *handler);
+/**
+ * Set the register requirements for a phi node.
+ */
+void be_set_phi_reg_req(const arch_env_t *arch_env, ir_node *phi,
+ const arch_register_req_t *req);
+
+/*
+ * Set flags for a phi node
+ */
+void be_set_phi_flags(const arch_env_t *arch_env, ir_node *phi,
+ arch_irn_flags_t flags);
+
/**
* irn handler for common be nodes.
*/