Skip to content
Snippets Groups Projects
Commit f9efd4a6 authored by Simon Marlow's avatar Simon Marlow Committed by Ian Lynagh
Browse files

add missing cases for ArchARM

parent 3b85157f
No related merge requests found
...@@ -197,6 +197,8 @@ nativeCodeGen dflags h us cmms ...@@ -197,6 +197,8 @@ nativeCodeGen dflags h us cmms
,ncgExpandTop = map SPARC.CodeGen.Expand.expandTop ,ncgExpandTop = map SPARC.CodeGen.Expand.expandTop
,ncgMakeFarBranches = id ,ncgMakeFarBranches = id
} }
ArchARM ->
panic "nativeCodeGen: No NCG for ARM"
ArchPPC_64 -> ArchPPC_64 ->
panic "nativeCodeGen: No NCG for PPC 64" panic "nativeCodeGen: No NCG for PPC 64"
ArchUnknown -> ArchUnknown ->
......
...@@ -115,6 +115,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcInteger conflicts exclusions ...@@ -115,6 +115,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcInteger conflicts exclusions
ArchPPC -> 16 ArchPPC -> 16
ArchSPARC -> 14 ArchSPARC -> 14
ArchPPC_64 -> panic "trivColorable ArchPPC_64" ArchPPC_64 -> panic "trivColorable ArchPPC_64"
ArchARM -> panic "trivColorable ArchARM"
ArchUnknown -> panic "trivColorable ArchUnknown") ArchUnknown -> panic "trivColorable ArchUnknown")
, count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_INTEGER , count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_INTEGER
(virtualRegSqueeze RcInteger) (virtualRegSqueeze RcInteger)
...@@ -134,6 +135,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcFloat conflicts exclusions ...@@ -134,6 +135,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcFloat conflicts exclusions
ArchPPC -> 0 ArchPPC -> 0
ArchSPARC -> 22 ArchSPARC -> 22
ArchPPC_64 -> panic "trivColorable ArchPPC_64" ArchPPC_64 -> panic "trivColorable ArchPPC_64"
ArchARM -> panic "trivColorable ArchARM"
ArchUnknown -> panic "trivColorable ArchUnknown") ArchUnknown -> panic "trivColorable ArchUnknown")
, count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_FLOAT , count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_FLOAT
(virtualRegSqueeze RcFloat) (virtualRegSqueeze RcFloat)
...@@ -153,6 +155,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcDouble conflicts exclusions ...@@ -153,6 +155,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcDouble conflicts exclusions
ArchPPC -> 26 ArchPPC -> 26
ArchSPARC -> 11 ArchSPARC -> 11
ArchPPC_64 -> panic "trivColorable ArchPPC_64" ArchPPC_64 -> panic "trivColorable ArchPPC_64"
ArchARM -> panic "trivColorable ArchARM"
ArchUnknown -> panic "trivColorable ArchUnknown") ArchUnknown -> panic "trivColorable ArchUnknown")
, count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_DOUBLE , count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_DOUBLE
(virtualRegSqueeze RcDouble) (virtualRegSqueeze RcDouble)
...@@ -172,6 +175,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcDoubleSSE conflicts exclusions ...@@ -172,6 +175,7 @@ trivColorable virtualRegSqueeze realRegSqueeze RcDoubleSSE conflicts exclusions
ArchPPC -> 0 ArchPPC -> 0
ArchSPARC -> 0 ArchSPARC -> 0
ArchPPC_64 -> panic "trivColorable ArchPPC_64" ArchPPC_64 -> panic "trivColorable ArchPPC_64"
ArchARM -> panic "trivColorable ArchARM"
ArchUnknown -> panic "trivColorable ArchUnknown") ArchUnknown -> panic "trivColorable ArchUnknown")
, count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_SSE , count2 <- accSqueeze (_ILIT(0)) cALLOCATABLE_REGS_SSE
(virtualRegSqueeze RcDoubleSSE) (virtualRegSqueeze RcDoubleSSE)
......
...@@ -68,6 +68,7 @@ maxSpillSlots = case platformArch defaultTargetPlatform of ...@@ -68,6 +68,7 @@ maxSpillSlots = case platformArch defaultTargetPlatform of
ArchX86_64 -> X86.Instr.maxSpillSlots ArchX86_64 -> X86.Instr.maxSpillSlots
ArchPPC -> PPC.Instr.maxSpillSlots ArchPPC -> PPC.Instr.maxSpillSlots
ArchSPARC -> SPARC.Instr.maxSpillSlots ArchSPARC -> SPARC.Instr.maxSpillSlots
ArchARM -> panic "maxSpillSlots ArchARM"
ArchPPC_64 -> panic "maxSpillSlots ArchPPC_64" ArchPPC_64 -> panic "maxSpillSlots ArchPPC_64"
ArchUnknown -> panic "maxSpillSlots ArchUnknown" ArchUnknown -> panic "maxSpillSlots ArchUnknown"
...@@ -183,6 +183,7 @@ linearRegAlloc dflags first_id block_live sccs ...@@ -183,6 +183,7 @@ linearRegAlloc dflags first_id block_live sccs
ArchX86_64 -> linearRegAlloc' (frInitFreeRegs :: X86.FreeRegs) first_id block_live sccs ArchX86_64 -> linearRegAlloc' (frInitFreeRegs :: X86.FreeRegs) first_id block_live sccs
ArchSPARC -> linearRegAlloc' (frInitFreeRegs :: SPARC.FreeRegs) first_id block_live sccs ArchSPARC -> linearRegAlloc' (frInitFreeRegs :: SPARC.FreeRegs) first_id block_live sccs
ArchPPC -> linearRegAlloc' (frInitFreeRegs :: PPC.FreeRegs) first_id block_live sccs ArchPPC -> linearRegAlloc' (frInitFreeRegs :: PPC.FreeRegs) first_id block_live sccs
ArchARM -> panic "linearRegAlloc ArchARM"
ArchPPC_64 -> panic "linearRegAlloc ArchPPC_64" ArchPPC_64 -> panic "linearRegAlloc ArchPPC_64"
ArchUnknown -> panic "linearRegAlloc ArchUnknown" ArchUnknown -> panic "linearRegAlloc ArchUnknown"
......
...@@ -52,6 +52,7 @@ targetVirtualRegSqueeze ...@@ -52,6 +52,7 @@ targetVirtualRegSqueeze
ArchPPC -> PPC.virtualRegSqueeze ArchPPC -> PPC.virtualRegSqueeze
ArchSPARC -> SPARC.virtualRegSqueeze ArchSPARC -> SPARC.virtualRegSqueeze
ArchPPC_64 -> panic "targetVirtualRegSqueeze ArchPPC_64" ArchPPC_64 -> panic "targetVirtualRegSqueeze ArchPPC_64"
ArchARM -> panic "targetVirtualRegSqueeze ArchARM"
ArchUnknown -> panic "targetVirtualRegSqueeze ArchUnknown" ArchUnknown -> panic "targetVirtualRegSqueeze ArchUnknown"
targetRealRegSqueeze :: RegClass -> RealReg -> FastInt targetRealRegSqueeze :: RegClass -> RealReg -> FastInt
...@@ -62,6 +63,7 @@ targetRealRegSqueeze ...@@ -62,6 +63,7 @@ targetRealRegSqueeze
ArchPPC -> PPC.realRegSqueeze ArchPPC -> PPC.realRegSqueeze
ArchSPARC -> SPARC.realRegSqueeze ArchSPARC -> SPARC.realRegSqueeze
ArchPPC_64 -> panic "targetRealRegSqueeze ArchPPC_64" ArchPPC_64 -> panic "targetRealRegSqueeze ArchPPC_64"
ArchARM -> panic "targetRealRegSqueeze ArchARM"
ArchUnknown -> panic "targetRealRegSqueeze ArchUnknown" ArchUnknown -> panic "targetRealRegSqueeze ArchUnknown"
targetClassOfRealReg :: RealReg -> RegClass targetClassOfRealReg :: RealReg -> RegClass
...@@ -72,6 +74,7 @@ targetClassOfRealReg ...@@ -72,6 +74,7 @@ targetClassOfRealReg
ArchPPC -> PPC.classOfRealReg ArchPPC -> PPC.classOfRealReg
ArchSPARC -> SPARC.classOfRealReg ArchSPARC -> SPARC.classOfRealReg
ArchPPC_64 -> panic "targetClassOfRealReg ArchPPC_64" ArchPPC_64 -> panic "targetClassOfRealReg ArchPPC_64"
ArchARM -> panic "targetClassOfRealReg ArchARM"
ArchUnknown -> panic "targetClassOfRealReg ArchUnknown" ArchUnknown -> panic "targetClassOfRealReg ArchUnknown"
-- TODO: This should look at targetPlatform too -- TODO: This should look at targetPlatform too
...@@ -86,6 +89,7 @@ targetMkVirtualReg ...@@ -86,6 +89,7 @@ targetMkVirtualReg
ArchPPC -> PPC.mkVirtualReg ArchPPC -> PPC.mkVirtualReg
ArchSPARC -> SPARC.mkVirtualReg ArchSPARC -> SPARC.mkVirtualReg
ArchPPC_64 -> panic "targetMkVirtualReg ArchPPC_64" ArchPPC_64 -> panic "targetMkVirtualReg ArchPPC_64"
ArchARM -> panic "targetMkVirtualReg ArchARM"
ArchUnknown -> panic "targetMkVirtualReg ArchUnknown" ArchUnknown -> panic "targetMkVirtualReg ArchUnknown"
targetRegDotColor :: RealReg -> SDoc targetRegDotColor :: RealReg -> SDoc
...@@ -96,6 +100,7 @@ targetRegDotColor ...@@ -96,6 +100,7 @@ targetRegDotColor
ArchPPC -> PPC.regDotColor ArchPPC -> PPC.regDotColor
ArchSPARC -> SPARC.regDotColor ArchSPARC -> SPARC.regDotColor
ArchPPC_64 -> panic "targetRegDotColor ArchPPC_64" ArchPPC_64 -> panic "targetRegDotColor ArchPPC_64"
ArchARM -> panic "targetRegDotColor ArchARM"
ArchUnknown -> panic "targetRegDotColor ArchUnknown" ArchUnknown -> panic "targetRegDotColor ArchUnknown"
......
...@@ -61,6 +61,7 @@ normalRegColors = case platformArch defaultTargetPlatform of ...@@ -61,6 +61,7 @@ normalRegColors = case platformArch defaultTargetPlatform of
ArchPPC -> panic "X86 normalRegColors ArchPPC" ArchPPC -> panic "X86 normalRegColors ArchPPC"
ArchPPC_64 -> panic "X86 normalRegColors ArchPPC_64" ArchPPC_64 -> panic "X86 normalRegColors ArchPPC_64"
ArchSPARC -> panic "X86 normalRegColors ArchSPARC" ArchSPARC -> panic "X86 normalRegColors ArchSPARC"
ArchARM -> panic "X86 normalRegColors ArchARM"
ArchUnknown -> panic "X86 normalRegColors ArchUnknown" ArchUnknown -> panic "X86 normalRegColors ArchUnknown"
fpRegColors :: [(Reg,String)] fpRegColors :: [(Reg,String)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment