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

Mehdi Amini llvmlistbot at llvm.org
Tue Sep 30 01:27:09 PDT 2025


Author: Mehdi Amini
Date: 2025-09-30T01:26:40-07:00
New Revision: ff130f293dd7f9e280698b02066e8bf7116bcc3a

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

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

Added: 
    

Modified: 
    mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
index 21eaf28c9f214..d0728274b94c8 100644
--- a/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
+++ b/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp
@@ -328,12 +328,12 @@ struct DynamicEventPool {
   }
 };
 
-L0RTContextWrapper &getRtContext() {
+static L0RTContextWrapper &getRtContext() {
   thread_local static L0RTContextWrapper rtContext(0);
   return rtContext;
 }
 
-DynamicEventPool &getDynamicEventPool() {
+static DynamicEventPool &getDynamicEventPool() {
   thread_local static DynamicEventPool dynEventPool{&getRtContext()};
   return dynEventPool;
 }
@@ -492,8 +492,8 @@ extern "C" void mgpuMemcpy(void *dst, void *src, size_t sizeBytes,
 }
 
 template <typename PATTERN_TYPE>
-void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
-                StreamWrapper *stream) {
+static void mgpuMemset(void *dst, PATTERN_TYPE value, size_t count,
+                       StreamWrapper *stream) {
   L0RTContextWrapper &rtContext = getRtContext();
   auto listType =
       rtContext.copyEngineMaxMemoryFillPatternSize >= sizeof(PATTERN_TYPE)


        


More information about the Mlir-commits mailing list