zackcquic commented on a change in pull request #7952:
URL: https://github.com/apache/tvm/pull/7952#discussion_r638400076
##########
File path: include/tvm/ir/transform.h
##########
@@ -189,12 +183,36 @@ class PassContext : public ObjectRef {
TVM_DLL static PassContext Current();
/*!
- * \brief Apply the tracing functions of the context to the module, with the
info.
- * \param module The IRModule to trace.
+ * \brief Call instrument implementations' callbacks when entering
PassContex.
+ * In order, if one raises exceptions, remaings will not be called.
+ */
+ TVM_DLL void InstrumentEnterPassContext();
+
+ /*!
+ * \brief Call instrument implementations' callback when exiting PassContext.
+ * In order, if one raises exceptions, remaings will not be called.
+ */
+ TVM_DLL void InstrumentExitPassContext();
+
+ /*!
+ * \brief Call intrument implementations' callbacks before a pass run.
Review comment:
Done
--
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]