Skip to content

Commit 89508c3

Browse files
committed
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in TosaOps.cpp (NFC)
1 parent 690b9c9 commit 89508c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,20 +512,20 @@ void ReduceMinOp::print(OpAsmPrinter &parser) {
512512
// Tosa utilities.
513513
//===----------------------------------------------------------------------===//
514514

515-
std::optional<int64_t> idivCheck(const int64_t lhs, const int64_t rhs) {
515+
static std::optional<int64_t> idivCheck(const int64_t lhs, const int64_t rhs) {
516516
if (lhs % rhs != 0)
517517
return std::nullopt;
518518
return lhs / rhs;
519519
}
520520

521-
Type getStorageElementTypeOrSelf(Type type) {
521+
static Type getStorageElementTypeOrSelf(Type type) {
522522
auto srcType = getElementTypeOrSelf(type);
523523
if (auto quantType = llvm::dyn_cast<mlir::quant::QuantizedType>(srcType))
524524
srcType = quantType.getStorageType();
525525
return srcType;
526526
}
527527

528-
Type getStorageElementTypeOrSelf(Value value) {
528+
static Type getStorageElementTypeOrSelf(Value value) {
529529
return getStorageElementTypeOrSelf(value.getType());
530530
}
531531

0 commit comments

Comments
 (0)