|
LLVM 23.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... | |
Class that manages information about offload code regions and data.
Definition at line 262 of file OMPIRBuilder.h.
| typedef function_ref<void(StringRef, const OffloadEntryInfoDeviceGlobalVar &)> llvm::OffloadEntriesInfoManager::OffloadDeviceGlobalVarEntryInfoActTy |
Applies action Action on all registered entries.
Definition at line 470 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 380 of file OMPIRBuilder.h.
Kind of device clause for declare target variables and functions NOTE: Currently not used as a part of a variable entry used for Flang and Clang to interface with the variable related registration functions.
Definition at line 411 of file OMPIRBuilder.h.
Kind of the global variable entry..
Definition at line 389 of file OMPIRBuilder.h.
Kind of the target registry entry.
| Enumerator | |
|---|---|
| OMPTargetRegionEntryTargetRegion | Mark the entry as target region. |
Definition at line 327 of file OMPIRBuilder.h.
|
inline |
Definition at line 320 of file OMPIRBuilder.h.
| void OffloadEntriesInfoManager::actOnDeviceGlobalVarEntriesInfo | ( | const OffloadDeviceGlobalVarEntryInfoActTy & | Action | ) |
Definition at line 12451 of file OMPIRBuilder.cpp.
| void OffloadEntriesInfoManager::actOnTargetRegionEntriesInfo | ( | const OffloadTargetRegionEntryInfoActTy & | Action | ) |
Definition at line 12395 of file OMPIRBuilder.cpp.
| bool OffloadEntriesInfoManager::empty | ( | ) | const |
Return true if a there are no entries defined.
Definition at line 12318 of file OMPIRBuilder.cpp.
| void OffloadEntriesInfoManager::getTargetRegionEntryFnName | ( | SmallVectorImpl< char > & | Name, |
| const TargetRegionEntryInfo & | EntryInfo ) |
Checks if the variable with the given name has been registered already.
Definition at line 465 of file OMPIRBuilder.h.
Referenced by registerDeviceGlobalVarEntryInfo().
| bool OffloadEntriesInfoManager::hasTargetRegionEntryInfo | ( | TargetRegionEntryInfo | EntryInfo, |
| bool | IgnoreAddressId = false ) const |
Return true if a target region entry with the provided information exists.
Definition at line 12379 of file OMPIRBuilder.cpp.
References llvm::TargetRegionEntryInfo::Count.
Referenced by registerTargetRegionEntryInfo().
| void OffloadEntriesInfoManager::initializeDeviceGlobalVarEntryInfo | ( | StringRef | Name, |
| OMPTargetGlobalVarEntryKind | Flags, | ||
| unsigned | Order ) |
Initialize device global variable entry.
This is ONLY used for DEVICE compilation.
Definition at line 12403 of file OMPIRBuilder.cpp.
| void OffloadEntriesInfoManager::initializeTargetRegionEntryInfo | ( | const TargetRegionEntryInfo & | EntryInfo, |
| unsigned | Order ) |
Initialize target region entry.
This is ONLY needed for DEVICE compilation.
Definition at line 12339 of file OMPIRBuilder.cpp.
References OMPTargetRegionEntryTargetRegion.
| void OffloadEntriesInfoManager::registerDeviceGlobalVarEntryInfo | ( | StringRef | VarName, |
| Constant * | Addr, | ||
| int64_t | VarSize, | ||
| OMPTargetGlobalVarEntryKind | Flags, | ||
| GlobalValue::LinkageTypes | Linkage ) |
Register device global variable entry.
Definition at line 12409 of file OMPIRBuilder.cpp.
References assert(), hasDeviceGlobalVarEntryInfo(), OMPTargetGlobalVarEntryIndirect, and OMPTargetGlobalVarEntryIndirectVTable.
| void OffloadEntriesInfoManager::registerTargetRegionEntryInfo | ( | TargetRegionEntryInfo | EntryInfo, |
| Constant * | Addr, | ||
| Constant * | ID, | ||
| OMPTargetRegionEntryKind | Flags ) |
Register target region entry.
Definition at line 12347 of file OMPIRBuilder.cpp.
References assert(), llvm::TargetRegionEntryInfo::Count, hasTargetRegionEntryInfo(), and OMPTargetRegionEntryTargetRegion.
|
inline |
Return number of entries defined so far.
Definition at line 318 of file OMPIRBuilder.h.