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

Maksim Levental llvmlistbot at llvm.org
Thu Jun 6 10:25:23 PDT 2024


================
@@ -93,51 +93,47 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
       }]
     >,
     InterfaceMethod<[{
-        If there is a single induction variable return it, otherwise return
-        std::nullopt.
+        Return all induction variables.
       }],
-      /*retTy=*/"::std::optional<::mlir::Value>",
-      /*methodName=*/"getSingleInductionVar",
+      /*retTy=*/"::mlir::ValueRange",
----------------
makslevental wrote:

i left comments on that commit but from experience I know that you'll have a really hard time finding them (they will not appear here) so https://github.com/llvm/llvm-project/commit/1babe681d7858a4992303c62e22684cb73d82472

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


More information about the Mlir-commits mailing list