projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added some new get attr functions
[libfirm]
/
ir
/
be
/
bearch_firm.h
diff --git
a/ir/be/bearch_firm.h
b/ir/be/bearch_firm.h
index
a5efd6d
..
646779b
100644
(file)
--- a/
ir/be/bearch_firm.h
+++ b/
ir/be/bearch_firm.h
@@
-21,4
+21,14
@@
extern const arch_irn_handler_t firm_irn_handler;
/* TODO UGLY*/
int is_Imm(const ir_node *irn);
+tarval *get_Imm_tv(ir_node *irn);
+
+typedef struct {
+ enum { imm_Const, imm_SymConst } tp;
+ union {
+ tarval *tv;
+ ir_node *symconst;
+ } data;
+} imm_attr_t;
+
#endif /* _BEARCH_FIRM_H */