Skip to content

Commit 7c8feb6

Browse files
joker-ephgithub-actions[bot]
authored andcommitted
Automerge: [MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TypeParser.cpp (NFC)
2 parents 1de4637 + 5a98392 commit 7c8feb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ static Type parseAnyType(DialectAsmParser &parser) {
157157
/// Checks if the given scale value is within the valid range of the expressed
158158
/// type. The `expressedType` argument is the floating-point type used for
159159
/// expressing the quantized values, and `scale` is the double value to check.
160-
LogicalResult
160+
static LogicalResult
161161
isScaleInExpressedTypeRange(function_ref<InFlightDiagnostic()> emitError,
162162
Type expressedType, double scale) {
163163
auto floatType = cast<FloatType>(expressedType);
@@ -579,10 +579,10 @@ static void printUniformQuantizedPerAxisType(UniformQuantizedPerAxisType type,
579579
/// would print:
580580
///
581581
/// {{1.0, 2.0}, {3.0:1, 4.0:9}}
582-
void printDenseQuantizationParameters(ArrayRef<APFloat> scales,
583-
ArrayRef<APInt> zeroPoints,
584-
ArrayRef<int64_t> shape,
585-
DialectAsmPrinter &out) {
582+
static void printDenseQuantizationParameters(ArrayRef<APFloat> scales,
583+
ArrayRef<APInt> zeroPoints,
584+
ArrayRef<int64_t> shape,
585+
DialectAsmPrinter &out) {
586586
int64_t rank = shape.size();
587587
SmallVector<unsigned, 4> counter(rank, 0);
588588
unsigned openBrackets = 0;

0 commit comments

Comments
 (0)