[Mlir-commits] [mlir] [mlir][loops] Add getters for multi dim loop variables in `LoopLikeOpInterface` (PR #94516)

Matthias Springer llvmlistbot at llvm.org
Fri Jun 7 02:24:31 PDT 2024


================
@@ -846,8 +850,11 @@ def ParallelOp : SCF_Op<"parallel",
   ];
 
   let extraClassDeclaration = [{
-    ValueRange getInductionVars() {
-      return getBody()->getArguments();
+    // Get induction variables.
+    SmallVector<Value> getInductionVars() {
+      auto maybeInductionVars = getLoopInductionVars();;
----------------
matthias-springer wrote:

double `;`

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


More information about the Mlir-commits mailing list