[Mlir-commits] [mlir] 69a0742 - [mlir] Fix unqualified APInt in LoopLikeOpInterface tablegen (#159561)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Sep 18 05:29:15 PDT 2025
Author: Vladimír Štill
Date: 2025-09-18T14:29:11+02:00
New Revision: 69a07420f999f6f93fb3930ecb104a9d19ba1d65
URL: https://github.com/llvm/llvm-project/commit/69a07420f999f6f93fb3930ecb104a9d19ba1d65
DIFF: https://github.com/llvm/llvm-project/commit/69a07420f999f6f93fb3930ecb104a9d19ba1d65.diff
LOG: [mlir] Fix unqualified APInt in LoopLikeOpInterface tablegen (#159561)
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`).
Added:
Modified:
mlir/include/mlir/Interfaces/LoopLikeInterface.td
Removed:
################################################################################
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=*/"",
More information about the Mlir-commits
mailing list