clang
8.0.0
|
Entity that registers the offloading constants that were emitted so far. More...
#include "/work/www-prereleases/8.0.0/rc4/docsbuild/llvm.src/tools/clang/lib/CodeGen/CGOpenMPRuntime.h"
Classes | |
class | OffloadEntryInfo |
Base class of the entries info. More... | |
class | OffloadEntryInfoDeviceGlobalVar |
Device global variable entries info. More... | |
class | OffloadEntryInfoTargetRegion |
Target region entries info. More... | |
Public Types | |
enum | OMPTargetRegionEntryKind : uint32_t { OMPTargetRegionEntryTargetRegion = 0x0, OMPTargetRegionEntryCtor = 0x02, OMPTargetRegionEntryDtor = 0x04 } |
Kind of the target registry entry. More... | |
enum | OMPTargetGlobalVarEntryKind : uint32_t { OMPTargetGlobalVarEntryTo = 0x0, OMPTargetGlobalVarEntryLink = 0x1 } |
Kind of the global variable entry.. More... | |
typedef llvm::function_ref< void(unsigned, unsigned, StringRef, unsigned, const OffloadEntryInfoTargetRegion &)> | OffloadTargetRegionEntryInfoActTy |
brief Applies action Action on all registered entries. More... | |
typedef llvm::function_ref< void(StringRef, const OffloadEntryInfoDeviceGlobalVar &)> | OffloadDeviceGlobalVarEntryInfoActTy |
Applies action Action on all registered entries. More... | |
Public Member Functions | |
bool | empty () const |
Return true if a there are no entries defined. More... | |
unsigned | size () const |
Return number of entries defined so far. More... | |
OffloadEntriesInfoManagerTy (CodeGenModule &CGM) | |
void | initializeTargetRegionEntryInfo (unsigned DeviceID, unsigned FileID, StringRef ParentName, unsigned LineNum, unsigned Order) |
Initialize target region entry. More... | |
void | registerTargetRegionEntryInfo (unsigned DeviceID, unsigned FileID, StringRef ParentName, unsigned LineNum, llvm::Constant *Addr, llvm::Constant *ID, OMPTargetRegionEntryKind Flags) |
Register target region entry. More... | |
bool | hasTargetRegionEntryInfo (unsigned DeviceID, unsigned FileID, StringRef ParentName, unsigned LineNum) const |
Return true if a target region entry with the provided information exists. More... | |
void | actOnTargetRegionEntriesInfo (const OffloadTargetRegionEntryInfoActTy &Action) |
void | initializeDeviceGlobalVarEntryInfo (StringRef Name, OMPTargetGlobalVarEntryKind Flags, unsigned Order) |
Initialize device global variable entry. More... | |
void | registerDeviceGlobalVarEntryInfo (StringRef VarName, llvm::Constant *Addr, CharUnits VarSize, OMPTargetGlobalVarEntryKind Flags, llvm::GlobalValue::LinkageTypes Linkage) |
Register device global variable entry. More... | |
bool | hasDeviceGlobalVarEntryInfo (StringRef VarName) const |
Checks if the variable with the given name has been registered already. More... | |
void | actOnDeviceGlobalVarEntriesInfo (const OffloadDeviceGlobalVarEntryInfoActTy &Action) |
Entity that registers the offloading constants that were emitted so far.
Definition at line 420 of file CGOpenMPRuntime.h.
typedef llvm::function_ref<void(StringRef, const OffloadEntryInfoDeviceGlobalVar &)> clang::CodeGen::OffloadEntriesInfoManagerTy::OffloadDeviceGlobalVarEntryInfoActTy |
Applies action Action on all registered entries.
Definition at line 603 of file CGOpenMPRuntime.h.
typedef llvm::function_ref<void(unsigned, unsigned, StringRef, unsigned, const OffloadEntryInfoTargetRegion &)> clang::CodeGen::OffloadEntriesInfoManagerTy::OffloadTargetRegionEntryInfoActTy |
brief Applies action Action on all registered entries.
Definition at line 539 of file CGOpenMPRuntime.h.
Kind of the global variable entry..
Enumerator | |
---|---|
OMPTargetGlobalVarEntryTo | Mark the entry as a to declare target. |
OMPTargetGlobalVarEntryLink | Mark the entry as a to declare target link. |
Definition at line 548 of file CGOpenMPRuntime.h.
Kind of the target registry entry.
Definition at line 487 of file CGOpenMPRuntime.h.
|
inline |
Definition at line 480 of file CGOpenMPRuntime.h.
void clang::CodeGen::OffloadEntriesInfoManagerTy::actOnDeviceGlobalVarEntriesInfo | ( | const OffloadDeviceGlobalVarEntryInfoActTy & | Action | ) |
Referenced by clang::CodeGen::createOffloadEntriesAndInfoMetadata().
void clang::CodeGen::OffloadEntriesInfoManagerTy::actOnTargetRegionEntriesInfo | ( | const OffloadTargetRegionEntryInfoActTy & | Action | ) |
Referenced by clang::CodeGen::createOffloadEntriesAndInfoMetadata().
bool clang::CodeGen::OffloadEntriesInfoManagerTy::empty | ( | ) | const |
Return true if a there are no entries defined.
Referenced by clang::CodeGen::createOffloadEntriesAndInfoMetadata(), and clang::CodeGen::createOffloadingBinaryDescriptorRegistration().
|
inline |
Checks if the variable with the given name has been registered already.
Definition at line 597 of file CGOpenMPRuntime.h.
bool clang::CodeGen::OffloadEntriesInfoManagerTy::hasTargetRegionEntryInfo | ( | unsigned | DeviceID, |
unsigned | FileID, | ||
StringRef | ParentName, | ||
unsigned | LineNum | ||
) | const |
Return true if a target region entry with the provided information exists.
void clang::CodeGen::OffloadEntriesInfoManagerTy::initializeDeviceGlobalVarEntryInfo | ( | StringRef | Name, |
OMPTargetGlobalVarEntryKind | Flags, | ||
unsigned | Order | ||
) |
Initialize device global variable entry.
Referenced by clang::CodeGen::loadOffloadInfoMetadata().
void clang::CodeGen::OffloadEntriesInfoManagerTy::initializeTargetRegionEntryInfo | ( | unsigned | DeviceID, |
unsigned | FileID, | ||
StringRef | ParentName, | ||
unsigned | LineNum, | ||
unsigned | Order | ||
) |
Initialize target region entry.
Referenced by clang::CodeGen::loadOffloadInfoMetadata().
void clang::CodeGen::OffloadEntriesInfoManagerTy::registerDeviceGlobalVarEntryInfo | ( | StringRef | VarName, |
llvm::Constant * | Addr, | ||
CharUnits | VarSize, | ||
OMPTargetGlobalVarEntryKind | Flags, | ||
llvm::GlobalValue::LinkageTypes | Linkage | ||
) |
Register device global variable entry.
Referenced by clang::CodeGen::registerTargetGlobalVariable().
void clang::CodeGen::OffloadEntriesInfoManagerTy::registerTargetRegionEntryInfo | ( | unsigned | DeviceID, |
unsigned | FileID, | ||
StringRef | ParentName, | ||
unsigned | LineNum, | ||
llvm::Constant * | Addr, | ||
llvm::Constant * | ID, | ||
OMPTargetRegionEntryKind | Flags | ||
) |
Register target region entry.
Referenced by clang::CodeGen::emitDeclareTargetVarDefinition().
|
inline |
Return number of entries defined so far.
Definition at line 479 of file CGOpenMPRuntime.h.
Referenced by clang::CodeGen::createOffloadEntriesAndInfoMetadata().