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
20 #ifndef _PPC32_NODES_ATTR_H_
21 #define _PPC32_NODES_ATTR_H_
23 #include "../bearch_t.h"
41 } ppc32_attr_content_type;
44 ppc32_ao_None, ppc32_ao_Lo16, ppc32_ao_Hi16, ppc32_ao_Ha16, ppc32_ao_Illegal
45 } ppc32_attr_offset_mode;
47 typedef struct _ppc32_attr_t {
48 arch_irn_flags_t flags; /**< indicating if spillable, rematerializeable ... etc. */
49 int n_res; /**< number of results for this node */
51 const arch_register_req_t **in_req; /**< register requirements for arguments */
52 const arch_register_req_t **out_req; /**< register requirements for results */
54 ppc32_attr_content_type content_type;
55 ppc32_attr_offset_mode offset_mode;
57 tarval *constant_tarval;
58 ident *symconst_ident;
59 ir_entity *frame_entity;
60 rlwimi_const_t rlwimi_const;
66 /* must be last, dynamically allocated */
67 const arch_register_t *slots[1]; /**< register slots for assigned registers */
70 #endif /* _PPC32_NODES_ATTR_H_ */