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

Safe HaskellNone
LanguageHaskell2010

Futhark.Optimise.MemoryBlockMerging.MemoryAliases

Description

Find memory block aliases. The conceptual difference from variable aliases is that if a variable x has an alias y, it means that x and y use the same memory block, but if a memory block xmem has an alias ymem, it means that xmem and ymem refer to the same *memory*. This is not commutative.

Synopsis

Documentation

findMemAliases :: FunDef ExplicitMemory -> VarMemMappings MemorySrc -> MemAliases Source #

Find all memory aliases in a function definition.