Minor fixes

Removed some dead code
Added newlines
This commit is contained in:
anabra 2019-05-30 02:15:59 +02:00
parent cc4f2716ff
commit 03c4c4c58a
4 changed files with 2 additions and 22 deletions

View File

@ -140,17 +140,8 @@ printGrinWithOpt :: Parser PipelineStep
printGrinWithOpt = flip PrintGrin id <$> option (maybeReader maybeRenderingOpt)
( long "print-grin"
<> help "Print the actual grin code with a given rendering option [simple | with-externals]"
-- <> showDefaultWith (camelToDashed . show)
-- <> value Simple
<> metavar "OPT" )
camelToDashed :: String -> String
camelToDashed "" = ""
camelToDashed (c:cs) = toLower c : go cs where
go "" = ""
go (c:cs) | isUpper c = '-' : toLower c : go cs
| otherwise = c : go cs
options :: IO Options
options = execParser $ info
(pipelineArgs <**> helper)

View File

@ -193,4 +193,4 @@ copyStructureWithLivenessInfo srcReg dstReg = IR.ConditionalMove
{ srcReg = srcReg
, predicate = isNotPointer
, dstReg = dstReg
}
}

View File

@ -1 +1 @@
experimental/
experimental/

View File

@ -1,11 +0,0 @@
Put tests into separate files:
Why?:
- do not need to recompile each time a test case is modified
- data is seprated from functionality
- a piece of test code can be reused
- for other tests
- for playing with it manually (this can be really useful)
How?:
- a well structured testing framework is required
- some prototypes can be find on Anabra/grin:dde-old