- various updates to sparc backend
[libfirm] / ir / be / arm / arm_new_nodes.h
1 /*
2  * Copyright (C) 1995-2008 University of Karlsruhe.  All right reserved.
3  *
4  * This file is part of libFirm.
5  *
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.
10  *
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.
14  *
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
17  * PURPOSE.
18  */
19
20 /**
21  * @file
22  * @brief   Function prototypes for the assembler ir node constructors.
23  * @author  Oliver Richter, Tobias Gneist
24  * @version $Id$
25  */
26 #ifndef FIRM_BE_ARM_ARM_NEW_NODES_H
27 #define FIRM_BE_ARM_ARM_NEW_NODES_H
28
29 #include "arm_nodes_attr.h"
30 #include "bearch_arm_t.h"
31
32 /**
33  * Returns the attributes of a generic Arm node.
34  */
35 arm_attr_t *get_arm_attr(ir_node *node);
36 const arm_attr_t *get_arm_attr_const(const ir_node *node);
37
38 /**
39  * Returns the attributes of an ARM SymConst node.
40  */
41 arm_SymConst_attr_t *get_arm_SymConst_attr(ir_node *node);
42 const arm_SymConst_attr_t *get_arm_SymConst_attr_const(const ir_node *node);
43
44 /**
45  * Returns the attributes of an ARM CondJmp node.
46  */
47 arm_CondJmp_attr_t *get_arm_CondJmp_attr(ir_node *node);
48 const arm_CondJmp_attr_t *get_arm_CondJmp_attr_const(const ir_node *node);
49
50 /**
51  * Returns the attributes of an ARM SwitchJmp node.
52  */
53 arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr(ir_node *node);
54 const arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr_const(const ir_node *node);
55
56 arm_load_store_attr_t *get_arm_load_store_attr(ir_node *node);
57 const arm_load_store_attr_t *get_arm_load_store_attr_const(const ir_node *node);
58
59 arm_shifter_operand_t *get_arm_shifter_operand_attr(ir_node *node);
60
61 /**
62  * Returns the argument register requirements of an arm node.
63  */
64 const arch_register_req_t **get_arm_in_req_all(const ir_node *node);
65
66 /**
67  * Returns the argument register requirements of an arm node.
68  */
69 const arch_register_req_t *get_arm_in_req(const ir_node *node, int pos);
70
71 /**
72  * Sets the IN register requirements at position pos.
73  */
74 void set_arm_req_in(ir_node *node, const arch_register_req_t *req, int pos);
75
76 /**
77 * Return the tarval of a fpaConst
78 */
79 tarval *get_fpaConst_value(const ir_node *node);
80
81 /**
82  * Sets the tarval of a fpaConst
83  */
84 void set_fpaConst_value(ir_node *node, tarval *tv);
85
86 /**
87  * Returns the proj num
88  */
89 int get_arm_CondJmp_proj_num(const ir_node *node);
90
91 /**
92  * Sets the proj num
93  */
94 void set_arm_CondJmp_proj_num(ir_node *node, int proj_num);
95
96 ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, ir_node *sp,
97                                                               int n_regs, ir_node **regs, ir_mode *mode);
98
99 /**
100  * Returns the number of projs of a SwitchJmp.
101  */
102 int get_arm_SwitchJmp_n_projs(const ir_node *node);
103
104 /**
105  * Sets the number of projs of a SwitchJmp.
106  */
107 void set_arm_SwitchJmp_n_projs(ir_node *node, int n_projs);
108
109 /**
110  * Returns the default_proj_num.
111  */
112 long get_arm_SwitchJmp_default_proj_num(const ir_node *node);
113
114 /**
115  * Sets the default_proj_num.
116  */
117 void set_arm_SwitchJmp_default_proj_num(ir_node *node, long default_proj_num);
118
119 /* Include the generated headers */
120 #include "gen_arm_new_nodes.h"
121
122 #endif