futhark-0.11.1: An optimising compiler for a functional, array-oriented language.

Safe HaskellNone
LanguageHaskell2010

Futhark.Pass.ExtractKernels.BlockedKernel

Documentation

segGenRed Source #

Arguments

:: (MonadFreshNames m, HasScope Kernels m) 
=> Pattern Kernels 
-> SubExp 
-> [(VName, SubExp)]

Segment indexes and sizes.

-> [KernelInput] 
-> [GenReduceOp InKernel] 
-> Lambda InKernel 
-> [VName] 
-> m (Stms Kernels) 

getSize :: (MonadBinder m, Op (Lore m) ~ HostOp (Lore m) inner) => String -> SizeClass -> m SubExp Source #