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


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to