tvm
|
Rewrite-rule based simplifier. More...
#include <analyzer.h>
Public Member Functions | |
PrimExpr | operator() (const PrimExpr &expr) |
analyze the expr More... | |
void | Update (const Var &var, const PrimExpr &new_expr, bool allow_override=false) |
Update binding of var to a new expression. More... | |
std::function< void()> | EnterConstraint (const PrimExpr &constraint) |
Friends | |
class | Analyzer |
class | ConstraintContext |
class | CanonicalSimplifier |
Rewrite-rule based simplifier.
std::function<void()> tvm::arith::RewriteSimplifier::EnterConstraint | ( | const PrimExpr & | constraint | ) |
analyze the expr
expr | The expression of interest. |
void tvm::arith::RewriteSimplifier::Update | ( | const Var & | var, |
const PrimExpr & | new_expr, | ||
bool | allow_override = false |
||
) |
Update binding of var to a new expression.
var | The variable of interest. |
new_expr | |
allow_override | Whether do we allow override of existing information. |
|
friend |
|
friend |
|
friend |