[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 01:57:49 PDT 2024
================
@@ -378,20 +378,20 @@ LogicalResult ForOp::verifyRegions() {
return success();
}
-std::optional<Value> ForOp::getSingleInductionVar() {
- return getInductionVar();
+std::optional<SmallVector<Value>> ForOp::getLoopInductionVars() {
+ return SmallVector<Value, 1>{getInductionVar()};
----------------
ftynse wrote:
I suspect using different number of stack-based elements in small vector between this and the return type will prevent move semantics here.
https://github.com/llvm/llvm-project/pull/94516
More information about the Mlir-commits
mailing list