|
void | VisitExpr (const Expr &expr) override |
| Generic dispatcher for Expr. More...
|
|
void | VisitExpr_ (const ConstantNode *op) override |
|
void | VisitExpr_ (const TupleNode *op) override |
|
void | VisitExpr_ (const VarNode *op) override |
|
void | VisitExpr_ (const DataflowVarNode *op) override |
|
void | VisitExpr_ (const ShapeExprNode *op) override |
|
void | VisitExpr_ (const ExternFuncNode *op) override |
|
void | VisitExpr_ (const GlobalVarNode *op) override |
|
void | VisitExpr_ (const FunctionNode *op) override |
|
void | VisitExpr_ (const CallNode *op) override |
|
void | VisitExpr_ (const SeqExprNode *op) override |
|
void | VisitExpr_ (const IfNode *op) override |
|
void | VisitExpr_ (const OpNode *op) override |
|
void | VisitExpr_ (const TupleGetItemNode *op) override |
|
void | VisitExpr_ (const PrimValueNode *op) override |
|
void | VisitExpr_ (const StringImmNode *op) override |
|
void | VisitExpr_ (const DataTypeImmNode *op) override |
|
virtual void | VisitBinding (const Binding &binding) |
| Generic dispatcher for bindings. More...
|
|
virtual void | VisitBinding_ (const VarBindingNode *binding) |
|
virtual void | VisitBinding_ (const MatchCastNode *binding) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const ConstantNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const TupleNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const VarNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const DataflowVarNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const ShapeExprNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const ExternFuncNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const GlobalVarNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const FunctionNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const CallNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const SeqExprNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const IfNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const OpNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const TupleGetItemNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const PrimValueNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const StringImmNode *val) |
|
virtual void | VisitBinding_ (const VarBindingNode *binding, const DataTypeImmNode *val) |
|
virtual void | VisitBindingBlock (const BindingBlock &block) |
| Generic dispatcher for binding blocks. More...
|
|
virtual void | VisitBindingBlock_ (const BindingBlockNode *block) |
|
virtual void | VisitBindingBlock_ (const DataflowBlockNode *block) |
|
virtual void | VisitVarDef (const Var &var) |
| Generic dispatcher for visiting the var definition site. More...
|
|
virtual void | VisitExprDepStructInfoField (const StructInfo &struct_info) |
| Visit struct_info may recursively contain Expr/PrimExpr. More...
|
|
virtual void | VisitVarDef_ (const VarNode *var) |
|
virtual void | VisitVarDef_ (const DataflowVarNode *var) |
|
virtual void | VisitSpan (const Span &span) |
|
virtual void | VisitPrimExpr (const PrimExpr &expr) |
|
A simple visitor wrapper around ExprFunctor. Recursively visit the content.
virtual void tvm::relax::ExprVisitor::VisitExprDepStructInfoField |
( |
const StructInfo & |
struct_info | ) |
|
|
virtual |
Visit struct_info may recursively contain Expr/PrimExpr.
By default, this function recurse into struct info such as TensorStructInfo and ShapeStructInfo and call VisitExpr/VisitPrimExpr accordingly. It does not recurse into FunctionStructInfo as it does not contain Expr defined in the current scope.
Pass writers can overload this function to change to other behaviors. For example, if we are not interested in Expr in StructInfo, we can override this function by a no-op.
- Parameters
-
struct_info | Input struct info field. |