[project @ 1999-04-26 16:06:27 by simonm]
authorsimonm <unknown>
Mon, 26 Apr 1999 16:06:37 +0000 (16:06 +0000)
committersimonm <unknown>
Mon, 26 Apr 1999 16:06:37 +0000 (16:06 +0000)
commitaae367819798b0883de61ea4d91ea2c47452884e
tree0c3d4a88ea258bc061e5a4b7f60c6ddf250a795e
parent0755a7d9a4ba807d3a5d47ac84224bd146882a08
[project @ 1999-04-26 16:06:27 by simonm]
- New Wired-in Id: getTag# :: a -> Int#
for a data type, returns the tag of the constructor.
for a function, returns a spurious number probably.
dataToTag# is the name of the underlying primitive which
pulls out the tag (its argument is assumed to be
evaluated).

- Generate constructor tables for enumerated types, so we
  can do tagToEnum#.

- Remove hacks in CoreToStg for dataToTag#.
ghc/compiler/absCSyn/AbsCSyn.lhs
ghc/compiler/absCSyn/AbsCUtils.lhs
ghc/compiler/absCSyn/PprAbsC.lhs
ghc/compiler/basicTypes/Unique.lhs
ghc/compiler/codeGen/CgConTbls.lhs
ghc/compiler/prelude/PrelInfo.lhs
ghc/compiler/prelude/PrelVals.lhs
ghc/compiler/simplCore/ConFold.lhs
ghc/compiler/simplCore/SimplCore.lhs
ghc/compiler/stgSyn/CoreToStg.lhs
ghc/compiler/typecheck/TcGenDeriv.lhs