[clang] [llvm] [mlir] [Offload] Rework offloading entry type to be more generic (PR #124018)

Shilei Tian via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 27 07:45:23 PST 2025


================
@@ -317,6 +317,9 @@ GlobalVariable *createFatbinDesc(Module &M, ArrayRef<char> Image, bool IsHIP,
 /// void __cudaRegisterTest(void **fatbinHandle) {
 ///   for (struct __tgt_offload_entry *entry = &__start_cuda_offloading_entries;
 ///        entry != &__stop_cuda_offloading_entries; ++entry) {
+///     if (entry->kind != OFK_CUDA)
+///       continue
+///
 ///     if (!entry->size)
----------------
shiltian wrote:

```suggestion
///     if (!entry->Size)
```

https://github.com/llvm/llvm-project/pull/124018


More information about the llvm-commits mailing list