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

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Jun 7 02:02:34 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",
----------------
ftynse wrote:

No idea what was happening there but 18446744073709551609 is `static_cast<uint64_t>(-6)` if that helps, and the default number of stack elements in a small vector for 64-bit element width is also 6. So I suspect the sign got inverted somewhere or the distance was taken in the wrong direction.

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


More information about the Mlir-commits mailing list