Template Class ExprFunctor#
Defined in File expr_functor.h
Class Documentation#
-
template<typename FType>
class ExprFunctor# Type-dispatched expression functor with a caller-selected signature.
Override Dispatch_ for a node type, or DispatchDefault_ for the default behavior. Unlike structural visitors and mutators, this functor does not traverse children automatically. Dispatch may use a registered ancestor. A derived class can add node types with a fresh inherited table. Use tvm::ExprFunctor explicitly when dialect functors are also in scope.
- Template Parameters:
FType – A function signature of the form R(const Expr&, Args…).