[Mlir-commits] [mlir] [mlir][Interfaces] `LoopLikeOpInterface`: Add helpers to get region iter_args and inits (PR #66925)
Markus Böck
llvmlistbot at llvm.org
Wed Sep 20 23:51:57 PDT 2023
================
@@ -564,6 +566,8 @@ void ForOp::getSuccessorRegions(RegionBranchPoint point,
SmallVector<Region *> ForallOp::getLoopRegions() { return {&getRegion()}; }
+OperandRange ForallOp::getInits() { return getOutputs(); }
----------------
zero9178 wrote:
The name of this operand makes this line look very confusing out of context :sweat_smile:
https://github.com/llvm/llvm-project/pull/66925
More information about the Mlir-commits
mailing list