Create an offloading entry used to register this global at runtime.
Declared in <llvm/Frontend/Offloading/Utility.h>
GlobalVariable*
emitOffloadingEntry(
Module& M,
object::OffloadKind Kind,
Constant* Addr,
StringRef Name,
uint64_t Size,
uint32_t Flags,
uint64_t Data,
Constant* AuxAddr = nullptr);
The emitted global variable containing the offloading entry.
| Name | Description |
|---|---|
| M | The module to be used. |
| Kind | The offloading language expected to consume this. |
| Addr | The pointer to the global being registered. |
| Name | The symbol name associated with the global. |
| Size | The size in bytes of the global (0 for functions). |
| Flags | Flags associated with the entry. |
| Data | Extra data storage associated with the entry. |
| AuxAddr | An extra pointer if needed. |