tkonolige commented on a change in pull request #7152:
URL: https://github.com/apache/tvm/pull/7152#discussion_r552797360
##########
File path: include/tvm/ir/transform.h
##########
@@ -414,6 +414,65 @@ TVM_DLL Pass
CreateModulePass(const runtime::TypedPackedFunc<IRModule(IRModule,
PassContext)>& pass_func,
int opt_level, String name, Array<runtime::String> required);
+class ModulePassNode : public PassNode {
Review comment:
It is needed for `CreateModulePass`
(https://github.com/apache/tvm/pull/7152/files#diff-99b9cb940bf19f00bb0d5956a156574f1f1940b026bff03fc0cb5f78c71d9faeR471).
The new version of `CreateModulePass` needs to be templated so it accepts
lambdas (and other functions) before they have been converted to
`TypedPackedFunc`s. That way we can correctly set the name.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]