Skip to main content

Module iter_affine_map

Module iter_affine_map 

Source
Expand description

Iterator maps. An iterator map writes index expressions as IterSumExprs, sums of IterSplitExprs of IterMarked iterators; detect_iter_map finds one, and the other functions simplify, divide and invert such maps.

Structs§

IterMapExpr
The base of the iterator map forms, IterSplitExpr and IterSumExpr. They hold the result of detection and do not appear in a well-formed function.
IterMapExprObj
The object behind IterMapExpr.
IterMapResult
The result of detect_iter_map: the detected indices, or empty indices and the errors that say why detection failed.
IterMapResultObj
The object behind IterMapResult.
IterMark
The mark of source as an iterator over [0, extent).
IterMarkObj
The object behind IterMark.
IterSplitExpr
The split (source // lower_factor) % extent * scale of the marked iterator source.
IterSplitExprObj
The object behind IterSplitExpr.
IterSumExpr
The sum of the splits args plus base.
IterSumExprObj
The object behind IterSumExpr.

Enums§

IterMapLevel
How strictly an iterator map is checked.

Functions§

detect_iter_map
Detect indices as iterator maps of the iterators input_iters under predicate (sym.DetectIterMap).
inverse_affine_iter_map
Return the inputs of the bijective iterator map iter_map as expressions of its outputs (sym.InverseAffineIterMap).
iter_map_simplify
Simplify indices through iterator map detection, or return them unchanged when they are not iterator maps (sym.IterMapSimplify).
normalize_iter_map_to_expr
Return the plain expression of the iterator map expr (sym.NormalizeIterMapToExpr).
normalize_to_iter_sum
Return index as a sum of splits of the iterators input_iters, with what is not detected in its base (sym.NormalizeToIterSum).
subspace_divide
Divide each binding into an outer map of the iterators not in sub_iters and an inner map of those in it (sym.SubspaceDivide).