OSDN Git Service

[mlir] AsyncRuntime: disable mlir-runner init/disable for WIN32
authorEugene Zhulenev <ezhulenev@google.com>
Fri, 8 Jan 2021 22:02:25 +0000 (14:02 -0800)
committerEugene Zhulenev <ezhulenev@google.com>
Fri, 8 Jan 2021 22:03:25 +0000 (14:03 -0800)
Differential Revision: https://reviews.llvm.org/D94339

mlir/lib/ExecutionEngine/AsyncRuntime.cpp

index 1fb6a84..1e0c35a 100644 (file)
@@ -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