[Mlir-commits] [mlir] 5a98392 - [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TypeParser.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Oct 20 07:53:01 PDT 2025


Author: Mehdi Amini
Date: 2025-10-20T07:52:38-07:00
New Revision: 5a983921c29f6da73e1d841665a9be6720eca66f

URL: https://github.com/llvm/llvm-project/commit/5a983921c29f6da73e1d841665a9be6720eca66f
DIFF: https://github.com/llvm/llvm-project/commit/5a983921c29f6da73e1d841665a9be6720eca66f.diff

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

Added: 
    

Modified: 
    mlir/lib/Dialect/Quant/IR/TypeParser.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
index 6e79daa0da996..eb956f20220dd 100644
--- a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
+++ b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp
@@ -157,7 +157,7 @@ static Type parseAnyType(DialectAsmParser &parser) {
 /// Checks if the given scale value is within the valid range of the expressed
 /// type. The `expressedType` argument is the floating-point type used for
 /// expressing the quantized values, and `scale` is the double value to check.
-LogicalResult
+static LogicalResult
 isScaleInExpressedTypeRange(function_ref<InFlightDiagnostic()> emitError,
                             Type expressedType, double scale) {
   auto floatType = cast<FloatType>(expressedType);
@@ -579,10 +579,10 @@ static void printUniformQuantizedPerAxisType(UniformQuantizedPerAxisType type,
 ///   would print:
 ///
 ///     {{1.0, 2.0}, {3.0:1, 4.0:9}}
-void printDenseQuantizationParameters(ArrayRef<APFloat> scales,
-                                      ArrayRef<APInt> zeroPoints,
-                                      ArrayRef<int64_t> shape,
-                                      DialectAsmPrinter &out) {
+static void printDenseQuantizationParameters(ArrayRef<APFloat> scales,
+                                             ArrayRef<APInt> zeroPoints,
+                                             ArrayRef<int64_t> shape,
+                                             DialectAsmPrinter &out) {
   int64_t rank = shape.size();
   SmallVector<unsigned, 4> counter(rank, 0);
   unsigned openBrackets = 0;


        


More information about the Mlir-commits mailing list