Analyzer to get constant integer bound over expression.
More...
#include <analyzer.h>
Analyzer to get constant integer bound over expression.
◆ BoundMapType
◆ Bind()
void tvm::arith::ConstIntBoundAnalyzer::Bind |
( |
const Var & |
var, |
|
|
const Range & |
range, |
|
|
bool |
allow_override = false |
|
) |
| |
Bind variable to a range.
- Parameters
-
var | The variable. |
range | The range we bind to. |
allow_override | Whether we allow overriding an existing var's range. |
◆ operator()() [1/2]
analyze the expr
- Parameters
-
expr | The expression of interest. |
- Returns
- the result of the analysis.
◆ operator()() [2/2]
analyze the expr with the intermediate memorized to avoid redundant computation
- Parameters
-
expr | The expression of interest. |
bound | The lookup table to store the intermediate results |
- Returns
- the result of the analysis.
◆ Update()
void tvm::arith::ConstIntBoundAnalyzer::Update |
( |
const Var & |
var, |
|
|
const ConstIntBound & |
info, |
|
|
bool |
allow_override = false |
|
) |
| |
Update constant int bound information of var.
- Parameters
-
var | The variable of interest. |
info | The bound information. |
allow_override | whether we allow override of existing information. |
◆ Analyzer
◆ ConstraintContext
The documentation for this class was generated from the following file: