[project @ 2000-01-04 17:40:46 by simonpj]
This commit arranges that literal strings will fuse nicely, by expressing them as an application of build. * NoRepStr is now completely redundant, though I havn't removed it yet. * The unpackStr stuff moves from PrelPack to PrelBase. * There's a new form of Rule, a BuiltinRule, for rules that can't be expressed in Haskell. The string-fusion rule is one such. It's defined in prelude/PrelRules.lhs. * PrelRules.lhs also contains a great deal of code that implements constant folding. In due course this will replace ConFold.lhs, but for the moment it simply duplicates it.
Showing
- ghc/compiler/DEPEND-NOTES 0 additions, 72 deletionsghc/compiler/DEPEND-NOTES
- ghc/compiler/basicTypes/Id.lhs 5 additions, 1 deletionghc/compiler/basicTypes/Id.lhs
- ghc/compiler/basicTypes/MkId.lhs 18 additions, 2 deletionsghc/compiler/basicTypes/MkId.lhs
- ghc/compiler/coreSyn/CoreFVs.lhs 2 additions, 0 deletionsghc/compiler/coreSyn/CoreFVs.lhs
- ghc/compiler/coreSyn/CoreSyn.lhs 33 additions, 8 deletionsghc/compiler/coreSyn/CoreSyn.lhs
- ghc/compiler/coreSyn/CoreTidy.lhs 1 addition, 0 deletionsghc/compiler/coreSyn/CoreTidy.lhs
- ghc/compiler/coreSyn/CoreUnfold.lhs 26 additions, 12 deletionsghc/compiler/coreSyn/CoreUnfold.lhs
- ghc/compiler/coreSyn/CoreUtils.lhs 27 additions, 8 deletionsghc/compiler/coreSyn/CoreUtils.lhs
- ghc/compiler/coreSyn/PprCore.lhs 4 additions, 1 deletionghc/compiler/coreSyn/PprCore.lhs
- ghc/compiler/coreSyn/Subst.lhs 1 addition, 0 deletionsghc/compiler/coreSyn/Subst.lhs
- ghc/compiler/deSugar/DsExpr.lhs 1 addition, 22 deletionsghc/compiler/deSugar/DsExpr.lhs
- ghc/compiler/main/MkIface.lhs 2 additions, 2 deletionsghc/compiler/main/MkIface.lhs
- ghc/compiler/prelude/PrelRules.lhs 395 additions, 0 deletionsghc/compiler/prelude/PrelRules.lhs
- ghc/compiler/prelude/PrimOp.lhs 11 additions, 2 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/compiler/prelude/ThinAir.lhs 5 additions, 4 deletionsghc/compiler/prelude/ThinAir.lhs
- ghc/compiler/simplCore/SimplCore.lhs 17 additions, 3 deletionsghc/compiler/simplCore/SimplCore.lhs
- ghc/compiler/simplCore/Simplify.lhs 66 additions, 60 deletionsghc/compiler/simplCore/Simplify.lhs
- ghc/compiler/specialise/Rules.lhs 31 additions, 23 deletionsghc/compiler/specialise/Rules.lhs
- ghc/compiler/typecheck/TcIfaceSig.lhs 48 additions, 44 deletionsghc/compiler/typecheck/TcIfaceSig.lhs
- ghc/lib/std/PrelBase.lhs 77 additions, 0 deletionsghc/lib/std/PrelBase.lhs
Loading
Please register or sign in to comment