[llvm] [openmp] [clang] [OpenMP] Remove `register_requires` global constructor (PR #80460)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Feb 2 13:35:28 PST 2024
================
@@ -199,7 +199,7 @@ static int initLibrary(DeviceTy &Device) {
Entry.size) != OFFLOAD_SUCCESS)
REPORT("Failed to write symbol for USM %s\n", Entry.name);
}
- } else {
+ } else if (Entry.addr) {
----------------
jhuber6 wrote:
If the address is not-null, then it's a kernel waiting to be registered. It's a little hacky but in the current construction a kernel will always have a stub address pass in by the compiler. So one of these "requires" entries will have the addr be nullptr and the size be zero.
https://github.com/llvm/llvm-project/pull/80460
More information about the cfe-commits
mailing list