diff options
Diffstat (limited to 'mlir/lib/ExecutionEngine')
-rw-r--r-- | mlir/lib/ExecutionEngine/JitRunner.cpp | 2 | ||||
-rw-r--r-- | mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/mlir/lib/ExecutionEngine/JitRunner.cpp b/mlir/lib/ExecutionEngine/JitRunner.cpp index 0ada4cc..db05165 100644 --- a/mlir/lib/ExecutionEngine/JitRunner.cpp +++ b/mlir/lib/ExecutionEngine/JitRunner.cpp @@ -271,7 +271,7 @@ Error checkCompatibleReturnType<float>(LLVM::LLVMFuncOp mainFunction) { return Error::success(); } template <typename Type> -Error compileAndExecuteSingleReturnFunction( +static Error compileAndExecuteSingleReturnFunction( Options &options, Operation *module, StringRef entryPoint, CompileAndExecuteConfig config, std::unique_ptr<llvm::TargetMachine> tm) { auto mainFunction = dyn_cast_or_null<LLVM::LLVMFuncOp>( diff --git a/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp b/mlir/lib/ExecutionEngine/LevelZeroRuntimeWrappers.cpp index 21eaf28..d072827 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) |