diff options
| author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-03-19 19:11:09 +0100 |
|---|---|---|
| committer | Thomas Miedema <thomasmiedema@gmail.com> | 2015-03-19 19:11:30 +0100 |
| commit | 9d819804bc0ccf1fed384a4145014c257e85e848 (patch) | |
| tree | 719510836cb9210b7c6630388320081e3fc75211 /compiler | |
| parent | c4aa959bd771f7e69c7f0da1e857599f513d5331 (diff) | |
| download | haskell-9d819804bc0ccf1fed384a4145014c257e85e848.tar.gz | |
Remove comments and flag for GranSim
The GranSim code was removed in dd56e9ab and 297b05a9 in 2009, and perhaps
other commits I couldn't find.
Reviewed By: austin
Differential Revision: https://phabricator.haskell.org/D737
Diffstat (limited to 'compiler')
| -rw-r--r-- | compiler/cmm/CLabel.hs | 9 | ||||
| -rw-r--r-- | compiler/cmm/cmm-notes | 1 | ||||
| -rw-r--r-- | compiler/codeGen/StgCmmBind.hs | 5 | ||||
| -rw-r--r-- | compiler/main/DynFlags.hs | 12 |
4 files changed, 1 insertions, 26 deletions
diff --git a/compiler/cmm/CLabel.hs b/compiler/cmm/CLabel.hs index ebf902f149..b56cbed98a 100644 --- a/compiler/cmm/CLabel.hs +++ b/compiler/cmm/CLabel.hs @@ -903,15 +903,6 @@ labelDynamic dflags this_pkg this_mod lbl = _ -> False where os = platformOS (targetPlatform dflags) -{- -OLD?: These GRAN functions are needed for spitting out GRAN_FETCH() at the -right places. It is used to detect when the abstractC statement of an -CCodeBlock actually contains the code for a slow entry point. -- HWL - -We need at least @Eq@ for @CLabels@, because we want to avoid -duplicate declarations in generating C (see @labelSeenTE@ in -@PprAbsC@). --} ----------------------------------------------------------------------------- -- Printing out CLabels. diff --git a/compiler/cmm/cmm-notes b/compiler/cmm/cmm-notes index 99b2599a4c..2b7e0a40fb 100644 --- a/compiler/cmm/cmm-notes +++ b/compiler/cmm/cmm-notes @@ -109,7 +109,6 @@ StgCmmCon.hs StgCmmEnv.hs
StgCmmExpr.hs
StgCmmForeign.hs
-StgCmmGran.hs
StgCmmHeap.hs
StgCmmHpc.hs
StgCmmLayout.hs
diff --git a/compiler/codeGen/StgCmmBind.hs b/compiler/codeGen/StgCmmBind.hs index 123d385aa3..9cedfcdd62 100644 --- a/compiler/codeGen/StgCmmBind.hs +++ b/compiler/codeGen/StgCmmBind.hs @@ -451,10 +451,7 @@ closureCodeBody :: Bool -- whether this is a top-level binding * If there is *at least one* argument, then this closure is in normal form, so there is no need to set up an update frame. - - The Macros for GrAnSim are produced at the beginning of the - argSatisfactionCheck (by calling fetchAndReschedule). - There info if Node points to closure is available. -- HWL -} +-} closureCodeBody top_lvl bndr cl_info cc _args arity body fv_details | arity == 0 -- No args i.e. thunk diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 2c1a82c787..8e0499f249 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -404,7 +404,6 @@ data GeneralFlag | Opt_DeferTypeErrors | Opt_DeferTypedHoles | Opt_Parallel - | Opt_GranMacros | Opt_PIC | Opt_SccProfilingOn | Opt_Ticky @@ -1195,7 +1194,6 @@ data Way | WayProf | WayEventLog | WayPar - | WayGran | WayNDP | WayDyn deriving (Eq, Ord, Show) @@ -1233,7 +1231,6 @@ wayTag WayDyn = "dyn" wayTag WayProf = "p" wayTag WayEventLog = "l" wayTag WayPar = "mp" -wayTag WayGran = "mg" wayTag WayNDP = "ndp" wayRTSOnly :: Way -> Bool @@ -1244,7 +1241,6 @@ wayRTSOnly WayDyn = False wayRTSOnly WayProf = False wayRTSOnly WayEventLog = True wayRTSOnly WayPar = False -wayRTSOnly WayGran = False wayRTSOnly WayNDP = False wayDesc :: Way -> String @@ -1255,7 +1251,6 @@ wayDesc WayDyn = "Dynamic" wayDesc WayProf = "Profiling" wayDesc WayEventLog = "RTS Event Logging" wayDesc WayPar = "Parallel" -wayDesc WayGran = "GranSim" wayDesc WayNDP = "Nested data parallelism" -- Turn these flags on when enabling this way @@ -1274,7 +1269,6 @@ wayGeneralFlags _ WayDyn = [Opt_PIC] wayGeneralFlags _ WayProf = [Opt_SccProfilingOn] wayGeneralFlags _ WayEventLog = [] wayGeneralFlags _ WayPar = [Opt_Parallel] -wayGeneralFlags _ WayGran = [Opt_GranMacros] wayGeneralFlags _ WayNDP = [] -- Turn these flags off when enabling this way @@ -1290,7 +1284,6 @@ wayUnsetGeneralFlags _ WayDyn = [-- There's no point splitting objects wayUnsetGeneralFlags _ WayProf = [] wayUnsetGeneralFlags _ WayEventLog = [] wayUnsetGeneralFlags _ WayPar = [] -wayUnsetGeneralFlags _ WayGran = [] wayUnsetGeneralFlags _ WayNDP = [] wayExtras :: Platform -> Way -> DynFlags -> DynFlags @@ -1301,7 +1294,6 @@ wayExtras _ WayDyn dflags = dflags wayExtras _ WayProf dflags = dflags wayExtras _ WayEventLog dflags = dflags wayExtras _ WayPar dflags = exposePackage' "concurrent" dflags -wayExtras _ WayGran dflags = exposePackage' "concurrent" dflags wayExtras _ WayNDP dflags = setExtensionFlag' Opt_ParallelArrays $ setGeneralFlag' Opt_Vectorise dflags @@ -1316,7 +1308,6 @@ wayOptc _ WayDyn = [] wayOptc _ WayProf = ["-DPROFILING"] wayOptc _ WayEventLog = ["-DTRACING"] wayOptc _ WayPar = ["-DPAR", "-w"] -wayOptc _ WayGran = ["-DGRAN"] wayOptc _ WayNDP = [] wayOptl :: Platform -> Way -> [String] @@ -1338,7 +1329,6 @@ wayOptl _ WayEventLog = [] wayOptl _ WayPar = ["-L${PVM_ROOT}/lib/${PVM_ARCH}", "-lpvm3", "-lgpvm3"] -wayOptl _ WayGran = [] wayOptl _ WayNDP = [] wayOptP :: Platform -> Way -> [String] @@ -1349,7 +1339,6 @@ wayOptP _ WayDyn = [] wayOptP _ WayProf = ["-DPROFILING"] wayOptP _ WayEventLog = ["-DTRACING"] wayOptP _ WayPar = ["-D__PARALLEL_HASKELL__"] -wayOptP _ WayGran = ["-D__GRANSIM__"] wayOptP _ WayNDP = [] whenGeneratingDynamicToo :: MonadIO m => DynFlags -> m () -> m () @@ -2274,7 +2263,6 @@ dynamic_flags = [ , defGhcFlag "prof" (NoArg (addWay WayProf)) , defGhcFlag "eventlog" (NoArg (addWay WayEventLog)) , defGhcFlag "parallel" (NoArg (addWay WayPar)) - , defGhcFlag "gransim" (NoArg (addWay WayGran)) , defGhcFlag "smp" (NoArg (addWay WayThreaded >> deprecate "Use -threaded instead")) , defGhcFlag "debug" (NoArg (addWay WayDebug)) |
