LLVM 17.0.0git
|
Captures attributes that affect generating LLVM-IR using the OpenMPIRBuilder and related classes. More...
#include "llvm/Frontend/OpenMP/OMPIRBuilder.h"
Public Member Functions | |
OpenMPIRBuilderConfig () | |
OpenMPIRBuilderConfig (bool IsEmbedded, bool IsTargetCodegen, bool HasRequiresUnifiedSharedMemory, bool OpenMPOffloadMandatory) | |
bool | isEmbedded () const |
bool | isTargetCodegen () const |
bool | hasRequiresUnifiedSharedMemory () const |
bool | openMPOffloadMandatory () const |
StringRef | firstSeparator () const |
StringRef | separator () const |
void | setIsEmbedded (bool Value) |
void | setIsTargetCodegen (bool Value) |
void | setHasRequiresUnifiedSharedMemory (bool Value) |
void | setFirstSeparator (StringRef FS) |
void | setSeparator (StringRef S) |
Public Attributes | |
std::optional< bool > | IsEmbedded |
Flag for specifying if the compilation is done for embedded device code or host code. | |
std::optional< bool > | IsTargetCodegen |
Flag for specifying if the compilation is done for an offloading target, like GPU. | |
std::optional< bool > | HasRequiresUnifiedSharedMemory |
Flag for specifying weather a requires unified_shared_memory directive is present or not. | |
std::optional< bool > | OpenMPOffloadMandatory |
std::optional< StringRef > | FirstSeparator |
First separator used between the initial two parts of a name. | |
std::optional< StringRef > | Separator |
Separator used between all of the rest consecutive parts of s name. | |
Captures attributes that affect generating LLVM-IR using the OpenMPIRBuilder and related classes.
Note that not all attributes are required for all classes or functions. In some use cases the configuration is not necessary at all, because because the only functions that are called are ones that are not dependent on the configuration.
Definition at line 83 of file OMPIRBuilder.h.
|
inline |
Definition at line 105 of file OMPIRBuilder.h.
|
inline |
Definition at line 106 of file OMPIRBuilder.h.
|
inline |
Definition at line 137 of file OMPIRBuilder.h.
References FirstSeparator, and isTargetCodegen().
Referenced by llvm::OpenMPIRBuilder::createPlatformSpecificName().
|
inline |
Definition at line 124 of file OMPIRBuilder.h.
References assert(), and HasRequiresUnifiedSharedMemory.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata().
|
inline |
Definition at line 114 of file OMPIRBuilder.h.
References assert(), and IsEmbedded.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntriesAndInfoMetadata(), createOutlinedFunction(), llvm::OpenMPIRBuilder::createTarget(), and llvm::OpenMPIRBuilder::emitTargetRegionFunction().
|
inline |
Definition at line 119 of file OMPIRBuilder.h.
References assert(), and IsTargetCodegen.
Referenced by llvm::OpenMPIRBuilder::createOffloadEntry(), firstSeparator(), and separator().
|
inline |
Definition at line 130 of file OMPIRBuilder.h.
References assert(), and OpenMPOffloadMandatory.
Referenced by llvm::OpenMPIRBuilder::emitTargetRegionFunction().
|
inline |
Definition at line 147 of file OMPIRBuilder.h.
References isTargetCodegen(), and Separator.
Referenced by llvm::OpenMPIRBuilder::createPlatformSpecificName().
|
inline |
Definition at line 160 of file OMPIRBuilder.h.
References FirstSeparator.
|
inline |
Definition at line 157 of file OMPIRBuilder.h.
References HasRequiresUnifiedSharedMemory.
|
inline |
Definition at line 155 of file OMPIRBuilder.h.
References IsEmbedded.
|
inline |
Definition at line 156 of file OMPIRBuilder.h.
References IsTargetCodegen.
|
inline |
Definition at line 161 of file OMPIRBuilder.h.
References Separator.
std::optional<StringRef> llvm::OpenMPIRBuilderConfig::FirstSeparator |
First separator used between the initial two parts of a name.
Definition at line 101 of file OMPIRBuilder.h.
Referenced by firstSeparator(), and setFirstSeparator().
std::optional<bool> llvm::OpenMPIRBuilderConfig::HasRequiresUnifiedSharedMemory |
Flag for specifying weather a requires unified_shared_memory directive is present or not.
Definition at line 95 of file OMPIRBuilder.h.
Referenced by hasRequiresUnifiedSharedMemory(), and setHasRequiresUnifiedSharedMemory().
std::optional<bool> llvm::OpenMPIRBuilderConfig::IsEmbedded |
Flag for specifying if the compilation is done for embedded device code or host code.
Definition at line 87 of file OMPIRBuilder.h.
Referenced by isEmbedded(), and setIsEmbedded().
std::optional<bool> llvm::OpenMPIRBuilderConfig::IsTargetCodegen |
Flag for specifying if the compilation is done for an offloading target, like GPU.
Definition at line 91 of file OMPIRBuilder.h.
Referenced by isTargetCodegen(), and setIsTargetCodegen().
std::optional<bool> llvm::OpenMPIRBuilderConfig::OpenMPOffloadMandatory |
Definition at line 98 of file OMPIRBuilder.h.
Referenced by openMPOffloadMandatory().
std::optional<StringRef> llvm::OpenMPIRBuilderConfig::Separator |
Separator used between all of the rest consecutive parts of s name.
Definition at line 103 of file OMPIRBuilder.h.
Referenced by separator(), and setSeparator().