projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Split Reg into vreg/hreg and add register pairs
[ghc-hetmet.git]
/
compiler
/
nativeGen
/
RegAlloc
/
Linear
/
FreeRegs.hs
diff --git
a/compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs
b/compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs
index
bee8c98
..
b357160
100644
(file)
--- a/
compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs
+++ b/
compiler/nativeGen/RegAlloc/Linear/FreeRegs.hs
@@
-5,7
+5,8
@@
module RegAlloc.Linear.FreeRegs (
releaseReg,
initFreeRegs,
getFreeRegs,
releaseReg,
initFreeRegs,
getFreeRegs,
- allocateReg
+ allocateReg,
+ maxSpillSlots
)
#include "HsVersions.h"
)
#include "HsVersions.h"
@@
-27,12
+28,15
@@
where
#if defined(powerpc_TARGET_ARCH)
import RegAlloc.Linear.PPC.FreeRegs
#if defined(powerpc_TARGET_ARCH)
import RegAlloc.Linear.PPC.FreeRegs
+import PPC.Instr (maxSpillSlots)
#elif defined(sparc_TARGET_ARCH)
import RegAlloc.Linear.SPARC.FreeRegs
#elif defined(sparc_TARGET_ARCH)
import RegAlloc.Linear.SPARC.FreeRegs
+import SPARC.Instr (maxSpillSlots)
#elif defined(i386_TARGET_ARCH) || defined(x86_64_TARGET_ARCH)
import RegAlloc.Linear.X86.FreeRegs
#elif defined(i386_TARGET_ARCH) || defined(x86_64_TARGET_ARCH)
import RegAlloc.Linear.X86.FreeRegs
+import X86.Instr (maxSpillSlots)
#else
#error "RegAlloc.Linear.FreeRegs not defined for this architecture."
#else
#error "RegAlloc.Linear.FreeRegs not defined for this architecture."