[Mlir-commits] [mlir] f98e552 - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in LLVMDialect.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Fri Aug 29 09:50:32 PDT 2025
Author: Mehdi Amini
Date: 2025-08-29T09:49:32-07:00
New Revision: f98e552da27bd22f7e5014398795bcc58584a0e6
URL: https://github.com/llvm/llvm-project/commit/f98e552da27bd22f7e5014398795bcc58584a0e6
DIFF: https://github.com/llvm/llvm-project/commit/f98e552da27bd22f7e5014398795bcc58584a0e6.diff
LOG: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in LLVMDialect.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
index a6e89f63c822b..a0b755bc63736 100644
--- a/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+++ b/mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
@@ -868,8 +868,9 @@ static bool isTypeCompatibleWithAtomicOp(Type type,
/// Verifies the attributes and the type of atomic memory access operations.
template <typename OpTy>
-LogicalResult verifyAtomicMemOp(OpTy memOp, Type valueType,
- ArrayRef<AtomicOrdering> unsupportedOrderings) {
+static LogicalResult
+verifyAtomicMemOp(OpTy memOp, Type valueType,
+ ArrayRef<AtomicOrdering> unsupportedOrderings) {
if (memOp.getOrdering() != AtomicOrdering::not_atomic) {
DataLayout dataLayout = DataLayout::closest(memOp);
if (!isTypeCompatibleWithAtomicOp(valueType, dataLayout))
@@ -1119,7 +1120,7 @@ static LogicalResult verifyCallOpDebugInfo(CallOp callOp, LLVMFuncOp callee) {
/// Verify that the parameter and return types of the variadic callee type match
/// the `callOp` argument and result types.
template <typename OpTy>
-LogicalResult verifyCallOpVarCalleeType(OpTy callOp) {
+static LogicalResult verifyCallOpVarCalleeType(OpTy callOp) {
std::optional<LLVMFunctionType> varCalleeType = callOp.getVarCalleeType();
if (!varCalleeType)
return success();
@@ -2532,7 +2533,7 @@ LogicalResult GlobalOp::verifyRegions() {
// LLVM::GlobalCtorsOp
//===----------------------------------------------------------------------===//
-LogicalResult checkGlobalXtorData(Operation *op, ArrayAttr data) {
+static LogicalResult checkGlobalXtorData(Operation *op, ArrayAttr data) {
if (data.empty())
return success();
More information about the Mlir-commits
mailing list