summaryrefslogtreecommitdiff
path: root/regalloc.h
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-07-04 00:00:14 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-07-04 00:00:52 -0400
commitd4032b70c0b417f5b63d3b5c203389112816f819 (patch)
tree913d4b833da509b55f97ced95cedc7bfd19db57f /regalloc.h
parent5340f72139f21fce944d4c35aca6a2c2d23d120d (diff)
asdf
asdf
Diffstat (limited to 'regalloc.h')
-rw-r--r--regalloc.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/regalloc.h b/regalloc.h
index a5cd7bf..08e6bc9 100644
--- a/regalloc.h
+++ b/regalloc.h
@@ -11,11 +11,14 @@ op_t reg_alloc_alloc_mmx (RegAlloc *ra);
op_t reg_alloc_alloc_sse (RegAlloc *ra);
op_t reg_alloc_alloc_gp_force (RegAlloc *ra,
reg_t reg);
+op_t reg_alloc_get_register_or_memory (RegAlloc *ra, op_t);
/* It is allowed to read a variable immediately after
* deallocating it. New variables may be allocated in
* the same slot, but this is fine because instructions
- * work when both operands are the same register
+ * work when both operands are the same register. In
+ * other words, a decallocated register remains usable until
+ * someone has written into a newly allocated variable.
*/
void reg_alloc_dealloc (RegAlloc *ra,
op_t var);