Start block isn't a special case anymore (and now get the old node nr).
[libfirm] / ir / be / mips / mips_nodes_attr.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   declaration of attributes for mips nodes
23  * @author  Matthias Braun
24  * @version $Id$
25  */
26 #ifndef FIRM_BE_MIPS_MIPS_NODES_ATTR_H
27 #define FIRM_BE_MIPS_MIPS_NODES_ATTR_H
28
29 #include "../bearch.h"
30 #include "irmode_t.h"
31 #include "irnode_t.h"
32
33 typedef struct mips_attr_t {
34         except_attr  exc;               /**< the exception attribute. MUST be the first one. */
35
36         int switch_default_pn;          /**< proj number of default case in switch */
37
38         const arch_register_req_t **in_req;  /**< register requirements for arguments */
39         const arch_register_req_t **out_req; /**< register requirements for results */
40 } mips_attr_t;
41
42 typedef enum mips_immediate_type_t {
43         MIPS_IMM_CONST,
44         MIPS_IMM_SYMCONST_LO,
45         MIPS_IMM_SYMCONST_HI
46 } mips_immediate_type_t;
47
48 typedef struct mips_immediate_attr_t {
49         mips_attr_t            attr;
50         mips_immediate_type_t  imm_type;
51         ir_entity             *entity;
52         long                   val;
53 } mips_immediate_attr_t;
54
55 typedef struct mips_load_store_attr_t {
56         mips_attr_t  attr;
57         ir_entity   *stack_entity;
58         long         offset;
59 } mips_load_store_attr_t;
60
61 #endif