futhark-0.9.1: An optimising compiler for a functional, array-oriented language.
Futhark.Optimise.MemoryBlockMerging.Reuse.AllocationSizes
Description
Find all Alloc statements and associate their memory blocks with the allocation size.
memBlockSizesFunDef :: LoreConstraints lore => FunDef lore -> Sizes Source #
memBlockSizesParamsBodyNonRec :: LoreConstraints lore => [FParam lore] -> Body lore -> Sizes Source #
type Sizes = Map MName (SubExp, Space) Source #
maps memory blocks to its size and space/type