Skip to content

Commit

Permalink
Export newVName from ImpGen for convenience.
Browse files Browse the repository at this point in the history
  • Loading branch information
athas committed Dec 6, 2023
1 parent 8ea9bd3 commit bf546fe
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/Futhark/CodeGen/ImpGen.hs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ module Futhark.CodeGen.ImpGen
caseMatch,

-- * Constructing code.
newVName,
dLParams,
dFParams,
addLoopVar,
Expand Down
1 change: 0 additions & 1 deletion src/Futhark/CodeGen/ImpGen/GPU/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ import Futhark.CodeGen.ImpGen
import Futhark.Error
import Futhark.IR.GPUMem
import Futhark.IR.Mem.LMAD qualified as LMAD
import Futhark.MonadFreshNames
import Futhark.Transform.Rename
import Futhark.Util (dropLast, nubOrd, splitFromEnd)
import Futhark.Util.IntegralExp (divUp, quot, rem)
Expand Down
1 change: 0 additions & 1 deletion src/Futhark/CodeGen/ImpGen/GPU/Group.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import Futhark.Construct (fullSliceNum)
import Futhark.Error
import Futhark.IR.GPUMem
import Futhark.IR.Mem.LMAD qualified as LMAD
import Futhark.MonadFreshNames
import Futhark.Transform.Rename
import Futhark.Util (chunks, mapAccumLM, takeLast)
import Futhark.Util.IntegralExp (divUp, rem)
Expand Down
3 changes: 1 addition & 2 deletions src/Futhark/CodeGen/ImpGen/GPU/SegHist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ import Futhark.CodeGen.ImpGen.GPU.SegRed (compileSegRed')
import Futhark.Construct (fullSliceNum)
import Futhark.IR.GPUMem
import Futhark.IR.Mem.LMAD qualified as LMAD
import Futhark.MonadFreshNames
import Futhark.Pass.ExplicitAllocations ()
import Futhark.Transform.Substitute
import Futhark.Util (chunks, mapAccumLM, maxinum, splitFromEnd, takeLast)
Expand Down Expand Up @@ -245,7 +244,7 @@ prepareIntermediateArraysGlobal passage segments hist_T hist_N slugs = do

hist_L2 <- dPrim "L2_size" int32
-- Equivalent to F_L2*L2 in paper.
sOp $ Imp.GetSizeMax (tvVar hist_L2) $ Imp.SizeCache
sOp $ Imp.GetSizeMax (tvVar hist_L2) Imp.SizeCache

let hist_L2_ln_sz = 16 * 4 -- L2 cache line size approximation
hist_RACE_exp <-
Expand Down
1 change: 0 additions & 1 deletion src/Futhark/CodeGen/ImpGen/Multicore/Base.hs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import Futhark.CodeGen.ImpCode.Multicore qualified as Imp
import Futhark.CodeGen.ImpGen
import Futhark.Error
import Futhark.IR.MCMem
import Futhark.MonadFreshNames
import Futhark.Transform.Rename
import Prelude hiding (quot, rem)

Expand Down
1 change: 0 additions & 1 deletion src/Futhark/CodeGen/ImpGen/Multicore/SegHist.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import Futhark.CodeGen.ImpGen
import Futhark.CodeGen.ImpGen.Multicore.Base
import Futhark.CodeGen.ImpGen.Multicore.SegRed (compileSegRed')
import Futhark.IR.MCMem
import Futhark.MonadFreshNames
import Futhark.Transform.Rename (renameLambda)
import Futhark.Util (chunks, splitFromEnd, takeLast)
import Futhark.Util.IntegralExp (rem)
Expand Down

0 comments on commit bf546fe

Please sign in to comment.