[Mlir-commits] [mlir] [mlir][Interfaces] `LoopLikeOpInterface`: Add helpers to get region iter_args and inits (PR #66925)

Matthias Springer llvmlistbot at llvm.org
Thu Sep 21 01:27:25 PDT 2023


================
@@ -564,6 +566,8 @@ void ForOp::getSuccessorRegions(RegionBranchPoint point,
 
 SmallVector<Region *> ForallOp::getLoopRegions() { return {&getRegion()}; }
 
+OperandRange ForallOp::getInits() { return getOutputs(); }
----------------
matthias-springer wrote:

Actually, the "outputs" and bbarg of `scf.forall` is not an iter_arg like `scf.for`. Because there are no iterations, just parallelism. Maybe we want to treat them like iter_args at some point, but I'm removing it again for now.


https://github.com/llvm/llvm-project/pull/66925


More information about the Mlir-commits mailing list