projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sparc: implement mode-neutral matching; support immediates for Cmp node
[libfirm]
/
ir
/
be
/
sparc
/
sparc_nodes_attr.h
diff --git
a/ir/be/sparc/sparc_nodes_attr.h
b/ir/be/sparc/sparc_nodes_attr.h
index
b7f4aa4
..
8a82bf4
100644
(file)
--- a/
ir/be/sparc/sparc_nodes_attr.h
+++ b/
ir/be/sparc/sparc_nodes_attr.h
@@
-26,6
+26,7
@@
#define FIRM_BE_SPARC_SPARC_NODES_ATTR_H
#include "../bearch.h"
#define FIRM_BE_SPARC_SPARC_NODES_ATTR_H
#include "../bearch.h"
+#include <stdint.h>
typedef struct sparc_attr_t sparc_attr_t;
typedef struct sparc_attr_t sparc_attr_t;
@@
-36,10
+37,14
@@
struct sparc_attr_t
{
except_attr exc; /**< the exception attribute. MUST be the first one. */
const arch_register_req_t **in_req; /**< register requirements for arguments */
{
except_attr exc; /**< the exception attribute. MUST be the first one. */
const arch_register_req_t **in_req; /**< register requirements for arguments */
- int immediate_value; /* immediate values */
- bool is_load_store;
+ int32_t immediate_value; /* immediate values */
+ ir_entity *immediate_value_entity;
+};
- ir_entity *immediate_value_entity; /* hack for now */
+enum sparc_arch_irn_flags_t {
+ sparc_arch_irn_flag_modifies_flags = arch_irn_flags_backend << 0,
+ sparc_arch_irn_flag_modifies_fp_flags = arch_irn_flags_backend << 1,
+ sparc_arch_irn_flag_needs_64bit_spillslot = arch_irn_flags_backend << 2,
};
/**
};
/**
@@
-74,20
+79,8
@@
typedef struct sparc_load_store_attr_t sparc_load_store_attr_t;
struct sparc_load_store_attr_t {
sparc_attr_t base; /**< generic attribute */
ir_mode *load_store_mode;
struct sparc_load_store_attr_t {
sparc_attr_t base; /**< generic attribute */
ir_mode *load_store_mode;
- ir_entity *entity;
- int entity_sign;
- long offset;
- bool is_frame_entity;
-};
-
-/**
- * attributes for SymConsts
- */
-typedef struct sparc_symconst_attr_t sparc_symconst_attr_t;
-struct sparc_symconst_attr_t {
- sparc_attr_t base; /**< generic attribute */
- ir_entity *entity;
- int fp_offset;
+ bool is_frame_entity : 1;
+ bool is_reg_reg : 1;
};
/**
};
/**
@@
-96,18
+89,18
@@
struct sparc_symconst_attr_t {
typedef struct sparc_jmp_cond_attr_t sparc_jmp_cond_attr_t;
struct sparc_jmp_cond_attr_t {
sparc_attr_t base; /**< generic attribute */
typedef struct sparc_jmp_cond_attr_t sparc_jmp_cond_attr_t;
struct sparc_jmp_cond_attr_t {
sparc_attr_t base; /**< generic attribute */
-
int proj_num
;
+
pn_Cmp pnc
;
bool is_unsigned : 1;
};
/**
* attributes for switch jumps
*/
bool is_unsigned : 1;
};
/**
* attributes for switch jumps
*/
-typedef struct sparc_
jmp_switch_attr_t sparc_jmp_switch
_attr_t;
-struct sparc_
jmp_switch
_attr_t {
+typedef struct sparc_
switch_jmp_attr_t sparc_switch_jmp
_attr_t;
+struct sparc_
switch_jmp
_attr_t {
sparc_attr_t base; /**< generic attribute */
sparc_attr_t base; /**< generic attribute */
- int n_projs;
long default_proj_num;
long default_proj_num;
+ ir_entity *jump_table;
};
#endif
};
#endif