LLVM: llvm::omp::OMPContext Struct Reference (original) (raw)

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](OMPContext%5F8h%5Fsource.html)"

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.

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 164 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::amdgcn, 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.

~OMPContext()

virtual llvm::omp::OMPContext::~OMPContext ( ) virtualdefault

addTrait() [1/2]

void llvm::omp::OMPContext::addTrait ( TraitProperty Property) inline

addTrait() [2/2]

matchesISATrait()

virtual bool llvm::omp::OMPContext::matchesISATrait ( StringRef ) const inlinevirtual

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 181 of file OMPContext.h.

ActiveTraits

ConstructTraits


The documentation for this struct was generated from the following files: