[Mlir-commits] [mlir] [mlir][sparse] support sparsification to coiterate operations. (PR #102546)
Aart Bik
llvmlistbot at llvm.org
Fri Aug 9 11:21:31 PDT 2024
================
@@ -2594,6 +2594,22 @@ void IterateOp::getSuccessorRegions(RegionBranchPoint point,
regions.push_back(RegionSuccessor(getResults()));
}
+void CoIterateOp::build(OpBuilder &builder, OperationState &odsState,
+ ValueRange iterSpaces, ValueRange initArgs,
+ unsigned numCases) {
+ unsigned rank =
+ cast<IterSpaceType>(iterSpaces.front().getType()).getSpaceDim();
+ // All ones.
+ I64BitSet set((1 << rank) - 1);
+ // Fake cases bits. We need to preallocate all the regions as Region can not
----------------
aartbik wrote:
can not -> cannot
but more importantly, I don't understand the comment completely. Is "Fake" a verb, as in fake the cases?
Can you rewrite a bit?
https://github.com/llvm/llvm-project/pull/102546
More information about the Mlir-commits
mailing list