diff options
| author | Joseph Huber <huberjn@outlook.com> | 2025-01-28 07:26:13 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 07:26:13 -0600 |
| commit | 13dcc95dcd4999ff99f2de89d881f1aed5b21709 (patch) | |
| tree | bf6ad4c3e61a27b6ee96f5a8349f3d6a177bf43d /offload/tools | |
| parent | 015aed18ee357ee6db4e72cba2e65aeaafa333c9 (diff) | |
[Offload] Rework offloading entry type to be more generic (#124018)
Summary:
The previous offloading entry type did not fit the current use-cases
very well. This widens it and adds a version to prevent further
annoyances. It also includes the kind to better sort who's using it.
The first 64-bytes are reserved as zero so the OpenMP runtime can detect
the old format for binary compatibilitry.
Diffstat (limited to 'offload/tools')
| -rw-r--r-- | offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp index ff7715403323..bec2fac50142 100644 --- a/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp +++ b/offload/tools/kernelreplay/llvm-omp-kernel-replay.cpp @@ -93,7 +93,8 @@ int main(int argc, char **argv) { void *BAllocStart = reinterpret_cast<void *>( JsonKernelInfo->getAsObject()->getInteger("BumpAllocVAStart").value()); - llvm::offloading::EntryTy KernelEntry = {nullptr, nullptr, 0, 0, 0}; + llvm::offloading::EntryTy KernelEntry = {~0U, 0, 0, 0, nullptr, + nullptr, 0, 0, nullptr}; std::string KernelEntryName = KernelFunc.value().str(); KernelEntry.SymbolName = const_cast<char *>(KernelEntryName.c_str()); // Anything non-zero works to uniquely identify the kernel. |
