MasterJH5574 commented on a change in pull request #8467:
URL: https://github.com/apache/tvm/pull/8467#discussion_r670045619
##########
File path: src/tir/schedule/analysis.h
##########
@@ -142,6 +142,12 @@ Array<StmtSRef> GetLoops(const StmtSRef& block_sref);
* \return A list of leaf blocks
*/
Array<StmtSRef> GetChildBlocks(const ScheduleState& self, const StmtSRef&
parent_sref);
+/*!
+ * \brief Get the direct child Schedulable Stmt (Block and For)
Review comment:
```suggestion
* \brief Get the direct child schedulable Stmt (Block and For)
```
##########
File path: src/tir/schedule/analysis/analysis.cc
##########
@@ -298,5 +298,35 @@ Array<StmtSRef> GetChildBlocks(const ScheduleState& self,
const StmtSRef& parent
throw;
}
+Array<Stmt> GetChildren(const Stmt& stmt) {
+ /*! \note Nested SeqStmt is not allowed in schedule. */
Review comment:
I think it is TIR, not a schedule? (Line 314 also has such expression.)
```suggestion
/*! \note Nested SeqStmt is not allowed in TIR. */
```
--
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]