Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
obsidiansystems
GHC
Commits
960f4e12
Commit
960f4e12
authored
Jul 18, 2014
by
Austin Seipp
Browse files
nativeGen: detabify/dewhitespace X86/RegInfo
Signed-off-by:
Austin Seipp
<
austin@well-typed.com
>
parent
a8818138
Changes
1
Hide whitespace changes
Inline
Side-by-side
compiler/nativeGen/X86/RegInfo.hs
View file @
960f4e12
{-# LANGUAGE CPP #-}
{-# 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
module
X86.RegInfo
(
mkVirtualReg
,
regDotColor
mkVirtualReg
,
regDotColor
)
where
...
...
@@ -30,9 +23,9 @@ import X86.Regs
mkVirtualReg
::
Unique
->
Size
->
VirtualReg
mkVirtualReg
u
size
=
case
size
of
FF32
->
VirtualRegSSE
u
FF64
->
VirtualRegSSE
u
FF80
->
VirtualRegD
u
FF32
->
VirtualRegSSE
u
FF64
->
VirtualRegSSE
u
FF80
->
VirtualRegD
u
_other
->
VirtualRegI
u
regDotColor
::
Platform
->
RealReg
->
SDoc
...
...
@@ -65,11 +58,10 @@ normalRegColors platform
fpRegColors
::
[(
Reg
,
String
)]
fpRegColors
=
[
(
fake0
,
"#ff00ff"
)
,
(
fake1
,
"#ff00aa"
)
,
(
fake2
,
"#aa00ff"
)
,
(
fake3
,
"#aa00aa"
)
,
(
fake4
,
"#ff0055"
)
,
(
fake5
,
"#5500ff"
)
]
++
zip
(
map
regSingle
[
24
..
39
])
(
repeat
"red"
)
,
(
fake1
,
"#ff00aa"
)
,
(
fake2
,
"#aa00ff"
)
,
(
fake3
,
"#aa00aa"
)
,
(
fake4
,
"#ff0055"
)
,
(
fake5
,
"#5500ff"
)
]
++
zip
(
map
regSingle
[
24
..
39
])
(
repeat
"red"
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment