Create a constant struct initializer used to register this global at runtime.

Synopsis

Declared in <llvm/Frontend/Offloading/Utility.h>

std::pair<Constant*, GlobalVariable*>
getOffloadingEntryInitializer(
    Module& M,
    object::OffloadKind Kind,
    Constant* Addr,
    StringRef Name,
    uint64_t Size,
    uint32_t Flags,
    uint64_t Data,
    Constant* AuxAddr);

Return Value

The constant struct and the global variable holding the symbol name.

Parameters

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.

Created with MrDocs