TEMPLATE_new_nodes.h 3.11 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _TEMPLATE_NEW_NODES_H_
#define _TEMPLATE_NEW_NODES_H_

/**
 * Function prototypes for the assembler ir node constructors.
 * $Id$
 */

#include "TEMPLATE_nodes_attr.h"

/***************************************************************************************************
 *        _   _                   _       __        _                    _   _               _
 *       | | | |                 | |     / /       | |                  | | | |             | |
 *   __ _| |_| |_ _ __   ___  ___| |_   / /_ _  ___| |_   _ __ ___   ___| |_| |__   ___   __| |___
 *  / _` | __| __| '__| / __|/ _ \ __| / / _` |/ _ \ __| | '_ ` _ \ / _ \ __| '_ \ / _ \ / _` / __|
 * | (_| | |_| |_| |    \__ \  __/ |_ / / (_| |  __/ |_  | | | | | |  __/ |_| | | | (_) | (_| \__ \
 *  \__,_|\__|\__|_|    |___/\___|\__/_/ \__, |\___|\__| |_| |_| |_|\___|\__|_| |_|\___/ \__,_|___/
 *                                        __/ |
 *                                       |___/
 ***************************************************************************************************/

/**
 * Returns the attributes of an TEMPLATE node.
 */
Christian Würdig's avatar
Christian Würdig committed
25
TEMPLATE_attr_t *get_TEMPLATE_attr(const ir_node *node);
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101

/**
 * Returns the argument register requirements of an TEMPLATE node.
 */
const TEMPLATE_register_req_t **get_TEMPLATE_in_req_all(const ir_node *node);

/**
 * Returns the result register requirements of an TEMPLATE node.
 */
const TEMPLATE_register_req_t **get_TEMPLATE_out_req_all(const ir_node *node);

/**
 * Returns the argument register requirements of an TEMPLATE node.
 */
const TEMPLATE_register_req_t *get_TEMPLATE_in_req(const ir_node *node, int pos);

/**
 * Returns the result register requirements of an TEMPLATE node.
 */
const TEMPLATE_register_req_t *get_TEMPLATE_out_req(const ir_node *node, int pos);

/**
 * Sets the OUT register requirements at position pos.
 */
void set_TEMPLATE_req_out(ir_node *node, const TEMPLATE_register_req_t *req, int pos);

/**
 * Sets the IN register requirements at position pos.
 */
void set_TEMPLATE_req_in(ir_node *node, const TEMPLATE_register_req_t *req, int pos);

/**
 * Returns the register flag of an TEMPLATE node.
 */
arch_irn_flags_t get_TEMPLATE_flags(const ir_node *node);

/**
 * Sets the register flag of an TEMPLATE node.
 */
void set_TEMPLATE_flags(const ir_node *node, arch_irn_flags_t flags);

/**
 * Returns the result register slots of an TEMPLATE node.
 */
const arch_register_t **get_TEMPLATE_slots(const ir_node *node);

/**
 * Returns the name of the OUT register at position pos.
 */
const char *get_TEMPLATE_out_reg_name(const ir_node *node, int pos);

/**
 * Returns the index of the OUT register at position pos within its register class.
 */
int get_TEMPLATE_out_regnr(const ir_node *node, int pos);

/**
 * Returns the OUT register at position pos.
 */
const arch_register_t *get_TEMPLATE_out_reg(const ir_node *node, int pos);

/**
 * Sets the number of results.
 */
void set_TEMPLATE_n_res(ir_node *node, int n_res);

/**
 * Returns the number of results.
 */
int get_TEMPLATE_n_res(const ir_node *node);


/* Include the generated headers */
#include "gen_TEMPLATE_new_nodes.h"

#endif /* _TEMPLATE_NEW_NODES_H_ */