[Mlir-commits] [mlir] 89508c3 - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TosaOps.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Wed Sep 10 14:52:17 PDT 2025


Author: Mehdi Amini
Date: 2025-09-10T14:49:52-07:00
New Revision: 89508c359249b80a9a0bf678c2c4ef5421fe791d

URL: https://github.com/llvm/llvm-project/commit/89508c359249b80a9a0bf678c2c4ef5421fe791d
DIFF: https://github.com/llvm/llvm-project/commit/89508c359249b80a9a0bf678c2c4ef5421fe791d.diff

LOG: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TosaOps.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Tosa/IR/TosaOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
index 87bed81632d94..b4c87a34a0e5a 100644
--- a/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
+++ b/mlir/lib/Dialect/Tosa/IR/TosaOps.cpp
@@ -512,20 +512,20 @@ void ReduceMinOp::print(OpAsmPrinter &parser) {
 // Tosa utilities.
 //===----------------------------------------------------------------------===//
 
-std::optional<int64_t> idivCheck(const int64_t lhs, const int64_t rhs) {
+static std::optional<int64_t> idivCheck(const int64_t lhs, const int64_t rhs) {
   if (lhs % rhs != 0)
     return std::nullopt;
   return lhs / rhs;
 }
 
-Type getStorageElementTypeOrSelf(Type type) {
+static Type getStorageElementTypeOrSelf(Type type) {
   auto srcType = getElementTypeOrSelf(type);
   if (auto quantType = llvm::dyn_cast<mlir::quant::QuantizedType>(srcType))
     srcType = quantType.getStorageType();
   return srcType;
 }
 
-Type getStorageElementTypeOrSelf(Value value) {
+static Type getStorageElementTypeOrSelf(Value value) {
   return getStorageElementTypeOrSelf(value.getType());
 }
 


        


More information about the Mlir-commits mailing list