summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-07-23 07:17:03 +0200
committerMatthias Braun <matze@braunis.de>2015-07-23 07:21:28 +0200
commit2c077dd1b15e9ab04a2421794f987e83dafa829a (patch)
treed958be52de12ce0c4f3e40a46aaabdf88fcd5b79 /ir/be/bearch.h
parent1cf87be91d21eb4d86d9c04a4575c78b830cb66e (diff)
Add a way to specify additional register pressure for the first 4 register classes
I'm not proud of the 4 restriction but for now this works.
Diffstat (limited to 'ir/be/bearch.h')
-rw-r--r--ir/be/bearch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ir/be/bearch.h b/ir/be/bearch.h
index 6c06523..27dd9fc 100644
--- a/ir/be/bearch.h
+++ b/ir/be/bearch.h
@@ -120,6 +120,12 @@ static inline void arch_add_irn_flags(ir_node *const node, arch_irn_flags_t cons
info->flags |= flags;
}
+void arch_set_additional_pressure(ir_node *node, arch_register_class_t const *,
+ uint8_t pressure);
+
+uint8_t arch_get_additional_pressure(ir_node const *node,
+ arch_register_class_t const *cls);
+
/**
* Returns true if the given node should not be scheduled (has
* arch_irn_flag_not_scheduled flag set)