X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=compiler%2FnativeGen%2FPPC%2FRegInfo.hs;h=37de7522f6369303758c519239e14aac366b795e;hb=2d498de3fd7a8f60621c601e419fe7cb14788b1c;hp=719d76c3161094c3bfb9cf7f0b5f9b2327a8341c;hpb=f9288086f935c97812b2d80defcff38baf7b6a6c;p=ghc-hetmet.git diff --git a/compiler/nativeGen/PPC/RegInfo.hs b/compiler/nativeGen/PPC/RegInfo.hs index 719d76c..37de752 100644 --- a/compiler/nativeGen/PPC/RegInfo.hs +++ b/compiler/nativeGen/PPC/RegInfo.hs @@ -7,14 +7,11 @@ ----------------------------------------------------------------------------- module PPC.RegInfo ( - mkVReg, - JumpDest, canShortcut, shortcutJump, - shortcutStatic, - regDotColor + shortcutStatic ) where @@ -24,28 +21,12 @@ where import PPC.Regs import PPC.Instr -import RegClass -import Reg -import Size import BlockId import Cmm import CLabel import Outputable -import Unique - -mkVReg :: Unique -> Size -> Reg -mkVReg u size - | not (isFloatSize size) = RegVirtual $ VirtualRegI u - | otherwise - = case size of - FF32 -> RegVirtual $ VirtualRegD u - FF64 -> RegVirtual $ VirtualRegD u - _ -> panic "mkVReg" - - - data JumpDest = DestBlockId BlockId | DestImm Imm @@ -84,11 +65,3 @@ shortBlockId fn blockid@(BlockId uq) = Just (DestImm (ImmCLbl lbl)) -> lbl _other -> panic "shortBlockId" - - -regDotColor :: Reg -> SDoc -regDotColor reg - = case regClass reg of - RcInteger -> text "blue" - RcFloat -> text "red" - RcDouble -> text "green"