[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:20:40 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() {
----------------
srcarroll wrote:
i agree. but i think that would require a whole lot of changes that i'm not keen on doing right now
https://github.com/llvm/llvm-project/pull/94516
    
    
More information about the Mlir-commits
mailing list