#ifndef IA32_ADDRESS_MODE_H
#define IA32_ADDRESS_MODE_H
+#include <stdbool.h>
#include "irtypes.h"
#include "../beirg.h"
int offset; /**< An integer offset. */
int scale; /**< An integer scale. {0,1,2,3} */
ir_entity *symconst_ent; /**< A SynConst entity if any. */
- int use_frame; /**< Set, if the frame is accessed */
+ bool use_frame; /**< Set, if the frame is accessed */
+ bool tls_segment; /**< Set if AM is relative to TLS */
ir_entity *frame_entity; /**< The accessed frame entity if any. */
- int symconst_sign; /**< The "sign" of the symconst. */
+ bool symconst_sign; /**< The "sign" of the symconst. */
};
+/**
+ * Additional flags for the address mode creation.
+ */
typedef enum ia32_create_am_flags_t {
- ia32_create_am_normal = 0,
+ ia32_create_am_normal = 0, /**< Normal operation. */
ia32_create_am_force = 1U << 0, /**< Ignore the marking of node as a
- non-address-mode node */
+ non-address-mode node. */
ia32_create_am_double_use = 1U << 1 /**< Fold AM, even if the root of
address calculation has two users.
- This is useful for dest AM */
+ This is useful for dest AM. */
} ia32_create_am_flags_t;
/**