Skip to content

Commit f751976

Browse files
committed
clean all warnings
1 parent a632561 commit f751976

File tree

18 files changed

+36
-34
lines changed

18 files changed

+36
-34
lines changed

gibbon-compiler/src/Gibbon/Compiler.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ import Gibbon.Passes.Simplifier (simplifyL1, lateInlineTriv, simpl
6666
-- import Gibbon.Passes.Sequentialize (sequentialize)
6767

6868
import Gibbon.Passes.DirectL3 (directL3)
69-
import Gibbon.Passes.InferLocations (inferLocs, copyOutOfOrderPacked, fixRANs, removeAliasesForCopyCalls)
69+
import Gibbon.Passes.InferLocations (inferLocs, fixRANs, removeAliasesForCopyCalls)
7070
-- This is the custom pass reference to issue #133 that moves regionsInwards
7171
import Gibbon.Passes.RegionsInwards (regionsInwards)
7272
-- import Gibbon.Passes.RepairProgram (repairProgram)
@@ -91,7 +91,6 @@ import Gibbon.Passes.Lower (lower)
9191
import Gibbon.Passes.RearrangeFree (rearrangeFree)
9292
import Gibbon.Passes.Codegen (codegenProg)
9393
import Gibbon.Passes.Fusion2 (fusion2)
94-
import Gibbon.Passes.CalculateBounds (inferRegSize)
9594
import Gibbon.Pretty
9695
import Gibbon.L1.GenSML
9796
-- Configuring and launching the compiler.

gibbon-compiler/src/Gibbon/L0/Typecheck.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ tcExp ddefs sbst venv fenv bound_tyvars is_main ex = (\(a,b,c) -> (a,b,c)) <$>
583583

584584
Write3dPpmFile{} -> err $ text "Write3dPpmFile"
585585
RequestSizeOf-> err $ text "Unexpected RequestSizeOf in L0: " <+> exp_doc
586+
RequestEndOf -> err $ text "Unexpected RequestEndOf in L0: " <+> exp_doc
586587

587588

588589
LetE (v, [], gvn_rhs_ty, rhs) bod -> do

gibbon-compiler/src/Gibbon/L1/Syntax.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import Text.PrettyPrint.GenericPretty
2424
import Gibbon.Language
2525
import Gibbon.Common
2626

27-
import Data.Graph as G
2827
import qualified Data.Map as M
2928
import Prelude as P
3029

gibbon-compiler/src/Gibbon/L1/Typecheck.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -574,6 +574,7 @@ tcExp ddfs env exp =
574574

575575
Write3dPpmFile{} -> throwError $ GenericTC "Write3dPpmFile not handled yet" exp
576576

577+
RequestEndOf{} -> throwError $ GenericTC "tcExp of PrimAppE: RequestEndOf not handled yet" exp
577578

578579
LetE (v,[],SymDictTy _ pty, rhs) e -> do
579580
tyRhs <- go rhs

gibbon-compiler/src/Gibbon/L2/Syntax.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
{-# LANGUAGE DeriveAnyClass #-}
77

8+
{-# OPTIONS_GHC -Wno-redundant-constraints #-}
89
{-# OPTIONS_GHC -fno-warn-name-shadowing #-}
910
{-# OPTIONS_GHC -fno-warn-orphans #-}
1011
{-# OPTIONS_GHC -fdefer-typed-holes #-}

gibbon-compiler/src/Gibbon/L2/Typecheck.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,12 @@ module Gibbon.L2.Typecheck
2020
import Control.DeepSeq
2121
import Control.Monad
2222
import Control.Monad.Except
23-
import Data.Foldable ( foldlM, foldrM )
23+
import Data.Foldable ( foldlM )
2424
import qualified Data.Set as S
2525
import qualified Data.List as L
2626
import qualified Data.Map as M
2727
import Data.Maybe
2828
import Text.PrettyPrint.GenericPretty
29-
import Debug.Trace
3029

3130
import Gibbon.Common
3231
import Gibbon.L2.Syntax as L2
@@ -672,6 +671,8 @@ tcExp ddfs env funs constrs regs tstatein exp =
672671

673672
Write3dPpmFile{} -> throwError $ GenericTC "Write3dPpmFile not handled yet" exp
674673

674+
RequestEndOf{} -> throwError $ GenericTC "tcExp of PrimAppE: RequestEndOf not handled yet" exp
675+
675676

676677
LetE (v,_ls,ty,e1) e2 -> do
677678

gibbon-compiler/src/Gibbon/L3/Syntax.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,6 @@ import qualified Data.Set as S
2525
import qualified Data.List as L
2626
import Text.PrettyPrint.GenericPretty
2727

28-
-- * Functions
29-
import Control.DeepSeq
30-
import qualified Data.List as L
31-
import qualified Data.Map as M
32-
import qualified Data.Set as S
33-
import Text.PrettyPrint.GenericPretty
34-
3528
import Gibbon.Common
3629
-- import qualified Gibbon.L2.Syntax as L2
3730
import Gibbon.Language hiding (mapMExprs)

gibbon-compiler/src/Gibbon/L3/Typecheck.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,6 +748,7 @@ tcExp isPacked ddfs env exp =
748748

749749
Write3dPpmFile{} -> throwError $ GenericTC "Write3dPpmFile not handled yet" exp
750750

751+
RequestEndOf{} -> throwError $ GenericTC "RequestEndOf not handled yet" exp
751752

752753

753754
LetE (v,[],SymDictTy _ _pty, rhs) e -> do

gibbon-compiler/src/Gibbon/L4/Interp.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ eval _ (TagTriv t) = TagVal t
8181
eval _ (SymTriv _) = error "eval: SymTriv not handled"
8282
eval _ (ProdTriv{}) = error "eval: ProdTriv not handled"
8383
eval _ (ProjTriv{}) = error "eval: ProjTriv not handled"
84+
eval _ (BoolTriv{}) = error "eval: BoolTriv not handled"
8485

8586

8687
exec :: Env -> Tail -> IO [Val]

gibbon-compiler/src/Gibbon/Language.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{-# LANGUAGE TypeOperators #-}
12
{-# LANGUAGE FlexibleContexts #-}
23
{-# LANGUAGE FlexibleInstances #-}
34
{-# LANGUAGE UndecidableInstances #-}
@@ -109,7 +110,7 @@ instance FreeVars (e l d) => FreeVars (PreExp e l d) where
109110

110111

111112
-- | A Typeable instance for L1 and L3 (L2 defines it's own)
112-
instance (Show (), Out (), Expression (e () (UrTy ())),
113+
instance (Show (), Out (),
113114
TyOf (e () (UrTy ())) ~ TyOf (PreExp e () (UrTy ())),
114115
FunctionTy (UrTy ()), Typeable (e () (UrTy ())))
115116
=> Typeable (PreExp e () (UrTy ())) where

0 commit comments

Comments
 (0)