[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 11:15:07 PDT 2024
================
@@ -235,6 +231,39 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
}];
let extraSharedClassDeclaration = [{
+ /// If there is a single induction variable return it, otherwise return
+ /// std::nullopt.
+ ::std::optional<::mlir::Value> getSingleInductionVar() {
----------------
MaheshRavishankar wrote:
We should just deprecate these methods. THey never made sense to me.
https://github.com/llvm/llvm-project/pull/94516
More information about the Mlir-commits
mailing list