[project @ 1999-04-23 13:53:28 by simonm]
Support for dataToTag# :: a -> Int# (if a is a data type) and (partial) support for tagToEnum# :: Int# -> a (if a is an enumerated type) The con2tag functions generated by derived Eq,Ord and Enum instances are now replaced by dataToTag# for data types with a large number of constructors.
Showing
- ghc/compiler/codeGen/CgCase.lhs 41 additions, 29 deletionsghc/compiler/codeGen/CgCase.lhs
- ghc/compiler/codeGen/CgConTbls.lhs 1 addition, 3 deletionsghc/compiler/codeGen/CgConTbls.lhs
- ghc/compiler/codeGen/CgExpr.lhs 22 additions, 5 deletionsghc/compiler/codeGen/CgExpr.lhs
- ghc/compiler/prelude/PrelInfo.lhs 2 additions, 1 deletionghc/compiler/prelude/PrelInfo.lhs
- ghc/compiler/prelude/PrimOp.lhs 46 additions, 4 deletionsghc/compiler/prelude/PrimOp.lhs
- ghc/compiler/simplCore/ConFold.lhs 16 additions, 0 deletionsghc/compiler/simplCore/ConFold.lhs
- ghc/compiler/stgSyn/CoreToStg.lhs 33 additions, 11 deletionsghc/compiler/stgSyn/CoreToStg.lhs
- ghc/compiler/typecheck/TcGenDeriv.lhs 14 additions, 3 deletionsghc/compiler/typecheck/TcGenDeriv.lhs
Please register or sign in to comment