[commit: ghc] master: Whitespace only in CmmNode (47556a8)
Ian Lynagh
igloo at earth.li
Sun Apr 14 23:59:40 CEST 2013
Repository : http://darcs.haskell.org/ghc.git/
On branch : master
https://github.com/ghc/ghc/commit/47556a8ec9c34829795be646005265a1a7529739
>---------------------------------------------------------------
commit 47556a8ec9c34829795be646005265a1a7529739
Author: Ian Lynagh <ian at well-typed.com>
Date: Sat Apr 13 19:56:01 2013 +0100
Whitespace only in CmmNode
>---------------------------------------------------------------
compiler/cmm/CmmNode.hs | 29 +++++++++++------------------
1 file changed, 11 insertions(+), 18 deletions(-)
diff --git a/compiler/cmm/CmmNode.hs b/compiler/cmm/CmmNode.hs
index 61c0b80..afd6301 100644
--- a/compiler/cmm/CmmNode.hs
+++ b/compiler/cmm/CmmNode.hs
@@ -4,13 +4,6 @@
{-# LANGUAGE StandaloneDeriving #-}
{-# LANGUAGE UndecidableInstances #-}
-{-# OPTIONS -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://hackage.haskell.org/trac/ghc/wiki/Commentary/CodingStyle#TabsvsSpaces
--- for details
-
module CmmNode (
CmmNode(..), CmmFormal, CmmActual,
UpdFrameOffset, Convention(..),
@@ -50,13 +43,13 @@ data CmmNode e x where
-- Assign to memory location. Size is
-- given by cmmExprType of the rhs.
- CmmUnsafeForeignCall :: -- An unsafe foreign call;
- -- see Note [Foreign calls]
- -- Like a "fat machine instruction"; can occur
- -- in the middle of a block
- ForeignTarget -> -- call target
- [CmmFormal] -> -- zero or more results
- [CmmActual] -> -- zero or more arguments
+ CmmUnsafeForeignCall :: -- An unsafe foreign call;
+ -- see Note [Foreign calls]
+ -- Like a "fat machine instruction"; can occur
+ -- in the middle of a block
+ ForeignTarget -> -- call target
+ [CmmFormal] -> -- zero or more results
+ [CmmActual] -> -- zero or more arguments
CmmNode O O
-- Semantics: clobbers any GlobalRegs for which callerSaves r == True
-- See Note [foreign calls clobber GlobalRegs]
@@ -124,7 +117,7 @@ data CmmNode e x where
} -> CmmNode O C
CmmForeignCall :: { -- A safe foreign call; see Note [Foreign calls]
- -- Always the last node of a block
+ -- Always the last node of a block
tgt :: ForeignTarget, -- call target and convention
res :: [CmmFormal], -- zero or more results
args :: [CmmActual], -- zero or more arguments; see Note [Register parameter passing]
@@ -146,11 +139,11 @@ conservatively assumed otherwise.) However, see [Register parameter passing].
Safe ones are trickier. A safe foreign call
r = f(x)
ultimately expands to
- push "return address" -- Never used to return to;
- -- just points an info table
+ push "return address" -- Never used to return to;
+ -- just points an info table
save registers into TSO
call suspendThread
- r = f(x) -- Make the call
+ r = f(x) -- Make the call
call resumeThread
restore registers
pop "return address"
More information about the ghc-commits
mailing list