[Mlir-commits] [mlir] [mlir] Fix unqualified APInt in LoopLikeOpInterface tablegen (PR #159561)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Thu Sep 18 05:05:59 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-mlir

Author: Vladimír Štill (vlstill)

<details>
<summary>Changes</summary>

In the recent change adding `getStaticTripCount` there is an omitted namespace on `APInt` which means the build fails for projects using this interface outside of `llvm` namespace (or `using llvm::APInt`).

---
Full diff: https://github.com/llvm/llvm-project/pull/159561.diff


1 Files Affected:

- (modified) mlir/include/mlir/Interfaces/LoopLikeInterface.td (+1-1) 


``````````diff
diff --git a/mlir/include/mlir/Interfaces/LoopLikeInterface.td b/mlir/include/mlir/Interfaces/LoopLikeInterface.td
index cfd15a7746e19..e09b8672f2d08 100644
--- a/mlir/include/mlir/Interfaces/LoopLikeInterface.td
+++ b/mlir/include/mlir/Interfaces/LoopLikeInterface.td
@@ -236,7 +236,7 @@ def LoopLikeOpInterface : OpInterface<"LoopLikeOpInterface"> {
     InterfaceMethod<[{
         Compute the static trip count if possible.
       }],
-      /*retTy=*/"::std::optional<APInt>",
+      /*retTy=*/"::std::optional<::llvm::APInt>",
       /*methodName=*/"getStaticTripCount",
       /*args=*/(ins),
       /*methodBody=*/"",

``````````

</details>


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


More information about the Mlir-commits mailing list