LLVM 17.0.0git
|
Class that manages information about offload code regions and data. More...
#include "llvm/Frontend/OpenMP/OMPIRBuilder.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 function_ref< void(const TargetRegionEntryInfo &EntryInfo, const OffloadEntryInfoTargetRegion &)> | OffloadTargetRegionEntryInfoActTy |
brief Applies action Action on all registered entries. | |
typedef function_ref< void(StringRef, const OffloadEntryInfoDeviceGlobalVar &)> | OffloadDeviceGlobalVarEntryInfoActTy |
Applies action Action on all registered entries. | |
Class that manages information about offload code regions and data.
Definition at line 192 of file OMPIRBuilder.h.
typedef function_ref<void(StringRef, const OffloadEntryInfoDeviceGlobalVar &)> llvm::OffloadEntriesInfoManager::OffloadDeviceGlobalVarEntryInfoActTy |
Applies action Action on all registered entries.
Definition at line 375 of file OMPIRBuilder.h.
typedef function_ref<void(const TargetRegionEntryInfo &EntryInfo, const OffloadEntryInfoTargetRegion &)> llvm::OffloadEntriesInfoManager::OffloadTargetRegionEntryInfoActTy |
brief Applies action Action on all registered entries.
Definition at line 312 of file OMPIRBuilder.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 321 of file OMPIRBuilder.h.
Kind of the target registry entry.
Definition at line 257 of file OMPIRBuilder.h.
|
inline |
Definition at line 250 of file OMPIRBuilder.h.
void OffloadEntriesInfoManager::actOnDeviceGlobalVarEntriesInfo | ( | const OffloadDeviceGlobalVarEntryInfoActTy & | Action | ) |
Definition at line 5368 of file OMPIRBuilder.cpp.
References E.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata().
void OffloadEntriesInfoManager::actOnTargetRegionEntriesInfo | ( | const OffloadTargetRegionEntryInfoActTy & | Action | ) |
Definition at line 5319 of file OMPIRBuilder.cpp.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata().
bool OffloadEntriesInfoManager::empty | ( | ) | const |
Return true if a there are no entries defined.
Definition at line 5242 of file OMPIRBuilder.cpp.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(), and llvm::OpenMPIRBuilder::finalize().
void OffloadEntriesInfoManager::getTargetRegionEntryFnName | ( | SmallVectorImpl< char > & | Name, |
const TargetRegionEntryInfo & | EntryInfo | ||
) |
Definition at line 5186 of file OMPIRBuilder.cpp.
References llvm::TargetRegionEntryInfo::DeviceID, llvm::TargetRegionEntryInfo::FileID, llvm::TargetRegionEntryInfo::getTargetRegionEntryFnName(), llvm::TargetRegionEntryInfo::Line, Name, and llvm::TargetRegionEntryInfo::ParentName.
Referenced by llvm::OpenMPIRBuilder::emitTargetRegionFunction().
Checks if the variable with the given name has been registered already.
Definition at line 370 of file OMPIRBuilder.h.
References llvm::StringMap< ValueTy, AllocatorTy >::count().
bool OffloadEntriesInfoManager::hasTargetRegionEntryInfo | ( | TargetRegionEntryInfo | EntryInfo, |
bool | IgnoreAddressId = false |
||
) | const |
Return true if a target region entry with the provided information exists.
Definition at line 5303 of file OMPIRBuilder.cpp.
References llvm::TargetRegionEntryInfo::Count.
void OffloadEntriesInfoManager::initializeDeviceGlobalVarEntryInfo | ( | StringRef | Name, |
OMPTargetGlobalVarEntryKind | Flags, | ||
unsigned | Order | ||
) |
Initialize device global variable entry.
This is ONLY used for DEVICE compilation.
Definition at line 5327 of file OMPIRBuilder.cpp.
Referenced by llvm::OpenMPIRBuilder::loadOffloadInfoMetadata().
void OffloadEntriesInfoManager::initializeTargetRegionEntryInfo | ( | const TargetRegionEntryInfo & | EntryInfo, |
unsigned | Order | ||
) |
Initialize target region entry.
This is ONLY needed for DEVICE compilation.
Definition at line 5263 of file OMPIRBuilder.cpp.
Referenced by llvm::OpenMPIRBuilder::loadOffloadInfoMetadata().
void OffloadEntriesInfoManager::registerDeviceGlobalVarEntryInfo | ( | StringRef | VarName, |
Constant * | Addr, | ||
int64_t | VarSize, | ||
OMPTargetGlobalVarEntryKind | Flags, | ||
GlobalValue::LinkageTypes | Linkage | ||
) |
void OffloadEntriesInfoManager::registerTargetRegionEntryInfo | ( | TargetRegionEntryInfo | EntryInfo, |
Constant * | Addr, | ||
Constant * | ID, | ||
OMPTargetRegionEntryKind | Flags | ||
) |
Register target region entry.
Definition at line 5271 of file OMPIRBuilder.cpp.
References Addr, assert(), llvm::TargetRegionEntryInfo::Count, Flags, and OMPTargetRegionEntryTargetRegion.
Referenced by llvm::OpenMPIRBuilder::registerTargetRegionFunction().
|
inline |
Return number of entries defined so far.
Definition at line 248 of file OMPIRBuilder.h.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata().