/* commutative */
fprintf(F, "commutative = %d\n", is_ia32_commutative(n));
- /* got lea */
- fprintf(F, "got loea = %d\n", is_ia32_got_lea(n));
-
/* need stackent */
fprintf(F, "need stackent = %d\n", is_ia32_need_stackent(n));
return attr->data.is_commutative;
}
-/**
- * Sets node got_lea.
- */
-void set_ia32_got_lea(ir_node *node) {
- ia32_attr_t *attr = get_ia32_attr(node);
- attr->data.got_lea = 1;
-}
-
-/**
- * Clears node got_lea.
- */
-void clear_ia32_got_lea(ir_node *node) {
- ia32_attr_t *attr = get_ia32_attr(node);
- attr->data.got_lea = 0;
-}
-
-/**
- * Checks if node got lea.
- */
-int is_ia32_got_lea(const ir_node *node) {
- const ia32_attr_t *attr = get_ia32_attr_const(node);
- return attr->data.got_lea;
-}
-
void set_ia32_need_stackent(ir_node *node) {
ia32_attr_t *attr = get_ia32_attr(node);
attr->data.need_stackent = 1;
*/
int is_ia32_commutative(const ir_node *node);
-/**
- * Sets node got_lea.
- */
-void set_ia32_got_lea(ir_node *node);
-
-/**
- * Clears node got_lea.
- */
-void clear_ia32_got_lea(ir_node *node);
-
-/**
- * Checks if node got lea.
- */
-int is_ia32_got_lea(const ir_node *node);
-
/**
* Sets node needs_stackent
*/
void clear_ia32_need_stackent(ir_node *node);
/**
- * Checks if node needs a stackentity assigned
+ * Checks if node needs a stack entity assigned
*/
int is_ia32_need_stackent(const ir_node *node);
} ia32_op_type_t;
typedef enum {
- ia32_am_None = 0, /**<< no addrmode support */
+ ia32_am_None = 0, /**< no addrmode support */
ia32_am_Dest = 1,
- ia32_am_Source = 2, /**<< addrmode for source only */
+ ia32_am_Source = 2, /**< addrmode for source only */
ia32_am_Full = 3
} ia32_am_type_t;
unsigned is_commutative:1; /**< Indicates whether op is commutative or not. */
- unsigned got_lea:1; /**< Indicates whether or not this node already consumed a LEA. */
-
unsigned need_stackent:1; /**< Set to 1 if node need space on stack. */
unsigned need_64bit_stackent:1; /**< needs a 64bit stack entity (see double->unsigned int conv) */
unsigned need_32bit_stackent:1; /**< needs a 32bit stack entity */