2 * Copyright (C) 1995-2007 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 declaration of attributes for mips nodes
23 * @author Matthias Braun
26 #ifndef FIRM_BE_MIPS_MIPS_NODES_ATTR_H
27 #define FIRM_BE_MIPS_MIPS_NODES_ATTR_H
29 #include "../bearch_t.h"
32 typedef struct _mips_attr_t {
33 arch_irn_flags_t flags; /**< indicating if spillable, rematerializeable ... etc. */
34 int n_res; /**< number of results for this node */
36 tarval *tv; /**< contains the immediate value */
39 ir_mode *original_mode; /**< contains the original mode of the node */
40 ir_entity *stack_entity; /**< contains the entity on the stack for a load/store mode */
41 int switch_default_pn; /**< proj number of default case in switch */
43 const arch_register_req_t **in_req; /**< register requirements for arguments */
44 const arch_register_req_t **out_req; /**< register requirements for results */
46 /* must be last, dynamically allocated */
47 const arch_register_t *slots[1]; /**< register slots for assigned registers */