2 * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
4 * This file is part of libFirm.
6 * This file may be distributed and/or modified under the terms of the
7 * GNU General Public License version 2 as published by the Free Software
8 * Foundation and appearing in the file LICENSE.GPL included in the
9 * packaging of this file.
11 * Licensees holding valid libFirm Professional Edition licenses may use
12 * this file in accordance with the libFirm Commercial License.
13 * Agreement provided with the Software.
15 * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * @brief Function prototypes for the assembler ir node constructors.
23 * @author Oliver Richter, Tobias Gneist
26 #ifndef FIRM_BE_ARM_ARM_NEW_NODES_H
27 #define FIRM_BE_ARM_ARM_NEW_NODES_H
29 #include "arm_nodes_attr.h"
30 #include "bearch_arm_t.h"
32 /***************************************************************************************************
34 * | | | | | | / / | | | | | | | |
35 * __ _| |_| |_ _ __ ___ ___| |_ / /_ _ ___| |_ _ __ ___ ___| |_| |__ ___ __| |___
36 * / _` | __| __| '__| / __|/ _ \ __| / / _` |/ _ \ __| | '_ ` _ \ / _ \ __| '_ \ / _ \ / _` / __|
37 * | (_| | |_| |_| | \__ \ __/ |_ / / (_| | __/ |_ | | | | | | __/ |_| | | | (_) | (_| \__ \
38 * \__,_|\__|\__|_| |___/\___|\__/_/ \__, |\___|\__| |_| |_| |_|\___|\__|_| |_|\___/ \__,_|___/
41 ***************************************************************************************************/
44 * Returns the attributes of a generic Arm node.
46 arm_attr_t *get_arm_attr(ir_node *node);
47 const arm_attr_t *get_arm_attr_const(const ir_node *node);
50 * Returns the attributes of an ARM SymConst node.
52 arm_SymConst_attr_t *get_arm_SymConst_attr(ir_node *node);
53 const arm_SymConst_attr_t *get_arm_SymConst_attr_const(const ir_node *node);
56 * Returns the attributes of an ARM CondJmp node.
58 arm_CondJmp_attr_t *get_arm_CondJmp_attr(ir_node *node);
59 const arm_CondJmp_attr_t *get_arm_CondJmp_attr_const(const ir_node *node);
62 * Returns the attributes of an ARM SwitchJmp node.
64 arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr(ir_node *node);
65 const arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr_const(const ir_node *node);
68 * Returns the argument register requirements of an arm node.
70 const arch_register_req_t **get_arm_in_req_all(const ir_node *node);
73 * Returns the argument register requirements of an arm node.
75 const arch_register_req_t *get_arm_in_req(const ir_node *node, int pos);
78 * Returns the result register requirements of an arm node.
80 const arch_register_req_t *get_arm_out_req(const ir_node *node, int pos);
83 * Sets the IN register requirements at position pos.
85 void set_arm_req_in(ir_node *node, const arch_register_req_t *req, int pos);
88 * Returns the immediate value
90 long get_arm_imm_value(const ir_node *node);
93 * Sets the immediate value
95 void set_arm_imm_value(ir_node *node, long imm_value);
98 * Return the tarval of a fpaConst
100 tarval *get_fpaConst_value(const ir_node *node);
103 * Sets the tarval of a fpaConst
105 void set_fpaConst_value(ir_node *node, tarval *tv);
108 * Returns the proj num
110 int get_arm_CondJmp_proj_num(const ir_node *node);
115 void set_arm_CondJmp_proj_num(ir_node *node, int proj_num);
117 ident *get_arm_symconst_id(const ir_node *node);
118 void set_arm_symconst_id(ir_node *node, ident *symconst_id);
120 ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, ir_node *sp,
121 int n_regs, ir_node **regs, ir_mode *mode);
124 * Returns the number of projs of a SwitchJmp.
126 int get_arm_SwitchJmp_n_projs(const ir_node *node);
129 * Sets the number of projs of a SwitchJmp.
131 void set_arm_SwitchJmp_n_projs(ir_node *node, int n_projs);
134 * Returns the default_proj_num.
136 long get_arm_SwitchJmp_default_proj_num(const ir_node *node);
139 * Sets the default_proj_num.
141 void set_arm_SwitchJmp_default_proj_num(ir_node *node, long default_proj_num);
144 * Gets the shift modifier attribute.
146 arm_shift_modifier get_arm_shift_modifier(const ir_node *node);
148 /* Include the generated headers */
149 #include "gen_arm_new_nodes.h"