[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


================
@@ -312,15 +313,16 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
       if (initsMutable.empty())
         return ::mlir::OperandRange($_op->operand_end(), $_op->operand_end());
       unsigned firstOperandIndex = initsMutable.begin()->getOperandNumber();
-      return OperandRange(
+      return ::mlir::OperandRange(
           $_op->operand_begin() + firstOperandIndex,
           $_op->operand_begin() + firstOperandIndex + initsMutable.size());
     }
 
     /// Return the region iter_arg that corresponds to the given init operand.
     /// Return an "empty" block argument if the given operand is not an init
     /// operand of this loop op.
-    BlockArgument getTiedLoopRegionIterArg(OpOperand *opOperand) {
+    ::mlir::BlockArgument getTiedLoopRegionIterArg(
+        ::mlir::OpOperand *opOperand) {
       auto initsMutable = $_op.getInitsMutable();
       auto it = llvm::find(initsMutable, *opOperand);
----------------
gysit wrote:

```suggestion
      auto it = ::llvm::find(initsMutable, *opOperand);
```
::nit:

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


More information about the Mlir-commits mailing list