bb473537b613752a0fc5b87e2e8ec0056f026f95
[libfirm] / ir / be / TEMPLATE / TEMPLATE_nodes_attr.h
1 /*
2  * Copyright (C) 1995-2007 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   attributes attached to all TEMPLATE nodes
23  * @version $Id$
24  */
25 #ifndef FIRM_BE_TEMPLATE_TEMPLATE_NODES_ATTR_H
26 #define FIRM_BE_TEMPLATE_TEMPLATE_NODES_ATTR_H
27
28 #include "../bearch_t.h"
29
30 typedef struct TEMPLATE_attr_t  TEMPLATE_attr_t;
31
32 struct TEMPLATE_attr_t
33 {
34         arch_irn_flags_t flags;     /**< indicating if spillable, rematerializeable ... etc. */
35         int              n_res;     /**< number of results for this node */
36
37         const arch_register_req_t **in_req;  /**< register requirements for arguments */
38         const arch_register_req_t **out_req; /**< register requirements for results */
39
40         /* must be last, dynamically allocated */
41         const arch_register_t *slots[1];         /**< register slots for assigned registers */
42 };
43
44 #endif