[llvm-branch-commits] [mlir] 78b3bce - [mlir] AsyncRuntime: disable mlir-runner init/disable for WIN32
Eugene Zhulenev via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jan 8 14:07:50 PST 2021
Author: Eugene Zhulenev
Date: 2021-01-08T14:03:25-08:00
New Revision: 78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff
URL: https://github.com/llvm/llvm-project/commit/78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff
DIFF: https://github.com/llvm/llvm-project/commit/78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff.diff
LOG: [mlir] AsyncRuntime: disable mlir-runner init/disable for WIN32
Differential Revision: https://reviews.llvm.org/D94339
Added:
Modified:
mlir/lib/ExecutionEngine/AsyncRuntime.cpp
Removed:
################################################################################
diff --git a/mlir/lib/ExecutionEngine/AsyncRuntime.cpp b/mlir/lib/ExecutionEngine/AsyncRuntime.cpp
index 1fb6a843f015..1e0c35afebd8 100644
--- a/mlir/lib/ExecutionEngine/AsyncRuntime.cpp
+++ b/mlir/lib/ExecutionEngine/AsyncRuntime.cpp
@@ -359,9 +359,6 @@ extern "C" void mlirAsyncRuntimePrintCurrentThreadId() {
// Export symbols for the MLIR runner integration. All other symbols are hidden.
#ifndef _WIN32
#define API __attribute__((visibility("default")))
-#else
-#define API
-#endif // _WIN32
extern "C" API void __mlir_runner_init(llvm::StringMap<void *> &exportSymbols) {
auto exportSymbol = [&](llvm::StringRef name, auto ptr) {
@@ -407,4 +404,6 @@ extern "C" API void __mlir_runner_init(llvm::StringMap<void *> &exportSymbols) {
extern "C" API void __mlir_runner_destroy() { resetDefaultAsyncRuntime(); }
+#endif // _WIN32
+
#endif // MLIR_ASYNCRUNTIME_DEFINE_FUNCTIONS
More information about the llvm-branch-commits
mailing list