- * Sets the index register scale for addrmode.
- */
-void set_ia32_am_scale(ir_node *node, int scale) {
- ia32_attr_t *attr = get_ia32_attr(node);
- attr->data.am_scale = scale;
-}
-
-/**
- * Return the tarval of an immediate operation or NULL in case of SymConst
- */
-tarval *get_ia32_Immop_tarval(const ir_node *node) {
- ia32_attr_t *attr = get_ia32_attr(node);
- return attr->cnst_val.tv;
-}
-
-/**
- * Sets the attributes of an immediate operation to the specified tarval
- */
-void set_ia32_Immop_tarval(ir_node *node, tarval *tv) {
- ia32_attr_t *attr = get_ia32_attr(node);
- attr->cnst_val.tv = tv;
- attr->cnst = get_ident_for_tv(tv);
-}
-
-/**
- * Gets the string representation of the internal const (tv or symconst)
- */
-const char *get_ia32_cnst(const ir_node *node) {
- ia32_attr_t *attr = get_ia32_attr(node);
- if (! attr->cnst)
- return NULL;
- return get_id_str(attr->cnst);
-}
-
-/**
- * Sets the string representation of the internal const.
- */
-void set_ia32_cnst(ir_node *node, const char *cnst) {
- ia32_attr_t *attr = get_ia32_attr(node);
- attr->cnst = new_id_from_str(cnst);
-}
-
-/**
- * Gets the ident representation of the internal const (tv or symconst)