summaryrefslogtreecommitdiff
path: root/compiler/nativeGen/SPARC/Regs.hs
diff options
context:
space:
mode:
authormarkus <markus.grosser@tum.de>2015-07-07 16:59:40 +0200
committerBen Gamari <ben@smart-cactus.org>2015-07-07 16:59:40 +0200
commit31580e2c81543a58c0d352154c6109d843978cdf (patch)
tree70704c6c72747ccc1e965cac1bc2f0cd3dba9e40 /compiler/nativeGen/SPARC/Regs.hs
parentf753cf11eb9e310b54b08d9a1ea1d11540d8eb69 (diff)
downloadhaskell-31580e2c81543a58c0d352154c6109d843978cdf.tar.gz
Fix todo in compiler/nativeGen: Rename Size to Format
This commit renames the Size module in the native code generator to Format, as proposed by a todo, as well as adjusting parameter names in other modules that use it. Test Plan: validate Reviewers: austin, simonmar, bgamari Reviewed By: simonmar, bgamari Subscribers: bgamari, simonmar, thomie Projects: #ghc Differential Revision: https://phabricator.haskell.org/D865
Diffstat (limited to 'compiler/nativeGen/SPARC/Regs.hs')
-rw-r--r--compiler/nativeGen/SPARC/Regs.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/compiler/nativeGen/SPARC/Regs.hs b/compiler/nativeGen/SPARC/Regs.hs
index 394389c4bf..d02747da4f 100644
--- a/compiler/nativeGen/SPARC/Regs.hs
+++ b/compiler/nativeGen/SPARC/Regs.hs
@@ -35,7 +35,7 @@ where
import CodeGen.Platform.SPARC
import Reg
import RegClass
-import Size
+import Format
import Unique
import Outputable
@@ -245,14 +245,14 @@ callClobberedRegs
--- | Make a virtual reg with this size.
-mkVirtualReg :: Unique -> Size -> VirtualReg
-mkVirtualReg u size
- | not (isFloatSize size)
+-- | Make a virtual reg with this format.
+mkVirtualReg :: Unique -> Format -> VirtualReg
+mkVirtualReg u format
+ | not (isFloatFormat format)
= VirtualRegI u
| otherwise
- = case size of
+ = case format of
FF32 -> VirtualRegF u
FF64 -> VirtualRegD u
_ -> panic "mkVReg"