struct OMPContext
Declaration
struct OMPContext { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:157
Member Variables
- public llvm::BitVector ActiveTraits = llvm::BitVector(unsigned int(TraitProperty::Last) + 1)
- public SmallVector<llvm::omp::TraitProperty, 8> ConstructTraits
Method Overview
- public OMPContext(bool IsDeviceCompilation, llvm::Triple TargetTriple)
- public void addTrait(llvm::omp::TraitProperty Property)
- public void addTrait(llvm::omp::TraitSet Set, llvm::omp::TraitProperty Property)
- public virtual bool matchesISATrait(llvm::StringRef) const
- public virtual ~OMPContext()
Methods
¶OMPContext(bool IsDeviceCompilation,
llvm::Triple TargetTriple)
OMPContext(bool IsDeviceCompilation,
llvm::Triple TargetTriple)
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:158
Parameters
- bool IsDeviceCompilation
- llvm::Triple TargetTriple
¶void addTrait(llvm::omp::TraitProperty Property)
void addTrait(llvm::omp::TraitProperty Property)
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:161
Parameters
- llvm::omp::TraitProperty Property
¶void addTrait(llvm::omp::TraitSet Set,
llvm::omp::TraitProperty Property)
void addTrait(llvm::omp::TraitSet Set,
llvm::omp::TraitProperty Property)
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:164
Parameters
- llvm::omp::TraitSet Set
- llvm::omp::TraitProperty Property
¶virtual bool matchesISATrait(
llvm::StringRef) const
virtual bool matchesISATrait(
llvm::StringRef) const
Description
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.
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:173
Parameters
¶virtual ~OMPContext()
virtual ~OMPContext()
Declared at: llvm/include/llvm/Frontend/OpenMP/OMPContext.h:159