[Git][ghc/ghc][wip/primop-naming-consistency] 2 commits: Cleanup some primop constructor names
John Ericson
gitlab at gitlab.haskell.org
Wed Nov 25 23:35:03 UTC 2020
John Ericson pushed to branch wip/primop-naming-consistency at Glasgow Haskell Compiler / GHC
Commits:
3d9b490f by John Ericson at 2020-11-25T23:07:32+00:00
Cleanup some primop constructor names
Harmonize the internal (big sum type) names of the native vs fixed-sized
number primops a bit. (Mainly by renaming the former.)
No user-facing names are changed.
- - - - -
f0a3896b by John Ericson at 2020-11-25T23:09:45+00:00
Cleanup number primop conversion names
Don't use "extend" or "narrow" in some of the user-facing primops
names for conversions.
- Names like `narrowInt32#` are misleading when `Int` is 32-bits.
- Names like `extendInt64#` are flat-out wrong when `Int is
32-bits.
- `narrow{Int,Word}<N>#` however map a type to itself, and so don't
suffer from this problem. They are left as-is.
- - - - -
30 changed files:
- compiler/GHC/Builtin/primops.txt.pp
- compiler/GHC/CmmToAsm/Ppr.hs
- compiler/GHC/Core/Opt/ConstantFold.hs
- compiler/GHC/StgToCmm/Prim.hs
- compiler/GHC/Tc/Deriv/Generate.hs
- libraries/base/GHC/IO/Encoding/CodePage.hs
- libraries/base/GHC/IO/Encoding/UTF16.hs
- libraries/base/GHC/IO/Encoding/UTF32.hs
- libraries/base/GHC/IO/Encoding/UTF8.hs
- libraries/base/GHC/Int.hs
- libraries/base/GHC/Storable.hs
- libraries/base/GHC/Word.hs
- libraries/ghci/GHCi/BreakArray.hs
- testsuite/tests/array/should_run/arr020.hs
- testsuite/tests/cmm/opt/T18141.hs
- testsuite/tests/codeGen/should_compile/T18614.hs
- testsuite/tests/codeGen/should_run/cgrun070.hs
- testsuite/tests/codeGen/should_run/cgrun072.hs
- testsuite/tests/codeGen/should_run/cgrun075.hs
- testsuite/tests/codeGen/should_run/cgrun076.hs
- testsuite/tests/codeGen/should_run/compareByteArrays.hs
- testsuite/tests/ffi/should_run/PrimFFIInt16.hs
- testsuite/tests/ffi/should_run/PrimFFIInt8.hs
- testsuite/tests/ffi/should_run/PrimFFIWord16.hs
- testsuite/tests/ffi/should_run/PrimFFIWord8.hs
- testsuite/tests/ffi/should_run/T16650a.hs
- testsuite/tests/ffi/should_run/T16650b.hs
- testsuite/tests/ffi/should_run/UnliftedNewtypesByteArrayOffset.hs
- testsuite/tests/lib/integer/integerImportExport.hs
- testsuite/tests/numeric/should_compile/T16402.stderr-ws-32
The diff was not included because it is too large.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/cd935e98c4297aa1fd14b057df381c28dcac90e2...f0a3896b9a845bf00283eb8c961bdb0c96c80f86
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/compare/cd935e98c4297aa1fd14b057df381c28dcac90e2...f0a3896b9a845bf00283eb8c961bdb0c96c80f86
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201125/5ec9127d/attachment-0001.html>
More information about the ghc-commits
mailing list