Futhark.CodeGen.ImpGen.Transpose
Description
A cache-oblivious sequential transposition for CPU execution. Generates a recursive function.
mapTransposeFunction :: Name -> PrimType -> Function op Source #
We need to know the name of the function we are generating, as this function is recursive.
transposeArgs :: PrimType -> VName -> Count Bytes (TExp Int64) -> VName -> Count Bytes (TExp Int64) -> TExp Int64 -> TExp Int64 -> TExp Int64 -> [Arg] Source #
Take well-typed arguments to the transpose function and produce the actual argument list.