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 * @version $Id: TEMPLATE_new_nodes.h 26549 2009-09-18 17:48:23Z matze $
25 #ifndef FIRM_BE_SPARC_SPARC_NEW_NODES_H
26 #define FIRM_BE_SPARC_SPARC_NEW_NODES_H
28 #include "sparc_nodes_attr.h"
30 /***************************************************************************************************
32 * | | | | | | / / | | | | | | | |
33 * __ _| |_| |_ _ __ ___ ___| |_ / /_ _ ___| |_ _ __ ___ ___| |_| |__ ___ __| |___
34 * / _` | __| __| '__| / __|/ _ \ __| / / _` |/ _ \ __| | '_ ` _ \ / _ \ __| '_ \ / _ \ / _` / __|
35 * | (_| | |_| |_| | \__ \ __/ |_ / / (_| | __/ |_ | | | | | | __/ |_| | | | (_) | (_| \__ \
36 * \__,_|\__|\__|_| |___/\___|\__/_/ \__, |\___|\__| |_| |_| |_|\___|\__|_| |_|\___/ \__,_|___/
39 ***************************************************************************************************/
42 * Returns the attributes of an sparc node.
44 sparc_attr_t *get_sparc_attr(ir_node *node);
45 const sparc_attr_t *get_sparc_attr_const(const ir_node *node);
47 sparc_load_store_attr_t *get_sparc_load_store_attr(ir_node *node);
48 const sparc_load_store_attr_t *get_sparc_load_store_attr_const(const ir_node *node);
50 sparc_symconst_attr_t *get_sparc_symconst_attr(ir_node *node);
51 const sparc_symconst_attr_t *get_sparc_symconst_attr_const(const ir_node *node);
53 sparc_jmp_cond_attr_t *get_sparc_jmp_cond_attr(ir_node *node);
54 const sparc_jmp_cond_attr_t *get_sparc_jmp_cond_attr_const(const ir_node *node);
56 sparc_jmp_switch_attr_t *get_sparc_jmp_switch_attr(ir_node *node);
57 const sparc_jmp_switch_attr_t *get_sparc_jmp_switch_attr_const(const ir_node *node);
59 sparc_cmp_attr_t *get_sparc_cmp_attr(ir_node *node);
60 const sparc_cmp_attr_t *get_sparc_cmp_attr_const(const ir_node *node);
63 * Returns the argument register requirements of an sparc node.
65 const arch_register_req_t **get_sparc_in_req_all(const ir_node *node);
68 * Returns the argument register requirements of an sparc node.
70 const arch_register_req_t *get_sparc_in_req(const ir_node *node, int pos);
73 * Sets the IN register requirements at position pos.
75 void set_sparc_req_in(ir_node *node, const arch_register_req_t *req, int pos);
79 * Returns the proj num
81 int get_sparc_jmp_cond_proj_num(const ir_node *node);
86 void set_sparc_jmp_cond_proj_num(ir_node *node, int proj_num);
90 * Returns the number of projs of a SwitchJmp.
92 int get_sparc_jmp_switch_n_projs(const ir_node *node);
95 * Sets the number of projs of a SwitchJmp.
97 void set_sparc_jmp_switch_n_projs(ir_node *node, int n_projs);
100 * Returns the default_proj_num.
102 long get_sparc_jmp_switch_default_proj_num(const ir_node *node);
105 * Sets the default_proj_num.
107 void set_sparc_jmp_switch_default_proj_num(ir_node *node, long default_proj_num);
109 /* Include the generated headers */
110 #include "gen_sparc_new_nodes.h"