[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:23:30 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:

Ahh yes, somebody this looks confusing indeed, but there's not much we can do (maybe renaming the `outputs` operand).


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


More information about the Mlir-commits mailing list