reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

gen/tools/clang/include/clang/AST/AttrImpl.inc
 6414 OMPDeclareVariantAttr *OMPDeclareVariantAttr::clone(ASTContext &C) const {
 6415   auto *A = new (C) OMPDeclareVariantAttr(C, *this, variantFuncRef, score, ctxSelectorSet, ctxScore, ctxSelector, implVendors_, implVendors_Size);
 6415   auto *A = new (C) OMPDeclareVariantAttr(C, *this, variantFuncRef, score, ctxSelectorSet, ctxScore, ctxSelector, implVendors_, implVendors_Size);
11818     return cast<OMPDeclareVariantAttr>(this)->getSpelling();
12398     return cast<OMPDeclareVariantAttr>(this)->clone(C);
12978     return cast<OMPDeclareVariantAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrNodeTraverse.inc
  117   void VisitOMPDeclareVariantAttr(const OMPDeclareVariantAttr *A) {
  118     const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
  118     const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc
  476   void VisitOMPDeclareVariantAttr(const OMPDeclareVariantAttr *A) {
  477     const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
  477     const auto *SA = cast<OMPDeclareVariantAttr>(A); (void)SA;
  479     case OMPDeclareVariantAttr::CtxSetUnknown:
  482     case OMPDeclareVariantAttr::CtxSetImplementation:
  487     case OMPDeclareVariantAttr::ScoreUnknown:
  490     case OMPDeclareVariantAttr::ScoreSpecified:
  495     case OMPDeclareVariantAttr::CtxUnknown:
  498     case OMPDeclareVariantAttr::CtxVendor:
gen/tools/clang/include/clang/AST/AttrVisitor.inc
  655   bool TraverseOMPDeclareVariantAttr(OMPDeclareVariantAttr *A);
  656   bool VisitOMPDeclareVariantAttr(OMPDeclareVariantAttr *A) {
 2760 bool VISITORCLASS<Derived>::TraverseOMPDeclareVariantAttr(OMPDeclareVariantAttr *A) {
 4278       return getDerived().TraverseOMPDeclareVariantAttr(cast<OMPDeclareVariantAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc
 8902   static OMPDeclareVariantAttr *CreateImplicit(ASTContext &Ctx, Expr * VariantFuncRef, Expr * Score, CtxSelectorSetType CtxSelectorSet, ScoreType CtxScore, CtxSelectorType CtxSelector, StringRef *ImplVendors, unsigned ImplVendorsSize, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 8903     auto *A = new (Ctx) OMPDeclareVariantAttr(Ctx, CommonInfo, VariantFuncRef, Score, CtxSelectorSet, CtxScore, CtxSelector, ImplVendors, ImplVendorsSize);
 8903     auto *A = new (Ctx) OMPDeclareVariantAttr(Ctx, CommonInfo, VariantFuncRef, Score, CtxSelectorSet, CtxScore, CtxSelector, ImplVendors, ImplVendorsSize);
 8910   static OMPDeclareVariantAttr *Create(ASTContext &Ctx, Expr * VariantFuncRef, Expr * Score, CtxSelectorSetType CtxSelectorSet, ScoreType CtxScore, CtxSelectorType CtxSelector, StringRef *ImplVendors, unsigned ImplVendorsSize, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 8911     auto *A = new (Ctx) OMPDeclareVariantAttr(Ctx, CommonInfo, VariantFuncRef, Score, CtxSelectorSet, CtxScore, CtxSelector, ImplVendors, ImplVendorsSize);
 8911     auto *A = new (Ctx) OMPDeclareVariantAttr(Ctx, CommonInfo, VariantFuncRef, Score, CtxSelectorSet, CtxScore, CtxSelector, ImplVendors, ImplVendorsSize);
 8917   static OMPDeclareVariantAttr *CreateImplicit(ASTContext &Ctx, Expr * VariantFuncRef, Expr * Score, CtxSelectorSetType CtxSelectorSet, ScoreType CtxScore, CtxSelectorType CtxSelector, StringRef *ImplVendors, unsigned ImplVendorsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 8921   static OMPDeclareVariantAttr *Create(ASTContext &Ctx, Expr * VariantFuncRef, Expr * Score, CtxSelectorSetType CtxSelectorSet, ScoreType CtxScore, CtxSelectorType CtxSelector, StringRef *ImplVendors, unsigned ImplVendorsSize, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 8969   OMPDeclareVariantAttr *clone(ASTContext &C) const;
 8987       .Case("", OMPDeclareVariantAttr::CtxSetUnknown)
 8988       .Case("implementation", OMPDeclareVariantAttr::CtxSetImplementation)
 8999     case OMPDeclareVariantAttr::CtxSetUnknown: return "";
 9000     case OMPDeclareVariantAttr::CtxSetImplementation: return "implementation";
 9010       .Case("", OMPDeclareVariantAttr::ScoreUnknown)
 9011       .Case("score", OMPDeclareVariantAttr::ScoreSpecified)
 9022     case OMPDeclareVariantAttr::ScoreUnknown: return "";
 9023     case OMPDeclareVariantAttr::ScoreSpecified: return "score";
 9033       .Case("", OMPDeclareVariantAttr::CtxUnknown)
 9034       .Case("vendor", OMPDeclareVariantAttr::CtxVendor)
 9045     case OMPDeclareVariantAttr::CtxUnknown: return "";
 9046     case OMPDeclareVariantAttr::CtxVendor: return "vendor";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc
  778       const auto *A = cast<OMPDeclareVariantAttr>(At);
  778       const auto *A = cast<OMPDeclareVariantAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
 1479     OMPDeclareVariantAttr::CtxSelectorSetType ctxSelectorSet(static_cast<OMPDeclareVariantAttr::CtxSelectorSetType>(Record.readInt()));
 1480     OMPDeclareVariantAttr::ScoreType ctxScore(static_cast<OMPDeclareVariantAttr::ScoreType>(Record.readInt()));
 1481     OMPDeclareVariantAttr::CtxSelectorType ctxSelector(static_cast<OMPDeclareVariantAttr::CtxSelectorType>(Record.readInt()));
 1491     New = new (Context) OMPDeclareVariantAttr(Context, Info, variantFuncRef, score, ctxSelectorSet, ctxScore, ctxSelector, implVendors.data(), implVendorsSize);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc
 1112     const auto *SA = cast<OMPDeclareVariantAttr>(A);
 1112     const auto *SA = cast<OMPDeclareVariantAttr>(A);
include/llvm/ADT/STLExtras.h
   75       typename std::add_pointer<typename std::add_const<T>::type>::type;
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
tools/clang/include/clang/AST/AttrIterator.h
   47     while (!isa<SpecificAttr>(*Current))
   52     while (Current != I && !isa<SpecificAttr>(*Current))
   57   using value_type = SpecificAttr *;
   58   using reference = SpecificAttr *;
   59   using pointer = SpecificAttr *;
   68     return cast<SpecificAttr>(*Current);
   72     return cast<SpecificAttr>(*Current);
  101 inline specific_attr_iterator<SpecificAttr, Container>
  106 inline specific_attr_iterator<SpecificAttr, Container>
  113   return specific_attr_begin<SpecificAttr>(container) !=
  114           specific_attr_end<SpecificAttr>(container);
tools/clang/include/clang/AST/DeclBase.h
  524   llvm::iterator_range<specific_attr_iterator<T>> specific_attrs() const {
  525     return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
  525     return llvm::make_range(specific_attr_begin<T>(), specific_attr_end<T>());
  529   specific_attr_iterator<T> specific_attr_begin() const {
  534   specific_attr_iterator<T> specific_attr_end() const {
  543     return hasAttrs() && hasSpecificAttr<T>(getAttrs());
tools/clang/include/clang/Sema/Sema.h
 9311     OMPDeclareVariantAttr::CtxSelectorSetType CtxSet =
 9312         OMPDeclareVariantAttr::CtxSetUnknown;
 9313     OMPDeclareVariantAttr::CtxSelectorType Ctx =
 9314         OMPDeclareVariantAttr::CtxUnknown;
 9319         OMPDeclareVariantAttr::CtxSelectorSetType CtxSet,
 9320         OMPDeclareVariantAttr::CtxSelectorType Ctx,
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
11024 static bool checkContext(const OMPDeclareVariantAttr *A) {
11034 bool checkContext<OMPDeclareVariantAttr::CtxSetImplementation,
11035                   OMPDeclareVariantAttr::CtxVendor>(
11036     const OMPDeclareVariantAttr *A) {
11058     : public std::greater<const OMPDeclareVariantAttr *> {
11064   bool operator()(const OMPDeclareVariantAttr *LHS,
11065                   const OMPDeclareVariantAttr *RHS) const {
11068     if (LHS->getCtxScore() == OMPDeclareVariantAttr::ScoreSpecified)
11070     if (RHS->getCtxScore() == OMPDeclareVariantAttr::ScoreSpecified)
11081   if (!FD->hasAttrs() || !FD->hasAttr<OMPDeclareVariantAttr>())
11088     if (LHS->getCtxScore() == OMPDeclareVariantAttr::ScoreSpecified)
11090     if (RHS->getCtxScore() == OMPDeclareVariantAttr::ScoreSpecified)
11094   const OMPDeclareVariantAttr *TopMostAttr = nullptr;
11095   for (const auto *A : FD->specific_attrs<OMPDeclareVariantAttr>()) {
11095   for (const auto *A : FD->specific_attrs<OMPDeclareVariantAttr>()) {
11096     const OMPDeclareVariantAttr *SelectedAttr = nullptr;
11098     case OMPDeclareVariantAttr::CtxSetImplementation:
11100       case OMPDeclareVariantAttr::CtxVendor:
11101         if (checkContext<OMPDeclareVariantAttr::CtxSetImplementation,
11102                          OMPDeclareVariantAttr::CtxVendor>(A))
11105       case OMPDeclareVariantAttr::CtxUnknown:
11110     case OMPDeclareVariantAttr::CtxSetUnknown:
tools/clang/lib/Parse/ParseOpenMP.cpp
  801   OMPDeclareVariantAttr::ScoreType ScoreKind =
  802       OMPDeclareVariantAttr::ScoreUnknown;
  803   (void)OMPDeclareVariantAttr::ConvertStrToScoreType(SelectorName, ScoreKind);
  804   if (ScoreKind == OMPDeclareVariantAttr::ScoreUnknown)
  850   OMPDeclareVariantAttr::CtxSelectorType CSKind =
  851       OMPDeclareVariantAttr::CtxUnknown;
  852   (void)OMPDeclareVariantAttr::ConvertStrToCtxSelectorType(CtxSelectorName,
  856   case OMPDeclareVariantAttr::CtxVendor: {
  889           OMPDeclareVariantAttr::CtxSetImplementation, CSKind,
  896   case OMPDeclareVariantAttr::CtxUnknown:
  952       OMPDeclareVariantAttr::CtxSelectorSetType CSSKind =
  953           OMPDeclareVariantAttr::CtxSetUnknown;
  954       (void)OMPDeclareVariantAttr::ConvertStrToCtxSelectorSetType(
  959         case OMPDeclareVariantAttr::CtxSetImplementation:
  962         case OMPDeclareVariantAttr::CtxSetUnknown:
tools/clang/lib/Sema/SemaOpenMP.cpp
 5096   if (NewFD->hasAttrs() && NewFD->hasAttr<OMPDeclareVariantAttr>()) {
 5101         NewFD->specific_attr_begin<OMPDeclareVariantAttr>()->getRange();
 5174   if (Data.CtxSet == OMPDeclareVariantAttr::CtxSetUnknown ||
 5175       Data.Ctx == OMPDeclareVariantAttr::CtxUnknown)
 5178   OMPDeclareVariantAttr::ScoreType ST = OMPDeclareVariantAttr::ScoreUnknown;
 5178   OMPDeclareVariantAttr::ScoreType ST = OMPDeclareVariantAttr::ScoreUnknown;
 5180     ST = OMPDeclareVariantAttr::ScoreSpecified;
 5191   auto *NewAttr = OMPDeclareVariantAttr::CreateImplicit(
 5191   auto *NewAttr = OMPDeclareVariantAttr::CreateImplicit(
 5203     for (OMPDeclareVariantAttr *A :
 5204          Func->specific_attrs<OMPDeclareVariantAttr>()) {
tools/clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
  354     const OMPDeclareVariantAttr &Attr, Decl *New) {
  569     if (const auto *OMPAttr = dyn_cast<OMPDeclareVariantAttr>(TmplAttr)) {
  569     if (const auto *OMPAttr = dyn_cast<OMPDeclareVariantAttr>(TmplAttr)) {
usr/include/c++/7.4.0/type_traits
 1558     { typedef _Tp     type; };
 1580     { typedef _Tp const     type; };