|
tvm
|
Type-dispatched expression functor with a caller-selected signature. More...
Type-dispatched expression functor with a caller-selected signature.
| FType | A function signature of the form R(const Expr&, Args...). |
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.