junrushao1994 commented on a change in pull request #9434:
URL: https://github.com/apache/tvm/pull/9434#discussion_r743819492
##########
File path: src/tir/schedule/primitive.h
##########
@@ -63,6 +63,15 @@ Array<StmtSRef> GetBlocks(const ScheduleState& self, const
String& name, const S
* \return A list of loops above the given block in its scope, from outer to
inner
*/
Array<StmtSRef> GetLoops(const StmtSRef& block_sref);
+/*!
+ * \brief Get the leaf blocks of a specific block/loop
+ * \param self The schedule state
+ * \param parent_sref The query block/loop
+ * \param inclusive Whether to include parent_sref
+ * \return A list of leaf blocks inside a specific block/loop
+ */
+Array<StmtSRef> GetChildBlocks(const ScheduleState& self, const StmtSRef&
parent_sref,
Review comment:
It's always false. I'm fine if we remove it or not
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]