- * Possible ARM condition codes.
- */
-typedef enum _arm_condition {
- ARM_COND_EQ = 0, /**< Equal, Z set. */
- ARM_COND_NE = 1, /**< Not Equal, Z clear */
- ARM_COND_CS = 2, /**< Carry set, unsigned >=, C set */
- ARM_COND_CC = 3, /**< Carry clear, unsigned <, C clear */
- ARM_COND_MI = 4, /**< Minus/Negativ, N set */
- ARM_COND_PL = 5, /**< Plus/Positiv or Zero, N clear */
- ARM_COND_VS = 6, /**< Overflow, V set */
- ARM_COND_VC = 7, /**< No overflow, V clear */
- ARM_COND_HI = 8, /**< unsigned >, C set and Z clear */
- ARM_COND_LS = 9, /**< unsigned <=, C clear or Z set */
- ARM_COND_GE = 10, /**< signed >=, N == V */
- ARM_COND_LT = 11, /**< signed <, N != V */
- ARM_COND_GT = 12, /**< signed >, Z clear and N == V */
- ARM_COND_LE = 13, /**< signed <=, Z set or N != V */
- ARM_COND_AL = 14, /**< Always (unconditional) */
- ARM_COND_NV = 15 /**< forbidden */
-} arm_condition;
-
-/** Get the condition code from flags */
-#define ARM_GET_COND(attr) (((attr)->instr_fl >> 3) & 15)
-
-/** Set the condition code to flags */
-#define ARM_SET_COND(attr, code) ((attr)->instr_fl = (((attr)->instr_fl & ~(15 << 3)) | ((code) << 3)))
-
-typedef struct _arm_attr_t {
- arch_irn_flags_t flags; /**< indicating if spillable, rematerializeable ... etc. */
- int n_res; /**< number of results for this node */
-
- const arch_register_req_t **in_req; /**< register requirements for arguments */
- const arch_register_req_t **out_req; /**< register requirements for results */
-
- ir_mode *op_mode; /**< operation mode */
- unsigned instr_fl; /**< condition code, shift modifier */
- tarval *value; /**< immediate */
- const char *symconst_label;
- int proj_num;
- int n_projs;
- long default_proj_num;
-
- /* must be last, dynamically allocated */
- const arch_register_t *slots[1]; /**< register slots for assigned registers */
-} arm_attr_t;
+ * this struct holds information needed to produce the arm addressing modes
+ * for "Load and Store Word or Unsigned Byte", "Miscellaneous Loads and Stores"
+ * and "Load and Store Multiple" */
+typedef struct arm_load_store_attr_t {
+ arm_attr_t base;
+ ir_mode *load_store_mode;
+ ir_entity *entity;
+ long offset;
+ bool is_frame_entity : 1;
+ bool entity_sign : 1;
+} arm_load_store_attr_t;
+
+/** Attributes for a SymConst */
+typedef struct arm_SymConst_attr_t {
+ arm_attr_t base;
+ ir_entity *entity;
+ int fp_offset;
+} arm_SymConst_attr_t;
+
+/** Attributes for a CondJmp */
+typedef struct arm_CondJmp_attr_t {
+ arm_attr_t base;
+ pn_Cmp pnc;
+} arm_CondJmp_attr_t;
+
+/** Attributes for a SwitchJmp */
+typedef struct arm_SwitchJmp_attr_t {
+ arm_attr_t base;
+ int n_projs;
+ long default_proj_num;
+} arm_SwitchJmp_attr_t;
+
+/** CopyB attributes */
+typedef struct arm_CopyB_attr_t {
+ arm_attr_t base;
+ unsigned size;
+} arm_CopyB_attr_t;
+
+/** Attributes for a fConst */
+typedef struct arm_fConst_attr_t {
+ arm_attr_t base;
+ tarval *tv; /**< the tarval representing the FP const */
+} arm_fConst_attr_t;
+
+/** attributes for floatingpoint arithmetic operations */
+typedef struct arm_farith_attr_t {
+ arm_attr_t base;
+ ir_mode *mode; /* operation mode */
+} arm_farith_attr_t;