[Mlir-commits] [mlir] [mlir][loops] Add getters for multi dim loop variables in `LoopLikeOpInterface` (PR #94516)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Jun 6 09:13:50 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",
----------------
srcarroll wrote:
i dont know what i'm doing wrong. i switched to `SmallVector<Value>`, but when running tests i get
```
# | LLVM ERROR: SmallVector unable to grow. Requested capacity (18446744073709551609) is larger than maximum value for size type (4294967295)
```
https://github.com/llvm/llvm-project/pull/94516
More information about the Mlir-commits
mailing list