tvm_tirx.sym#
Symbolic analysis: integer bounds, simplification and pattern detection.
Classes#
A symbolic binding, range, or predicate, with collector-defined lifetime. |
|
|
Tracks the constraints relevant to each point in a traversal. |
|
The primitive value captured when |
|
A variable contained in a half-open range, without stride information. |
|
A boolean |
|
Represent a set of integer in one dimension. |
|
Represent set of continuous interval [min_value, max_value] |
|
Represent range of (coeff * x + base) for x in Z |
|
Represent constant integer bound |
|
Integer arithmetic analyzer |
|
Proof strength of the analysis |
|
Result of a transitive comparison. |
|
Base class of all IterMap expressions. |
|
Mark the source as an iterator in [0, extent). |
|
Split of an iterator. |
|
Fuse multiple iterators by summing them with scaling. |
Functions#
|
Analyze the region with affine map, given the domain of variables and their predicate Some subregion may be discarded during the lower-bound analysis. |
|
Analyze the region with affine map, given the domain of variables and their predicate The result should be strict, i.e. no region is discarded or relaxed. |
|
Analyze the region with affine map, given the domain of variables and their predicate Relaxation of the region may be used in upper-bound analysis, i.e. some extra region may be added to the result. |
Opt-in no-overflow domain for unsigned index arithmetic. |
|
|
Deduce the bound of the target variable in the cond. |
|
Detect if indices can be written as mapped iters from input iters |
|
Simplify the indices using iter map detection. |
Given an IterMapExpr, transform it to normal Expr |
|
|
Normalize expr to iter sum. |
|
Detect if bindings can be written as |
|
Apply the inverse of the affine transformation to the outputs. |
Supporting classes#
|
Result of iter map detection. |
|
Possible kinds of iter mapping check level. |
Supporting functions#
|
Returns the symbolic positive infinity |
|
Returns the symbolic negative infinity |
|
Create a lower-bound of union set, where some of the segments may be dropped |