*/
void set_ia32_op_type(ir_node *node, ia32_op_type_t tp);
-/**
- * Gets the immediate op type of an ia32 node.
- */
-ia32_immop_type_t get_ia32_immop_type(const ir_node *node);
-
-/**
- * Sets the immediate op type of an ia32 node.
- */
-void set_ia32_immop_type(ir_node *node, ia32_immop_type_t tp);
-
/**
* Gets the supported addrmode of an ia32 node
*/
ia32_am_type_t get_ia32_am_support(const ir_node *node);
-/**
- * Sets the supported addrmode of an ia32 node
- */
-void set_ia32_am_support(ir_node *node, ia32_am_type_t am_tp);
-
-/**
- * Gets the addrmode flavour of an ia32 node
- */
-ia32_am_flavour_t get_ia32_am_flavour(const ir_node *node);
+ia32_am_arity_t get_ia32_am_arity(const ir_node *node);
/**
- * Sets the addrmode flavour of an ia32 node
+ * Sets the supported addrmode of an ia32 node
*/
-void set_ia32_am_flavour(ir_node *node, ia32_am_flavour_t am_flavour);
+void set_ia32_am_support(ir_node *node, ia32_am_type_t am_tp,
+ ia32_am_arity_t am_arity);
/**
* Gets the addressmode offset as long.
*/
void set_ia32_am_scale(ir_node *node, int scale);
-/**
- * Return the tarval of an immediate operation or NULL if none set
- */
-tarval *get_ia32_Immop_tarval(const ir_node *node);
-
-/**
- * Return the symconst entity of an immediate operation or NULL if none set
- */
-ir_entity* get_ia32_Immop_symconst(const ir_node *node);
-
-/**
- * Sets the attributes of an immediate operation to the specified tarval
- */
-void set_ia32_Immop_tarval(ir_node *node, tarval *tv);
-
-/**
- * Sets the attributes of an immediate operation to the specified SymConst
- */
-void set_ia32_Immop_symconst(ir_node *node, ir_entity *entity);
-
/**
* Sets the uses_frame flag.
*/
*/
int is_ia32_commutative(const ir_node *node);
-/**
- * Sets node emit_cl.
- */
-void set_ia32_emit_cl(ir_node *node);
-
-/**
- * Clears node emit_cl.
- */
-void clear_ia32_emit_cl(ir_node *node);
-
-/**
- * Checks if node is commutative.
- */
-int is_ia32_emit_cl(const ir_node *node);
-
/**
* Sets node got_lea.
*/
*/
ident *ia32_get_ent_ident(ir_entity *ent);
-/**
- * Copy the attributes from Immop to an Immop
- */
-void copy_ia32_Immop_attr(ir_node *node, ir_node *src);
-
/**
* Returns the proj of the result value for nodes that have the usual
* (res, Mem) result tuple
*/
void set_ia32_AddrMode(ir_node *node, char direction);
-/**
- * Returns whether or not the node is an immediate operation with Const.
- */
-int is_ia32_ImmConst(const ir_node *node);
-
-/**
- * Returns whether or not the node is an immediate operation with SymConst.
- */
-int is_ia32_ImmSymConst(const ir_node *node);
-
/**
* Returns whether or not the node is an AddrModeS node.
*/
int is_ia32_St(const ir_node *node);
/**
- * Checks if node is a Const or fConst.
+ * Swaps left/right input of a node (and adjusts pnc if needed)
*/
-int is_ia32_Cnst(const ir_node *node);
+void ia32_swap_left_right(ir_node *node);
/**
* Initializes the nodes attributes.
void init_ia32_immediate_attributes(ir_node *node, ir_entity *symconst,
int symconst_sign, long offset);
-/**
- * Registers the ia32_copy_attr function for all ia32 opcodes.
- */
-void ia32_register_copy_attr_func(void);
-
/* Include the generated headers */
#include "gen_ia32_new_nodes.h"