tvm
Loading...
Searching...
No Matches
Friends | List of all members
tvm::sym::ConstraintContext Class Reference

Constraint context. More...

#include <analyzer.h>

Collaboration diagram for tvm::sym::ConstraintContext:

Friends

class With< ConstraintContext >
 

Detailed Description

Constraint context.

Var x("x");
sym::Analyzer analyzer;
{
With<sym::ConstraintContext> scope(analyzer, tvm::floormod(x, 3) == 0);
TVM_FFI_ICHECK_EQ(analyzer->modular_set(x)->coeff, 3);
}
// constraint no longer in effect.
TVM_FFI_ICHECK_NE(analyzer->modular_set(x)->coeff, 3);
Managed reference to VarNode.
Definition expr.h:714
RAII wrapper function to enter and exit a context object similar to python's with syntax.
Definition with_context.h:59
Managed reference to AnalyzerObj.
Definition analyzer.h:916
TVM_TIRX_DLL PrimExpr floormod(PrimExpr a, PrimExpr b, Location loc=UnknownLoc())
compute the remainder of floordiv

Friends And Related Symbol Documentation

◆ With< ConstraintContext >

friend class With< ConstraintContext >
friend

The documentation for this class was generated from the following file: