[commit: ghc] master: nativeGen: detabify/dewhitespace RegClass (e193380)
git at git.haskell.org
git at git.haskell.org
Sun Jul 20 21:57:16 UTC 2014
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/e193380c49a2a5a25efcadbf4afb7bfb48c7034c/ghc
>---------------------------------------------------------------
commit e193380c49a2a5a25efcadbf4afb7bfb48c7034c
Author: Austin Seipp <austin at well-typed.com>
Date: Fri Jul 18 22:25:01 2014 -0500
nativeGen: detabify/dewhitespace RegClass
Signed-off-by: Austin Seipp <austin at well-typed.com>
>---------------------------------------------------------------
e193380c49a2a5a25efcadbf4afb7bfb48c7034c
compiler/nativeGen/RegClass.hs | 42 +++++++++++++++++-------------------------
1 file changed, 17 insertions(+), 25 deletions(-)
diff --git a/compiler/nativeGen/RegClass.hs b/compiler/nativeGen/RegClass.hs
index cac4e64..0c79317 100644
--- a/compiler/nativeGen/RegClass.hs
+++ b/compiler/nativeGen/RegClass.hs
@@ -1,41 +1,33 @@
-{-# OPTIONS_GHC -fno-warn-tabs #-}
--- The above warning supression flag is a temporary kludge.
--- While working on this module you are encouraged to remove it and
--- detab the module (please do the detabbing in a separate patch). See
--- http://ghc.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
--- for details
-
-
-- | An architecture independent description of a register's class.
module RegClass
- ( RegClass (..) )
+ ( RegClass (..) )
where
-import Outputable
-import Unique
+import Outputable
+import Unique
-- | The class of a register.
--- Used in the register allocator.
--- We treat all registers in a class as being interchangable.
+-- Used in the register allocator.
+-- We treat all registers in a class as being interchangable.
--
data RegClass
- = RcInteger
- | RcFloat
- | RcDouble
- | RcDoubleSSE -- x86 only: the SSE regs are a separate class
- deriving Eq
+ = RcInteger
+ | RcFloat
+ | RcDouble
+ | RcDoubleSSE -- x86 only: the SSE regs are a separate class
+ deriving Eq
instance Uniquable RegClass where
- getUnique RcInteger = mkRegClassUnique 0
- getUnique RcFloat = mkRegClassUnique 1
- getUnique RcDouble = mkRegClassUnique 2
+ getUnique RcInteger = mkRegClassUnique 0
+ getUnique RcFloat = mkRegClassUnique 1
+ getUnique RcDouble = mkRegClassUnique 2
getUnique RcDoubleSSE = mkRegClassUnique 3
instance Outputable RegClass where
- ppr RcInteger = Outputable.text "I"
- ppr RcFloat = Outputable.text "F"
- ppr RcDouble = Outputable.text "D"
- ppr RcDoubleSSE = Outputable.text "S"
+ ppr RcInteger = Outputable.text "I"
+ ppr RcFloat = Outputable.text "F"
+ ppr RcDouble = Outputable.text "D"
+ ppr RcDoubleSSE = Outputable.text "S"
More information about the ghc-commits
mailing list