Commits on Source (2)
-
John Ericson authored
- 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. - Harmonize the internal (big sum type) names of the native vs fixed-sized number primops a bit. (Mainly by renaming the former.)
58a37f8b
Showing
- compiler/GHC/Builtin/primops.txt.pp 23 additions, 23 deletionscompiler/GHC/Builtin/primops.txt.pp
- compiler/GHC/ByteCode/Asm.hs 7 additions, 1 deletioncompiler/GHC/ByteCode/Asm.hs
- compiler/GHC/Core/Opt/ConstantFold.hs 43 additions, 65 deletionscompiler/GHC/Core/Opt/ConstantFold.hs
- compiler/GHC/CoreToByteCode.hs 7 additions, 1 deletioncompiler/GHC/CoreToByteCode.hs
- compiler/GHC/HsToCore/Match/Literal.hs 4 additions, 4 deletionscompiler/GHC/HsToCore/Match/Literal.hs
- compiler/GHC/StgToCmm/Prim.hs 21 additions, 21 deletionscompiler/GHC/StgToCmm/Prim.hs
- compiler/GHC/Tc/Deriv/Generate.hs 15 additions, 14 deletionscompiler/GHC/Tc/Deriv/Generate.hs
- compiler/GHC/Types/Literal.hs 152 additions, 72 deletionscompiler/GHC/Types/Literal.hs
- compiler/GHC/Utils/Outputable.hs 39 additions, 9 deletionscompiler/GHC/Utils/Outputable.hs
- testsuite/driver/testlib.py 1 addition, 1 deletiontestsuite/driver/testlib.py
- testsuite/tests/cmm/opt/T18141.hs 2 additions, 2 deletionstestsuite/tests/cmm/opt/T18141.hs
- testsuite/tests/codeGen/should_compile/T18614.hs 1 addition, 1 deletiontestsuite/tests/codeGen/should_compile/T18614.hs
- testsuite/tests/ffi/should_run/PrimFFIInt16.hs 11 additions, 11 deletionstestsuite/tests/ffi/should_run/PrimFFIInt16.hs
- testsuite/tests/ffi/should_run/PrimFFIInt8.hs 11 additions, 11 deletionstestsuite/tests/ffi/should_run/PrimFFIInt8.hs
- testsuite/tests/ffi/should_run/PrimFFIWord16.hs 11 additions, 11 deletionstestsuite/tests/ffi/should_run/PrimFFIWord16.hs
- testsuite/tests/ffi/should_run/PrimFFIWord8.hs 11 additions, 11 deletionstestsuite/tests/ffi/should_run/PrimFFIWord8.hs
- testsuite/tests/primops/should_run/ArithInt16.hs 10 additions, 10 deletionstestsuite/tests/primops/should_run/ArithInt16.hs
- testsuite/tests/primops/should_run/ArithInt8.hs 10 additions, 10 deletionstestsuite/tests/primops/should_run/ArithInt8.hs
- testsuite/tests/primops/should_run/ArithWord16.hs 10 additions, 10 deletionstestsuite/tests/primops/should_run/ArithWord16.hs
- testsuite/tests/primops/should_run/ArithWord8.hs 10 additions, 10 deletionstestsuite/tests/primops/should_run/ArithWord8.hs