tvm
|
Using previously specified knowns, compare the expressions provided. More...
#include <analyzer.h>
Public Member Functions | |
CompareResult | TryCompare (const PrimExpr &lhs, const PrimExpr &rhs, bool propagate_inequalities=true) |
void | Bind (const Var &var, const PrimExpr &expr, bool allow_override=false) |
Bind a variable as being equal to a known expression. More... | |
void | Bind (const Var &var, const Range &range, bool allow_override=false) |
Bind a variable as being within a specified range. More... | |
std::function< void()> | EnterConstraint (const PrimExpr &constraint) |
Update the internal state to enter constraint. More... | |
Friends | |
class | Analyzer |
class | ConstraintContext |
Using previously specified knowns, compare the expressions provided.
Given known expressions [(a OP b), (b OP c), ..., (y OP z)], search for a known result for (a OP z)
.
void tvm::arith::TransitiveComparisonAnalyzer::Bind | ( | const Var & | var, |
const PrimExpr & | expr, | ||
bool | allow_override = false |
||
) |
Bind a variable as being equal to a known expression.
var | The variable of interest. |
expr | The bound expression |
allow_override | Whether to allow override of existing information. |
void tvm::arith::TransitiveComparisonAnalyzer::Bind | ( | const Var & | var, |
const Range & | range, | ||
bool | allow_override = false |
||
) |
Bind a variable as being within a specified range.
var | The variable of interest. |
range | The known range |
allow_override | Whether to allow override of existing information. |
std::function<void()> tvm::arith::TransitiveComparisonAnalyzer::EnterConstraint | ( | const PrimExpr & | constraint | ) |
Update the internal state to enter constraint.
constraint | A constraint expression. |
CompareResult tvm::arith::TransitiveComparisonAnalyzer::TryCompare | ( | const PrimExpr & | lhs, |
const PrimExpr & | rhs, | ||
bool | propagate_inequalities = true |
||
) |
|
friend |
|
friend |