* Projection numbers for result of be_Call node: use for Proj nodes!
*/
typedef enum {
- pn_be_Call_M_regular = pn_Call_M, /**< The memory result of a be_Call. */
- pn_be_Call_sp = pn_Call_max,
- pn_be_Call_first_res /**< The first result proj number of a
- be_Call. */
+ pn_be_Call_M = pn_Call_M, /**< The memory result of a be_Call. */
+ pn_be_Call_X_regular = pn_Call_X_regular,
+ pn_be_Call_X_except = pn_Call_X_except,
+ pn_be_Call_sp = pn_Call_max+1,
+ pn_be_Call_first_res /**< The first result proj number of a be_Call. */
} pn_be_Call;
/**
const arch_register_class_t *cls);
/**
- * irn handler for common be nodes and Phi's.
+ * Search for output of start node with a specific register
*/
-const void *be_node_get_irn_ops(const ir_node *irn);
+ir_node *be_get_initial_reg_value(ir_graph *irg, const arch_register_t *reg);
+
+/**
+ * Search for input of a return node with a specific register and return
+ * its number.
+ */
+int be_find_return_reg_input(ir_node *ret, const arch_register_t *reg);
static inline int be_is_Spill (const ir_node *irn) { return get_irn_opcode(irn) == beo_Spill ; }
static inline int be_is_Reload (const ir_node *irn) { return get_irn_opcode(irn) == beo_Reload ; }
static inline int be_is_IncSP (const ir_node *irn) { return get_irn_opcode(irn) == beo_IncSP ; }
static inline int be_is_AddSP (const ir_node *irn) { return get_irn_opcode(irn) == beo_AddSP ; }
static inline int be_is_SubSP (const ir_node *irn) { return get_irn_opcode(irn) == beo_SubSP ; }
-static inline int be_is_Start (const ir_node *irn) { return get_irn_opcode(irn) == beo_Start; }
+static inline int be_is_Start (const ir_node *irn) { return get_irn_opcode(irn) == beo_Start ; }
static inline int be_is_FrameAddr(const ir_node *irn) { return get_irn_opcode(irn) == beo_FrameAddr; }
#endif