futhark-0.19.4: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.Analysis.PrimExp.Simplify

Description

Defines simplification functions for PrimExps.

Synopsis

Documentation

simplifyPrimExp :: SimplifiableLore lore => PrimExp VName -> SimpleM lore (PrimExp VName) Source #

Simplify a PrimExp, including copy propagation. If a LeafExp refers to a name that is a Constant, the node turns into a ValueExp.

simplifyExtPrimExp :: SimplifiableLore lore => PrimExp (Ext VName) -> SimpleM lore (PrimExp (Ext VName)) Source #

Like simplifyPrimExp, but where leaves may be Exts.