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§
- Iter
MapExpr - The base of the iterator map forms,
IterSplitExprandIterSumExpr. They hold the result of detection and do not appear in a well-formed function. - Iter
MapExpr Obj - The object behind
IterMapExpr. - Iter
MapResult - The result of
detect_iter_map: the detectedindices, or emptyindicesand theerrorsthat say why detection failed. - Iter
MapResult Obj - The object behind
IterMapResult. - Iter
Mark - The mark of
sourceas an iterator over[0, extent). - Iter
Mark Obj - The object behind
IterMark. - Iter
Split Expr - The split
(source // lower_factor) % extent * scaleof the marked iteratorsource. - Iter
Split Expr Obj - The object behind
IterSplitExpr. - Iter
SumExpr - The sum of the splits
argsplusbase. - Iter
SumExpr Obj - The object behind
IterSumExpr.
Enums§
- Iter
MapLevel - How strictly an iterator map is checked.
Functions§
- detect_
iter_ map - Detect
indicesas iterator maps of the iteratorsinput_itersunderpredicate(sym.DetectIterMap). - inverse_
affine_ iter_ map - Return the inputs of the bijective iterator map
iter_mapas expressions of itsoutputs(sym.InverseAffineIterMap). - iter_
map_ simplify - Simplify
indicesthrough 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
indexas a sum of splits of the iteratorsinput_iters, with what is not detected in itsbase(sym.NormalizeToIterSum). - subspace_
divide - Divide each binding into an outer map of the iterators not in
sub_itersand an inner map of those in it (sym.SubspaceDivide).