summaryrefslogtreecommitdiff
path: root/compiler/codeGen
diff options
context:
space:
mode:
authorÖmer Sinan Ağacan <omeragacan@gmail.com>2016-01-27 13:15:15 +0100
committerBen Gamari <ben@smart-cactus.org>2016-01-27 13:56:48 +0100
commit4faa1a63d0496fd511d2d139622dbf7ef2ce4655 (patch)
treea0877a6063443197c5425c506ed14354d9fe8060 /compiler/codeGen
parent45c6fbc5284f83e1253ff9f3b49fe54a76c20ba7 (diff)
downloadhaskell-4faa1a63d0496fd511d2d139622dbf7ef2ce4655.tar.gz
s/unLifted/unlifted for consistency
This was causing trouble as we had to remember when to use "unLifted" and when to use "unlifted". "unlifted" is used instead of "unLifted" as it's a single word. Reviewers: austin, hvr, goldfire, bgamari Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1852
Diffstat (limited to 'compiler/codeGen')
-rw-r--r--compiler/codeGen/StgCmmClosure.hs10
-rw-r--r--compiler/codeGen/StgCmmExpr.hs2
-rw-r--r--compiler/codeGen/StgCmmTicky.hs2
3 files changed, 7 insertions, 7 deletions
diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs
index 97224c6660..dca026dccd 100644
--- a/compiler/codeGen/StgCmmClosure.hs
+++ b/compiler/codeGen/StgCmmClosure.hs
@@ -173,7 +173,7 @@ data LambdaFormInfo
-- because then we know the entry code will do
-- For a function, the entry code is the fast entry point
- | LFUnLifted -- A value of unboxed type;
+ | LFUnlifted -- A value of unboxed type;
-- always a value, needs evaluation
| LFLetNoEscape -- See LetNoEscape module for precise description
@@ -211,7 +211,7 @@ data StandardFormInfo
mkLFArgument :: Id -> LambdaFormInfo
mkLFArgument id
- | isUnLiftedType ty = LFUnLifted
+ | isUnliftedType ty = LFUnlifted
| might_be_a_function ty = LFUnknown True
| otherwise = LFUnknown False
where
@@ -234,7 +234,7 @@ mkLFReEntrant top fvs args arg_descr
-------------
mkLFThunk :: Type -> TopLevelFlag -> [Id] -> UpdateFlag -> LambdaFormInfo
mkLFThunk thunk_ty top fvs upd_flag
- = ASSERT( not (isUpdatable upd_flag) || not (isUnLiftedType thunk_ty) )
+ = ASSERT( not (isUpdatable upd_flag) || not (isUnliftedType thunk_ty) )
LFThunk top (null fvs)
(isUpdatable upd_flag)
NonStandardThunk
@@ -421,7 +421,7 @@ nodeMustPointToIt _ (LFCon _) = True
-- 27/11/92.
nodeMustPointToIt _ (LFUnknown _) = True
-nodeMustPointToIt _ LFUnLifted = False
+nodeMustPointToIt _ LFUnlifted = False
nodeMustPointToIt _ LFLetNoEscape = False
{- Note [GC recovery]
@@ -525,7 +525,7 @@ getCallMethod dflags name id (LFReEntrant _ arity _ _) n_args _v_args _cg_loc
| n_args < arity = SlowCall -- Not enough args
| otherwise = DirectEntry (enterIdLabel dflags name (idCafInfo id)) arity
-getCallMethod _ _name _ LFUnLifted n_args _v_args _cg_loc _self_loop_info
+getCallMethod _ _name _ LFUnlifted n_args _v_args _cg_loc _self_loop_info
= ASSERT( n_args == 0 ) ReturnIt
getCallMethod _ _name _ (LFCon _) n_args _v_args _cg_loc _self_loop_info
diff --git a/compiler/codeGen/StgCmmExpr.hs b/compiler/codeGen/StgCmmExpr.hs
index 8e74c22fba..923450e6f3 100644
--- a/compiler/codeGen/StgCmmExpr.hs
+++ b/compiler/codeGen/StgCmmExpr.hs
@@ -395,7 +395,7 @@ MutVar#. The types are compatible though, so we can just generate an
assignment.
-}
cgCase (StgApp v []) bndr alt_type@(PrimAlt _) alts
- | isUnLiftedType (idType v) -- Note [Dodgy unsafeCoerce 1]
+ | isUnliftedType (idType v) -- Note [Dodgy unsafeCoerce 1]
|| reps_compatible
= -- assignment suffices for unlifted types
do { dflags <- getDynFlags
diff --git a/compiler/codeGen/StgCmmTicky.hs b/compiler/codeGen/StgCmmTicky.hs
index 03a936fad0..95dfa99389 100644
--- a/compiler/codeGen/StgCmmTicky.hs
+++ b/compiler/codeGen/StgCmmTicky.hs
@@ -638,7 +638,7 @@ showTypeCategory ty
| otherwise = case tcSplitTyConApp_maybe ty of
Nothing -> '.'
Just (tycon, _) ->
- (if isUnLiftedTyCon tycon then Data.Char.toLower else \x -> x) $
+ (if isUnliftedTyCon tycon then Data.Char.toLower else \x -> x) $
let anyOf us = getUnique tycon `elem` us in
case () of
_ | anyOf [funTyConKey] -> '>'