|
tvm
|
A dynamical functor that dispatches on in the first Expr argument. You can use this as a more powerful Visitor, since it allows you to define function signatures of Visit Function. More...
A dynamical functor that dispatches on in the first Expr argument. You can use this as a more powerful Visitor, since it allows you to define function signatures of Visit Function.
This helps you to avoid to book-keep return value of Visitor via state, which can cause bugs easily when state is incorrectly maintained.
We often need to implement a transformer tasks. Say we want to take Expr and transform it to some analysis result, This easily be done incorrectly using plain Visitor. See IRVisitor's document for possible error cases.
| FType | function signiture This type if only defined for FType with function signiture R(const Expr&, Args...) |