|
tvm
|
Analyzer to get constant integer bound over expression. More...
#include <analyzer.h>
Public Types | |
| using | BoundMapType = std::unordered_map< PrimExpr, ConstIntBound, ffi::ObjectPtrHash, ffi::ObjectPtrEqual > |
Public Member Functions | |
| ConstIntBound | operator() (const PrimExpr &expr) const |
| analyze the expr | |
| ConstIntBound | operator() (const PrimExpr &expr, BoundMapType *bound) |
| analyze the expr with the intermediate memorized to avoid redundant computation | |
| void | Update (const Var &var, const ConstIntBound &info, bool allow_override=false) |
| Update constant int bound information of var. | |
| void | Bind (const Var &var, const Range &range, bool allow_override=false) |
| Bind variable to a range. | |
| bool | IsBound (const Var &var) const |
| Check if a variable is bound to a range. | |
Friends | |
| class | AnalyzerObj |
| class | ConstraintContext |
Analyzer to get constant integer bound over expression.
| using tvm::arith::ConstIntBoundAnalyzer::BoundMapType = std::unordered_map<PrimExpr, ConstIntBound, ffi::ObjectPtrHash, ffi::ObjectPtrEqual> |
| void tvm::arith::ConstIntBoundAnalyzer::Bind | ( | const Var & | var, |
| const Range & | range, | ||
| bool | allow_override = false |
||
| ) |
Bind variable to a range.
| var | The variable. |
| range | The range we bind to. |
| allow_override | Whether we allow overriding an existing var's range. |
Check if a variable is bound to a range.
| var | The variable. |
| ConstIntBound tvm::arith::ConstIntBoundAnalyzer::operator() | ( | const PrimExpr & | expr | ) | const |
analyze the expr
| expr | The expression of interest. |
| ConstIntBound tvm::arith::ConstIntBoundAnalyzer::operator() | ( | const PrimExpr & | expr, |
| BoundMapType * | bound | ||
| ) |
analyze the expr with the intermediate memorized to avoid redundant computation
| expr | The expression of interest. |
| bound | The lookup table to store the intermediate results |
| void tvm::arith::ConstIntBoundAnalyzer::Update | ( | const Var & | var, |
| const ConstIntBound & | info, | ||
| bool | allow_override = false |
||
| ) |
Update constant int bound information of var.
| var | The variable of interest. |
| info | The bound information. |
| allow_override | whether we allow override of existing information. |
|
friend |
|
friend |