diff options
author | Eugene Zhulenev <ezhulenev@google.com> | 2021-01-08 14:02:25 -0800 |
---|---|---|
committer | Eugene Zhulenev <ezhulenev@google.com> | 2021-01-08 14:03:25 -0800 |
commit | 78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff (patch) | |
tree | 2c6cc145e696aa667e304f3c54be462f2f953dd1 | |
parent | a57def30f53990aafc3f64b9b7a0f60916cc7f61 (diff) | |
download | llvm-78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff.zip llvm-78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff.tar.gz llvm-78b3bce23b113ab5dbd33d746ba48f2a3c20c5ff.tar.bz2 |
[mlir] AsyncRuntime: disable mlir-runner init/disable for WIN32
Differential Revision: https://reviews.llvm.org/D94339
-rw-r--r-- | mlir/lib/ExecutionEngine/AsyncRuntime.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mlir/lib/ExecutionEngine/AsyncRuntime.cpp b/mlir/lib/ExecutionEngine/AsyncRuntime.cpp index 1fb6a84..1e0c35a 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 |