tvm
Public Member Functions | Friends | List of all members
tvm::arith::IntSetAnalyzer Class Reference

Integer set analyzer. More...

#include <analyzer.h>

Collaboration diagram for tvm::arith::IntSetAnalyzer:

Public Member Functions

IntSet operator() (const PrimExpr &expr, const Map< Var, IntSet > &dom_map)
 Find a symbolic integer set that contains all possible values of expr given the domain of each variables. More...
 
IntSet operator() (const PrimExpr &expr)
 Find a symbolic integer set that contains all possible values of expr given the domain of each variables, using the domain map defined by bound variables. More...
 
void Update (const Var &var, const IntSet &new_interval_set, bool allow_override=false)
 Update binding of var to a new expression. More...
 
void Bind (const Var &var, const Range &new_range, bool allow_override=false)
 Update binding of var to a new expression. More...
 
std::function< void()> EnterConstraint (const PrimExpr &constraint)
 

Friends

class Analyzer
 

Detailed Description

Integer set analyzer.

Member Function Documentation

◆ Bind()

void tvm::arith::IntSetAnalyzer::Bind ( const Var var,
const Range new_range,
bool  allow_override = false 
)

Update binding of var to a new expression.

Parameters
varThe variable of interest.
new_rangeThe range of allowed values for this var.
allow_overridewhether we allow override of existing information.

◆ EnterConstraint()

std::function<void()> tvm::arith::IntSetAnalyzer::EnterConstraint ( const PrimExpr constraint)

◆ operator()() [1/2]

IntSet tvm::arith::IntSetAnalyzer::operator() ( const PrimExpr expr)

Find a symbolic integer set that contains all possible values of expr given the domain of each variables, using the domain map defined by bound variables.

Parameters
exprThe expression of interest.
Returns
the result of the analysis.

◆ operator()() [2/2]

IntSet tvm::arith::IntSetAnalyzer::operator() ( const PrimExpr expr,
const Map< Var, IntSet > &  dom_map 
)

Find a symbolic integer set that contains all possible values of expr given the domain of each variables.

Parameters
exprThe expression of interest.
dom_mapThe domain map to indicate which variable to relax.
Returns
the result of the analysis.

◆ Update()

void tvm::arith::IntSetAnalyzer::Update ( const Var var,
const IntSet new_interval_set,
bool  allow_override = false 
)

Update binding of var to a new expression.

Parameters
varThe variable of interest.
new_interval_setThe set of allowed values for this var.
allow_overridewhether we allow override of existing information.

Friends And Related Function Documentation

◆ Analyzer

friend class Analyzer
friend

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