llvm::omp::getOpenMPContextTraitSelectorKind

Parse Str and return the trait set it matches or TraitSelector::invalid.

Synopsis

Declared in <llvm/Frontend/OpenMP/OMPContext.h>

TraitSelector
getOpenMPContextTraitSelectorKind(
    StringRef Str,
    TraitSet Set);

Return Value

The matching TraitSelector, or TraitSelector::invalid if none matches.

Parameters

NameDescription
StrTrait selector name to parse.
SetTrait set that scopes the selector lookup.