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

Mehdi Amini llvmlistbot at llvm.org
Wed Dec 17 05:31:06 PST 2025


Author: Mehdi Amini
Date: 2025-12-17T05:30:01-08:00
New Revision: f719e11cc17f63c6100b5d95192472ed138839f7

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

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

Added: 
    

Modified: 
    mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
index 3962e3e84dd31..af4d2c37f651c 100644
--- a/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
+++ b/mlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp
@@ -47,7 +47,7 @@ using namespace mlir::sparse_tensor;
 // Support hashing LevelType such that SparseTensorEncodingAttr can be hashed as
 // well.
 namespace mlir::sparse_tensor {
-llvm::hash_code hash_value(LevelType lt) {
+static llvm::hash_code hash_value(LevelType lt) {
   return llvm::hash_value(static_cast<uint64_t>(lt));
 }
 } // namespace mlir::sparse_tensor


        


More information about the Mlir-commits mailing list