LLVM 20.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 | |
OMPContext (bool IsDeviceCompilation, Triple TargetTriple) | |
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 157 of file OMPContext.h.
Definition at line 27 of file OMPContext.cpp.
References llvm::Triple::aarch64, llvm::Triple::aarch64_32, llvm::Triple::aarch64_be, ActiveTraits, llvm::Triple::amdgcn, llvm::Triple::arm, llvm::Triple::armeb, llvm::dbgs(), DEBUG_TYPE, llvm::Triple::getArch(), llvm::omp::getOpenMPContextTraitPropertyFullName(), LLVM_DEBUG, llvm::Triple::loongarch64, 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::BitVector::set(), llvm::BitVector::set_bits(), llvm::Triple::systemz, llvm::Triple::x86, and llvm::Triple::x86_64.
|
virtualdefault |
|
inline |
Definition at line 161 of file OMPContext.h.
References addTrait(), and llvm::omp::getOpenMPContextTraitSetForProperty().
Referenced by addTrait().
|
inline |
Definition at line 164 of file OMPContext.h.
References ActiveTraits, ConstructTraits, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::BitVector::set().
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 173 of file OMPContext.h.
Definition at line 175 of file OMPContext.h.
Referenced by addTrait(), isVariantApplicableInContextHelper(), and OMPContext().
SmallVector<TraitProperty, 8> llvm::omp::OMPContext::ConstructTraits |
Definition at line 176 of file OMPContext.h.
Referenced by addTrait(), and isVariantApplicableInContextHelper().