summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-08-19 22:07:57 -0700
committerOri Bernstein <ori@eigenstate.org>2015-08-19 22:07:57 -0700
commit0bd2678722f5f70a063190d54d12e62420f02b05 (patch)
treef7df4a2c17e6b5f32b1afdd0c2122e5d13e6e5b1 /6/asm.h
parent1ad429cfd3ae87764bcb7ba95d44a79eb4ce3dbf (diff)
downloadmc-0bd2678722f5f70a063190d54d12e62420f02b05.tar.gz
Start using mostly caller save ABI.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/6/asm.h b/6/asm.h
index c9ea68c..0797eba 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -1,6 +1,4 @@
#define Maxarg 4 /* maximum number of args an insn can have */
-#define Maxuse (2*Maxarg) /* maximum number of registers an insn can use or def */
-#define Maxdef (2*Maxarg) /* maximum number of registers an insn can use or def */
#define Wordsz 4 /* the size of a "natural int" */
#define Ptrsz 8 /* the size of a machine word (ie, pointer size) */
@@ -180,6 +178,7 @@ struct Isel {
size_t *ngadj;
size_t nreg; /* maxregid at time of alloc */
int *degree; /* degree of nodes */
+ int *nuses; /* number of uses of nodes */
Loc **aliasmap; /* mapping of aliases */
Bitset *shouldspill; /* the first registers we should try to spill */