llvm::offloading::emitOffloadingEntry

Create an offloading entry used to register this global at runtime.

Synopsis

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);

Return Value

The emitted global variable containing the offloading entry.

Parameters

NameDescription
MThe module to be used.
KindThe offloading language expected to consume this.
AddrThe pointer to the global being registered.
NameThe symbol name associated with the global.
SizeThe size in bytes of the global (0 for functions).
FlagsFlags associated with the entry.
DataExtra data storage associated with the entry.
AuxAddrAn extra pointer if needed.