[commit: ghc] master: change how Integer's are handled in Core (fdac48f)
Ian Lynagh
igloo at earth.li
Tue Sep 13 22:22:06 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/fdac48f3a955997f5f9caddf5e38105cd636a010
>---------------------------------------------------------------
commit fdac48f3a955997f5f9caddf5e38105cd636a010
Author: Ian Lynagh <igloo at earth.li>
Date: Mon Sep 12 23:24:53 2011 +0100
change how Integer's are handled in Core
We now treat them as literals until CorePrep, when we finally
convert them into the real Core representation. This makes it a lot
simpler to implement built-in rules on them.
compiler/basicTypes/Literal.lhs | 27 +++++++++--
compiler/basicTypes/MkId.lhs | 49 ++++++++++++++++++++-
compiler/codeGen/CgUtils.hs | 3 +
compiler/coreSyn/CoreLint.lhs | 15 +++++--
compiler/coreSyn/CorePrep.lhs | 43 +++++++++++++++++-
compiler/coreSyn/CoreUtils.lhs | 1 +
compiler/coreSyn/MkCore.lhs | 34 +--------------
compiler/ghc.mk | 10 ++++
compiler/ghci/ByteCodeGen.lhs | 4 ++
compiler/prelude/PrelNames.lhs | 29 ++++++++++---
compiler/prelude/PrelRules.lhs | 54 +++++-----------------
compiler/prelude/TysWiredIn.lhs | 91 ++++++++++++++++++++++++++++++++++++++
compiler/stgSyn/CoreToStg.lhs | 4 ++
compiler/typecheck/Inst.lhs | 1 +
14 files changed, 273 insertions(+), 92 deletions(-)
Diff suppressed because of size. To see it, use:
git show fdac48f3a955997f5f9caddf5e38105cd636a010
More information about the Cvs-ghc
mailing list