struct TargetOMPContext
Declaration
struct TargetOMPContext : public OMPContext { /* full declaration omitted */ };
Description
Clang specific specialization of the OMPContext to lookup target features.
Declared at: clang/include/clang/AST/OpenMPClause.h:8873
Inherits from: OMPContext
Member Variables
- private std::function<bool(StringRef)> FeatureValidityCheck
- private std::function<void(StringRef)> DiagUnknownTrait
- private llvm::StringMap<bool> FeatureMap
Inherited from OMPContext:
- public ActiveTraits = llvm::BitVector(unsigned int(TraitProperty::Last) + 1)
- public ConstructTraits
Method Overview
- public TargetOMPContext(clang::ASTContext & ASTCtx, std::function<void (StringRef)> && DiagUnknownTrait, const clang::FunctionDecl * CurrentFunctionDecl, ArrayRef<llvm::omp::TraitProperty> ConstructTraits)
- public bool matchesISATrait(llvm::StringRef RawString) const
- public virtual ~TargetOMPContext()
Inherited from OMPContext:
Methods
¶TargetOMPContext(
clang::ASTContext& ASTCtx,
std::function<void(StringRef)>&&
DiagUnknownTrait,
const clang::FunctionDecl*
CurrentFunctionDecl,
ArrayRef<llvm::omp::TraitProperty>
ConstructTraits)
TargetOMPContext(
clang::ASTContext& ASTCtx,
std::function<void(StringRef)>&&
DiagUnknownTrait,
const clang::FunctionDecl*
CurrentFunctionDecl,
ArrayRef<llvm::omp::TraitProperty>
ConstructTraits)
Declared at: clang/include/clang/AST/OpenMPClause.h:8874
Parameters
- clang::ASTContext& ASTCtx
- std::function<void(StringRef)>&& DiagUnknownTrait
- const clang::FunctionDecl* CurrentFunctionDecl
- ArrayRef<llvm::omp::TraitProperty> ConstructTraits
¶bool matchesISATrait(
llvm::StringRef RawString) const
bool matchesISATrait(
llvm::StringRef RawString) const
Description
See llvm::omp::OMPContext::matchesISATrait
Declared at: clang/include/clang/AST/OpenMPClause.h:8882
Parameters
- llvm::StringRef RawString
¶virtual ~TargetOMPContext()
virtual ~TargetOMPContext()
Declared at: clang/include/clang/AST/OpenMPClause.h:8879