projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix be_foreach_definition cls argument
[libfirm]
/
ir
/
be
/
bearch.h
diff --git
a/ir/be/bearch.h
b/ir/be/bearch.h
index
ad1f1b3
..
c8bbac6
100644
(file)
--- a/
ir/be/bearch.h
+++ b/
ir/be/bearch.h
@@
-621,29
+621,28
@@
static inline bool arch_irn_consider_in_reg_alloc(
* are not marked as ignore.
* Executes @p code for each definition.
*/
* are not marked as ignore.
* Executes @p code for each definition.
*/
-#define be_foreach_definition_(node, c
ls, value, code)
\
+#define be_foreach_definition_(node, c
cls, value, code)
\
do { \
if (get_irn_mode(node) == mode_T) { \
do { \
if (get_irn_mode(node) == mode_T) { \
- const ir_edge_t *edge_; \
foreach_out_edge(node, edge_) { \
const arch_register_req_t *req_; \
value = get_edge_src_irn(edge_); \
req_ = arch_get_irn_register_req(value); \
foreach_out_edge(node, edge_) { \
const arch_register_req_t *req_; \
value = get_edge_src_irn(edge_); \
req_ = arch_get_irn_register_req(value); \
- if (req_->cls != c
ls)
\
+ if (req_->cls != c
cls)
\
continue; \
code \
} \
} else { \
const arch_register_req_t *req_ = arch_get_irn_register_req(node); \
value = node; \
continue; \
code \
} \
} else { \
const arch_register_req_t *req_ = arch_get_irn_register_req(node); \
value = node; \
- if (req_->cls == c
ls) {
\
+ if (req_->cls == c
cls) {
\
code \
} \
} \
} while (0)
code \
} \
} \
} while (0)
-#define be_foreach_definition(node, c
ls, value, code)
\
- be_foreach_definition_(node, c
ls, value,
\
+#define be_foreach_definition(node, c
cls, value, code)
\
+ be_foreach_definition_(node, c
cls, value,
\
if (req_->type & arch_register_req_type_ignore) \
continue; \
code \
if (req_->type & arch_register_req_type_ignore) \
continue; \
code \