projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use save_optimization_state() restore_optimization_state()
[libfirm]
/
ir
/
be
/
bearch.c
diff --git
a/ir/be/bearch.c
b/ir/be/bearch.c
index
f12ed01
..
f69e8b2
100644
(file)
--- a/
ir/be/bearch.c
+++ b/
ir/be/bearch.c
@@
-167,6
+167,19
@@
void arch_put_non_ignore_regs(const arch_env_t *env, const arch_register_class_t
}
}
}
}
+int arch_count_non_ignore_regs(const arch_env_t *env, const arch_register_class_t *cls)
+{
+ int i;
+ int result = 0;
+
+ for(i = 0; i < cls->n_regs; ++i) {
+ if(!arch_register_type_is(&cls->regs[i], ignore))
+ result++;
+ }
+
+ return result;
+}
+
int arch_is_register_operand(const arch_env_t *env,
const ir_node *irn, int pos)
{
int arch_is_register_operand(const arch_env_t *env,
const ir_node *irn, int pos)
{