93813b7c2d662a5013f4ff2dc06e331be0af6356
[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  */
25 #ifndef FIRM_BE_ARM_ARM_NEW_NODES_H
26 #define FIRM_BE_ARM_ARM_NEW_NODES_H
27
28 #include "arm_nodes_attr.h"
29 #include "bearch_arm_t.h"
30
31 /**
32  * Returns the attributes of a generic Arm node.
33  */
34 arm_attr_t *get_arm_attr(ir_node *node);
35 const arm_attr_t *get_arm_attr_const(const ir_node *node);
36
37 /**
38  * Returns the attributes of an ARM SymConst node.
39  */
40 arm_SymConst_attr_t *get_arm_SymConst_attr(ir_node *node);
41 const arm_SymConst_attr_t *get_arm_SymConst_attr_const(const ir_node *node);
42
43 /**
44  * Returns the attributes of an ARM CondJmp node.
45  */
46 arm_CondJmp_attr_t *get_arm_CondJmp_attr(ir_node *node);
47 const arm_CondJmp_attr_t *get_arm_CondJmp_attr_const(const ir_node *node);
48
49 /**
50  * Returns the attributes of an ARM SwitchJmp node.
51  */
52 arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr(ir_node *node);
53 const arm_SwitchJmp_attr_t *get_arm_SwitchJmp_attr_const(const ir_node *node);
54
55 arm_load_store_attr_t *get_arm_load_store_attr(ir_node *node);
56 const arm_load_store_attr_t *get_arm_load_store_attr_const(const ir_node *node);
57
58 arm_shifter_operand_t *get_arm_shifter_operand_attr(ir_node *node);
59 const arm_shifter_operand_t *get_arm_shifter_operand_attr_const(const ir_node *node);
60
61 arm_cmp_attr_t *get_arm_cmp_attr(ir_node *node);
62 const arm_cmp_attr_t *get_arm_cmp_attr_const(const ir_node *node);
63
64 arm_farith_attr_t *get_arm_farith_attr(ir_node *node);
65 const arm_farith_attr_t *get_arm_farith_attr_const(const ir_node *node);
66
67 arm_CopyB_attr_t *get_arm_CopyB_attr(ir_node *node);
68 const arm_CopyB_attr_t *get_arm_CopyB_attr_const(const ir_node *node);
69
70 /**
71 * Return the tarval of a fConst
72 */
73 ir_tarval *get_fConst_value(const ir_node *node);
74
75 /**
76  * Sets the tarval of a fConst
77  */
78 void set_fConst_value(ir_node *node, ir_tarval *tv);
79
80 /**
81  * Returns the compare kind
82  */
83 ir_relation get_arm_CondJmp_relation(const ir_node *node);
84
85 /**
86  * Set compare type
87  */
88 void set_arm_CondJmp_relation(ir_node *node, ir_relation relation);
89
90 ir_node *new_r_arm_StoreStackMInc(ir_graph *irg, ir_node *block, ir_node *mem, ir_node *sp,
91                                                               int n_regs, ir_node **regs, ir_mode *mode);
92
93 /* Include the generated headers */
94 #include "gen_arm_new_nodes.h"
95
96 #endif