1 #ifndef _ARM_NEW_NODES_H_
2 #define _ARM_NEW_NODES_H_
5 * Function prototypes for the assembler ir node constructors.
9 #include "arm_nodes_attr.h"
10 #include "bearch_arm_t.h"
12 /***************************************************************************************************
14 * | | | | | | / / | | | | | | | |
15 * __ _| |_| |_ _ __ ___ ___| |_ / /_ _ ___| |_ _ __ ___ ___| |_| |__ ___ __| |___
16 * / _` | __| __| '__| / __|/ _ \ __| / / _` |/ _ \ __| | '_ ` _ \ / _ \ __| '_ \ / _ \ / _` / __|
17 * | (_| | |_| |_| | \__ \ __/ |_ / / (_| | __/ |_ | | | | | | __/ |_| | | | (_) | (_| \__ \
18 * \__,_|\__|\__|_| |___/\___|\__/_/ \__, |\___|\__| |_| |_| |_|\___|\__|_| |_|\___/ \__,_|___/
21 ***************************************************************************************************/
24 * Returns the attributes of an arm node.
26 arm_attr_t *get_arm_attr(const ir_node *node);
29 * Returns the argument register requirements of an arm node.
31 const arm_register_req_t **get_arm_in_req_all(const ir_node *node);
34 * Returns the result register requirements of an arm node.
36 const arm_register_req_t **get_arm_out_req_all(const ir_node *node);
39 * Returns the argument register requirements of an arm node.
41 const arm_register_req_t *get_arm_in_req(const ir_node *node, int pos);
44 * Returns the result register requirements of an arm node.
46 const arm_register_req_t *get_arm_out_req(const ir_node *node, int pos);
49 * Sets the OUT register requirements at position pos.
51 void set_arm_req_out(ir_node *node, const arm_register_req_t *req, int pos);
54 * Sets the complete OUT requirements of node.
56 void set_arm_req_out_all(ir_node *node, const arm_register_req_t **reqs);
59 * Sets the IN register requirements at position pos.
61 void set_arm_req_in(ir_node *node, const arm_register_req_t *req, int pos);
64 * Returns the register flag of an arm node.
66 arch_irn_flags_t get_arm_flags(const ir_node *node);
69 * Sets the register flag of an arm node.
71 void set_arm_flags(const ir_node *node, arch_irn_flags_t flags);
74 * Returns the result register slots of an arm node.
76 const arch_register_t **get_arm_slots(const ir_node *node);
79 * Returns the name of the OUT register at position pos.
81 const char *get_arm_out_reg_name(const ir_node *node, int pos);
84 * Returns the index of the OUT register at position pos within its register class.
86 int get_arm_out_regnr(const ir_node *node, int pos);
89 * Returns the OUT register at position pos.
91 const arch_register_t *get_arm_out_reg(const ir_node *node, int pos);
94 * Sets the number of results.
96 void set_arm_n_res(ir_node *node, int n_res);
99 * Returns the number of results.
101 int get_arm_n_res(const ir_node *node);
104 * Set the ARM machine node attributes to default values.
106 void init_arm_attributes(ir_node *node, int flags, const arm_register_req_t ** in_reqs,
107 const arm_register_req_t ** out_reqs, const be_execution_unit_t ***execution_units, int n_res, unsigned latency);
112 tarval *get_arm_value(const ir_node *node);
117 void set_arm_value(ir_node *node, tarval *tv);
120 * Returns the proj num
122 int get_arm_proj_num(const ir_node *node);
127 void set_arm_proj_num(ir_node *node, int proj_num);
129 const char *get_arm_symconst_label(ir_node *node);
130 void set_arm_symconst_label(ir_node *node, const char *symconst_label);
132 ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, ir_node *sp,
133 int n_regs, ir_node **regs, ir_mode *mode);
136 * Returns the number of projs.
138 int get_arm_n_projs(ir_node *node);
141 * Sets the number of projs.
143 void set_arm_n_projs(ir_node *node, int n_projs);
146 * Returns the default_proj_num.
148 long get_arm_default_proj_num(ir_node *node);
151 * Sets the default_proj_num.
153 void set_arm_default_proj_num(ir_node *node, long default_proj_num);
156 * Gets the shift modifier attribute.
158 arm_shift_modifier get_arm_shift_modifier(ir_node *node);
161 * Decode an immediate with shifter operand
163 unsigned int arm_decode_imm_w_shift(tarval *tv);
165 /* Include the generated headers */
166 #include "gen_arm_new_nodes.h"
168 #endif /* _ARM_NEW_NODES_H_ */