|
LLVM 24.0.0git
|
The context for a source location is made up of active property traits, e.g., device={kind(host)}, and constructs traits which describe the nesting in OpenMP constructs at the location. More...
#include "llvm/Frontend/OpenMP/OMPContext.h"
Public Member Functions | |
| LLVM_ABI | OMPContext (bool IsDeviceCompilation, Triple TargetTriple, Triple TargetOffloadTriple, int DeviceNum) |
| virtual | ~OMPContext ()=default |
| void | addTrait (TraitProperty Property) |
| void | addTrait (TraitSet Set, TraitProperty Property) |
| virtual bool | matchesISATrait (StringRef) const |
| Hook for users to check if an ISA trait matches. | |
Public Attributes | |
| BitVector | ActiveTraits = BitVector(unsigned(TraitProperty::Last) + 1) |
| SmallVector< TraitProperty, 8 > | ConstructTraits |
The context for a source location is made up of active property traits, e.g., device={kind(host)}, and constructs traits which describe the nesting in OpenMP constructs at the location.
Definition at line 172 of file OMPContext.h.
| OMPContext::OMPContext | ( | bool | IsDeviceCompilation, |
| Triple | TargetTriple, | ||
| Triple | TargetOffloadTriple, | ||
| int | DeviceNum ) |
Definition at line 27 of file OMPContext.cpp.
References llvm::Triple::aarch64, llvm::Triple::aarch64_32, llvm::Triple::aarch64_be, ActiveTraits, llvm::Triple::amdgpu, llvm::Triple::arm, llvm::Triple::armeb, llvm::dbgs(), DEBUG_TYPE, llvm::Triple::getArch(), llvm::omp::getOpenMPContextTraitPropertyFullName(), llvm::Triple::getTriple(), LLVM_DEBUG, llvm::Triple::mips, llvm::Triple::mips64, llvm::Triple::mips64el, llvm::Triple::mipsel, llvm::Triple::nvptx, llvm::Triple::nvptx64, llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::ppc64le, llvm::Triple::ppcle, llvm::Triple::spirv64, llvm::Triple::systemz, llvm::Triple::x86, and llvm::Triple::x86_64.
|
virtualdefault |
|
inline |
Definition at line 177 of file OMPContext.h.
References addTrait(), and llvm::omp::getOpenMPContextTraitSetForProperty().
Referenced by addTrait().
|
inline |
Definition at line 180 of file OMPContext.h.
References ActiveTraits, and ConstructTraits.
Hook for users to check if an ISA trait matches.
The trait is described as the string that got parsed and it depends on the target and context if this matches or not.
Definition at line 195 of file OMPContext.h.
Definition at line 197 of file OMPContext.h.
Referenced by addTrait(), and OMPContext().
| SmallVector<TraitProperty, 8> llvm::omp::OMPContext::ConstructTraits |
Definition at line 198 of file OMPContext.h.
Referenced by addTrait().