module Futhark.Pass.ExplicitAllocations.Seq ( explicitAllocations, simplifiable, ) where import Futhark.IR.Seq import Futhark.IR.SeqMem import Futhark.Pass import Futhark.Pass.ExplicitAllocations explicitAllocations :: Pass Seq SeqMem explicitAllocations :: Pass Seq SeqMem explicitAllocations = forall fromrep torep (inner :: * -> *). Allocable fromrep torep inner => Space -> (Op fromrep -> AllocM fromrep torep (Op torep)) -> (Exp torep -> AllocM fromrep torep [ExpHint]) -> Pass fromrep torep explicitAllocationsGeneric Space DefaultSpace (forall a b. a -> b -> a const forall a b. (a -> b) -> a -> b $ forall (f :: * -> *) a. Applicative f => a -> f a pure forall a b. (a -> b) -> a -> b $ forall (inner :: * -> *) rep. inner rep -> MemOp inner rep Inner forall {k} (rep :: k). NoOp rep NoOp) forall rep (m :: * -> *). (ASTRep rep, HasScope rep m) => Exp rep -> m [ExpHint] defaultExpHints