2 * Copyright (C) 1995-2008 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 attributes attached to all amd64 nodes
24 #ifndef FIRM_BE_amd64_amd64_NODES_ATTR_H
25 #define FIRM_BE_amd64_amd64_NODES_ATTR_H
29 typedef struct amd64_attr_t amd64_attr_t;
30 typedef struct amd64_SymConst_attr_t amd64_SymConst_attr_t;
34 except_attr exc; /**< the exception attribute. MUST be the first one. */
35 ir_mode *ls_mode; /**< Stores the "input" mode */
36 struct amd64_attr_data_bitfield {
37 unsigned ins_permuted : 1; /**< inputs of node have been permuted
38 (for commutative nodes) */
39 unsigned cmp_unsigned : 1; /**< compare should be unsigned */
41 struct amd64_attr_extended {
42 ir_relation relation; /**< type of compare operation >*/
43 unsigned imm_value; /**< immediate value to use >*/
47 struct amd64_SymConst_attr_t
54 #define CAST_AMD64_ATTR(type,ptr) ((type *)(ptr))
55 #define CONST_CAST_AMD64_ATTR(type,ptr) ((const type *)(ptr))