diff options
author | Thomas Miedema <thomasmiedema@gmail.com> | 2015-08-21 10:44:54 +0200 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-08-21 15:44:21 +0200 |
commit | 2f29ebbb6f8c914f2bba624f3edcc259274df8af (patch) | |
tree | c523018ed23dd32e45697fe177d6df5ad4b59b50 /compiler/main/GhcPlugins.hs | |
parent | 3452473b4bb180ba327520067b8c6f2a8d6c4f4b (diff) | |
download | haskell-2f29ebbb6f8c914f2bba624f3edcc259274df8af.tar.gz |
Refactor: delete most of the module FastTypes
This reverses some of the work done in #1405, and goes back to the
assumption that the bootstrap compiler understands GHC-haskell.
In particular:
* use MagicHash instead of _ILIT and _CLIT
* pattern matching on I# if possible, instead of using iUnbox
unnecessarily
* use Int#/Char#/Addr# instead of the following type synonyms:
- type FastInt = Int#
- type FastChar = Char#
- type FastPtr a = Addr#
* inline the following functions:
- iBox = I#
- cBox = C#
- fastChr = chr#
- fastOrd = ord#
- eqFastChar = eqChar#
- shiftLFastInt = uncheckedIShiftL#
- shiftR_FastInt = uncheckedIShiftRL#
- shiftRLFastInt = uncheckedIShiftRL#
* delete the following unused functions:
- minFastInt
- maxFastInt
- uncheckedIShiftRA#
- castFastPtr
- panicDocFastInt and pprPanicFastInt
* rename panicFastInt back to panic#
These functions remain, since they actually do something:
* iUnbox
* bitAndFastInt
* bitOrFastInt
Test Plan: validate
Reviewers: austin, bgamari
Subscribers: rwbarton
Differential Revision: https://phabricator.haskell.org/D1141
GHC Trac Issues: #1405
Diffstat (limited to 'compiler/main/GhcPlugins.hs')
-rw-r--r-- | compiler/main/GhcPlugins.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/main/GhcPlugins.hs b/compiler/main/GhcPlugins.hs index 2b7746c6ce..2326ebdf6c 100644 --- a/compiler/main/GhcPlugins.hs +++ b/compiler/main/GhcPlugins.hs @@ -19,7 +19,7 @@ module GhcPlugins( module VarSet, module VarEnv, module NameSet, module NameEnv, module UniqSet, module UniqFM, module FiniteMap, module Util, module Serialized, module SrcLoc, module Outputable, - module UniqSupply, module Unique, module FastString, module FastTypes + module UniqSupply, module Unique, module FastString ) where -- Plugin stuff itself @@ -81,4 +81,3 @@ import Outputable import UniqSupply import Unique ( Unique, Uniquable(..) ) import FastString -import FastTypes |