+/**
+ * Type definitions for ia32 node attributes.
+ * @author Christian Wuerdig
+ * $Id$
+ */
+
#ifndef _IA32_NODES_ATTR_H_
#define _IA32_NODES_ATTR_H_
unsigned emit_cl:1; /**< indicates whether we must emit cl instead of ecx (needed for shifts) */
- unsigned n_res:8; /**< number of results produced by this node */
+ unsigned got_lea:1; /**< indicates whether or not this node already consumed a LEA */
+
+ unsigned n_res:7; /**< number of results produced by this node */
} data;
- struct obstack *am_offs; /**< offsets for AddrMode */
- ident *am_sc; /**< SymConst for AddrMode */
+ struct obstack *am_offs; /**< offsets for AddrMode */
+ struct obstack *plain_offs; /**< obstack for plain am_offs */
+ ident *am_sc; /**< SymConst for AddrMode */
union {
tarval *tv; /**< tarval for immediate operations */
ir_mode *ls_mode; /**< the mode of the stored/loaded value */
ir_mode *res_mode; /**< the mode of the result */
+ ir_mode *src_mode; /**< source mode for conversion */
+ ir_mode *tgt_mode; /**< target mode for conversion */
entity *frame_ent; /**< the frame entity attached to this node */
const ia32_register_req_t **in_req; /**< register requirements for arguments */
const ia32_register_req_t **out_req; /**< register requirements for results */
- const arch_register_t **slots; /**< register slots for assigned registers */
const arch_register_t *x87[3]; /**< register slots for x87 register */
+
+ /* must be last, dynamic */
+ const arch_register_t *slots[1]; /**< register slots for assigned registers */
} ia32_attr_t;
#endif /* _IA32_NODES_ATTR_H_ */