futhark-0.25.15: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.CodeGen.ImpGen.Multicore.SegRed

Synopsis

Documentation

compileSegRed :: Pat LetDecMem -> SegSpace -> [SegBinOp MCMem] -> KernelBody MCMem -> TV Int32 -> MulticoreGen MCCode Source #

Generate code for a SegRed construct

compileSegRed' :: Pat LetDecMem -> SegSpace -> [SegBinOp MCMem] -> TV Int32 -> DoSegBody -> MulticoreGen MCCode Source #

Like compileSegRed, but where the body is a monadic action.

type DoSegBody = ([[(SubExp, [TExp Int64])]] -> MulticoreGen ()) -> MulticoreGen () Source #