[Mlir-commits] [mlir] [mlir][loops] Add getters for multi dim loop variables in `LoopLikeOpInterface` (PR #94516)

Matthias Springer llvmlistbot at llvm.org
Fri Jun 7 02:24:30 PDT 2024


================
@@ -93,47 +93,43 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
       }]
     >,
     InterfaceMethod<[{
-        If there is a single induction variable return it, otherwise return
-        std::nullopt.
+        Return all induction variables.
----------------
matthias-springer wrote:

Mention that:
* `std::nullopt` means that the loop does not expose loop induction variables via this interface. (E.g., because the loop op has no concept of "induction variables".)
* An empty vector means that the loop has no loop induction variables.

Same for the other getter methods.


https://github.com/llvm/llvm-project/pull/94516


More information about the Mlir-commits mailing list