futhark-0.25.15: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
LanguageGHC2021

Futhark.Optimise.Simplify.Rules.Index

Description

Index simplification mechanics.

Synopsis

Documentation

data IndexResult Source #

Some index expressions can be simplified to SubExps, while others produce another index expression (which may be further simplifiable).

simplifyIndexing :: MonadBuilder m => SymbolTable (Rep m) -> TypeLookup -> VName -> Slice SubExp -> Bool -> (VName -> Bool) -> Maybe (m IndexResult) Source #

Try to simplify an index operation.