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

Safe HaskellNone
LanguageHaskell2010

Futhark.Optimise.MemoryBlockMerging.Reuse.AllocationSizes

Description

Find all Alloc statements and associate their memory blocks with the allocation size.

Synopsis

Documentation

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