[Openmp-commits] [PATCH] D140732: [OpenMP][JIT] Fixed a couple of issues in the initial implementation of JIT
Shilei Tian via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Dec 28 11:41:19 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG75019f18bd4f: [OpenMP][JIT] Fixed a couple of issues in the initial implementation of JIT (authored by tianshilei1992).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140732/new/
https://reviews.llvm.org/D140732
Files:
openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
===================================================================
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/PluginInterface.h
@@ -380,7 +380,7 @@
/// Get target architecture.
virtual std::string getArch() const {
- llvm_unreachable("device doesn't support JIT");
+ return "unknown";
}
/// Post processing after jit backend. The ownership of \p MB will be taken.
@@ -540,7 +540,7 @@
/// Get the target triple of this plugin.
virtual Triple::ArchType getTripleArch() const {
- llvm_unreachable("target doesn't support jit");
+ return Triple::ArchType::UnknownArch;
}
/// Allocate a structure using the internal allocator.
Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
===================================================================
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/JIT.cpp
@@ -69,7 +69,7 @@
}
#endif
if (!JITTargetInitialized) {
- FAILURE_MESSAGE("unsupported JIT target");
+ FAILURE_MESSAGE("unsupported JIT target: %s\n", TT.str().c_str());
abort();
}
Index: openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
===================================================================
--- openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
+++ openmp/libomptarget/plugins-nextgen/common/PluginInterface/CMakeLists.txt
@@ -18,7 +18,7 @@
# Only enable JIT for those targets that LLVM can support.
string(TOUPPER "${LLVM_TARGETS_TO_BUILD}" TargetsSupported)
foreach(Target ${TargetsSupported})
- target_compile_definitions(PluginInterface PRIVATE "LIBOMPTARGET_JIT_${TARGET}")
+ target_compile_definitions(PluginInterface PRIVATE "LIBOMPTARGET_JIT_${Target}")
endforeach()
# This is required when using LLVM libraries.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140732.485531.patch
Type: text/x-patch
Size: 2052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20221228/64e1dd84/attachment.bin>
More information about the Openmp-commits
mailing list