diff options
author | Roman Leshchinskiy <rl@cse.unsw.edu.au> | 2010-12-18 12:53:50 +0000 |
---|---|---|
committer | Roman Leshchinskiy <rl@cse.unsw.edu.au> | 2010-12-18 12:53:50 +0000 |
commit | 8243ff275753aa2c679f7deaa36f57a765bbbc0e (patch) | |
tree | ca09ca274c7598540412b587d27d2fb695328ffd /compiler/vectorise | |
parent | 4837a66d2d6a8a6db09067a3cd8c9038a9027a2d (diff) | |
download | haskell-8243ff275753aa2c679f7deaa36f57a765bbbc0e.tar.gz |
vectoriser: delete dead code
Diffstat (limited to 'compiler/vectorise')
-rw-r--r-- | compiler/vectorise/Vectorise/Utils/PADict.hs | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/compiler/vectorise/Vectorise/Utils/PADict.hs b/compiler/vectorise/Vectorise/Utils/PADict.hs index d9a00b9a8d..ea8e924fc3 100644 --- a/compiler/vectorise/Vectorise/Utils/PADict.hs +++ b/compiler/vectorise/Vectorise/Utils/PADict.hs @@ -1,9 +1,7 @@ module Vectorise.Utils.PADict ( - mkPADictType, paDictArgType, paDictOfType, - paDFunType, paMethod ) where @@ -23,10 +21,6 @@ import FastString import Control.Monad -mkPADictType :: Type -> VM Type -mkPADictType ty = mkBuiltinTyConApp paTyCon [ty] - - paDictArgType :: TyVar -> VM (Maybe Type) paDictArgType tv = go (TyVarTy tv) (tyVarKind tv) where @@ -43,7 +37,7 @@ paDictArgType tv = go (TyVarTy tv) (tyVarKind tv) go ty k | isLiftedTypeKind k - = liftM Just (mkPADictType ty) + = liftM Just (mkBuiltinTyConApp paTyCon [ty]) go _ _ = return Nothing @@ -80,19 +74,6 @@ paDictOfType ty failure = cantVectorise "Can't construct PA dictionary for type" (ppr ty) - - -paDFunType :: TyCon -> VM Type -paDFunType tc - = do - margs <- mapM paDictArgType tvs - res <- mkPADictType (mkTyConApp tc arg_tys) - return . mkForAllTys tvs - $ mkFunTys [arg | Just arg <- margs] res - where - tvs = tyConTyVars tc - arg_tys = mkTyVarTys tvs - paMethod :: (Builtins -> Var) -> String -> Type -> VM CoreExpr paMethod _ name ty | Just tycon <- splitPrimTyCon ty |