[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
================
@@ -510,22 +510,30 @@ def ForallOp : SCF_Op<"forall", [
];
let extraClassDeclaration = [{
+ SmallVector<Value> getInductionVars() {
+ auto maybeInductionVars = getLoopInductionVars();;
----------------
ftynse wrote:
```suggestion
auto maybeInductionVars = getLoopInductionVars();
```
Also please expand `auto` unless the type is obvious from line context.
https://github.com/llvm/llvm-project/pull/94516
More information about the Mlir-commits
mailing list