[Mlir-commits] [mlir] [MLIR][Interfaces] Make LoopLikeOpInterface inheritable outside of MLIR (PR #128743)

Tobias Gysi llvmlistbot at llvm.org
Tue Feb 25 09:39:32 PST 2025


================
@@ -331,88 +333,90 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
     /// Return the region iter_arg that corresponds to the given loop result.
     /// Return an "empty" block argument if the given OpResult is not a loop
     /// result or if this op does not expose any loop results.
-    BlockArgument getTiedLoopRegionIterArg(OpResult opResult) {
+    ::mlir::BlockArgument getTiedLoopRegionIterArg(::mlir::OpResult opResult) {
       auto loopResults = $_op.getLoopResults();
       if (!loopResults)
         return {};
       auto it = llvm::find(*loopResults, opResult);
----------------
gysit wrote:

```suggestion
      auto it = ::llvm::find(*loopResults, opResult);
```
::nit:

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


More information about the Mlir-commits mailing list