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

References

gen/tools/clang/include/clang/AST/AttrImpl.inc
 6307 OMPAllocateDeclAttr *OMPAllocateDeclAttr::clone(ASTContext &C) const {
 6308   auto *A = new (C) OMPAllocateDeclAttr(C, *this, allocatorType, allocator);
 6308   auto *A = new (C) OMPAllocateDeclAttr(C, *this, allocatorType, allocator);
11808     return cast<OMPAllocateDeclAttr>(this)->getSpelling();
12388     return cast<OMPAllocateDeclAttr>(this)->clone(C);
12968     return cast<OMPAllocateDeclAttr>(this)->printPretty(OS, Policy);
gen/tools/clang/include/clang/AST/AttrNodeTraverse.inc
   99   void VisitOMPAllocateDeclAttr(const OMPAllocateDeclAttr *A) {
  100     const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
  100     const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
gen/tools/clang/include/clang/AST/AttrTextNodeDump.inc
  402   void VisitOMPAllocateDeclAttr(const OMPAllocateDeclAttr *A) {
  403     const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
  403     const auto *SA = cast<OMPAllocateDeclAttr>(A); (void)SA;
  405     case OMPAllocateDeclAttr::OMPDefaultMemAlloc:
  408     case OMPAllocateDeclAttr::OMPLargeCapMemAlloc:
  411     case OMPAllocateDeclAttr::OMPConstMemAlloc:
  414     case OMPAllocateDeclAttr::OMPHighBWMemAlloc:
  417     case OMPAllocateDeclAttr::OMPLowLatMemAlloc:
  420     case OMPAllocateDeclAttr::OMPCGroupMemAlloc:
  423     case OMPAllocateDeclAttr::OMPPTeamMemAlloc:
  426     case OMPAllocateDeclAttr::OMPThreadMemAlloc:
  429     case OMPAllocateDeclAttr::OMPUserDefinedMemAlloc:
gen/tools/clang/include/clang/AST/AttrVisitor.inc
  635   bool TraverseOMPAllocateDeclAttr(OMPAllocateDeclAttr *A);
  636   bool VisitOMPAllocateDeclAttr(OMPAllocateDeclAttr *A) {
 2671 bool VISITORCLASS<Derived>::TraverseOMPAllocateDeclAttr(OMPAllocateDeclAttr *A) {
 4268       return getDerived().TraverseOMPAllocateDeclAttr(cast<OMPAllocateDeclAttr>(A));
gen/tools/clang/include/clang/AST/Attrs.inc
 8337   static OMPAllocateDeclAttr *CreateImplicit(ASTContext &Ctx, AllocatorTypeTy AllocatorType, Expr * Allocator, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 8338     auto *A = new (Ctx) OMPAllocateDeclAttr(Ctx, CommonInfo, AllocatorType, Allocator);
 8338     auto *A = new (Ctx) OMPAllocateDeclAttr(Ctx, CommonInfo, AllocatorType, Allocator);
 8345   static OMPAllocateDeclAttr *Create(ASTContext &Ctx, AllocatorTypeTy AllocatorType, Expr * Allocator, const AttributeCommonInfo &CommonInfo = {SourceRange{}}) {
 8346     auto *A = new (Ctx) OMPAllocateDeclAttr(Ctx, CommonInfo, AllocatorType, Allocator);
 8346     auto *A = new (Ctx) OMPAllocateDeclAttr(Ctx, CommonInfo, AllocatorType, Allocator);
 8352   static OMPAllocateDeclAttr *CreateImplicit(ASTContext &Ctx, AllocatorTypeTy AllocatorType, Expr * Allocator, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 8356   static OMPAllocateDeclAttr *Create(ASTContext &Ctx, AllocatorTypeTy AllocatorType, Expr * Allocator, SourceRange Range, AttributeCommonInfo::Syntax Syntax) {
 8370   OMPAllocateDeclAttr *clone(ASTContext &C) const;
 8380       .Case("omp_default_mem_alloc", OMPAllocateDeclAttr::OMPDefaultMemAlloc)
 8381       .Case("omp_large_cap_mem_alloc", OMPAllocateDeclAttr::OMPLargeCapMemAlloc)
 8382       .Case("omp_const_mem_alloc", OMPAllocateDeclAttr::OMPConstMemAlloc)
 8383       .Case("omp_high_bw_mem_alloc", OMPAllocateDeclAttr::OMPHighBWMemAlloc)
 8384       .Case("omp_low_lat_mem_alloc", OMPAllocateDeclAttr::OMPLowLatMemAlloc)
 8385       .Case("omp_cgroup_mem_alloc", OMPAllocateDeclAttr::OMPCGroupMemAlloc)
 8386       .Case("omp_pteam_mem_alloc", OMPAllocateDeclAttr::OMPPTeamMemAlloc)
 8387       .Case("omp_thread_mem_alloc", OMPAllocateDeclAttr::OMPThreadMemAlloc)
 8388       .Case("", OMPAllocateDeclAttr::OMPUserDefinedMemAlloc)
 8399     case OMPAllocateDeclAttr::OMPDefaultMemAlloc: return "omp_default_mem_alloc";
 8400     case OMPAllocateDeclAttr::OMPLargeCapMemAlloc: return "omp_large_cap_mem_alloc";
 8401     case OMPAllocateDeclAttr::OMPConstMemAlloc: return "omp_const_mem_alloc";
 8402     case OMPAllocateDeclAttr::OMPHighBWMemAlloc: return "omp_high_bw_mem_alloc";
 8403     case OMPAllocateDeclAttr::OMPLowLatMemAlloc: return "omp_low_lat_mem_alloc";
 8404     case OMPAllocateDeclAttr::OMPCGroupMemAlloc: return "omp_cgroup_mem_alloc";
 8405     case OMPAllocateDeclAttr::OMPPTeamMemAlloc: return "omp_pteam_mem_alloc";
 8406     case OMPAllocateDeclAttr::OMPThreadMemAlloc: return "omp_thread_mem_alloc";
 8407     case OMPAllocateDeclAttr::OMPUserDefinedMemAlloc: return "";
gen/tools/clang/include/clang/Sema/AttrTemplateInstantiate.inc
  758       const auto *A = cast<OMPAllocateDeclAttr>(At);
  758       const auto *A = cast<OMPAllocateDeclAttr>(At);
gen/tools/clang/include/clang/Serialization/AttrPCHRead.inc
 1404     OMPAllocateDeclAttr::AllocatorTypeTy allocatorType(static_cast<OMPAllocateDeclAttr::AllocatorTypeTy>(Record.readInt()));
 1406     New = new (Context) OMPAllocateDeclAttr(Context, Info, allocatorType, allocator);
gen/tools/clang/include/clang/Serialization/AttrPCHWrite.inc
 1059     const auto *SA = cast<OMPAllocateDeclAttr>(A);
 1059     const auto *SA = cast<OMPAllocateDeclAttr>(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*,
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);
  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);
  117 inline SpecificAttr *getSpecificAttr(const Container& container) {
  118   specific_attr_iterator<SpecificAttr, Container> i =
  119       specific_attr_begin<SpecificAttr>(container);
  120   if (i != specific_attr_end<SpecificAttr>(container))
tools/clang/include/clang/AST/DeclBase.h
  538   template<typename T> T *getAttr() const {
  539     return hasAttrs() ? getSpecificAttr<T>(getAttrs()) : nullptr;
  543     return hasAttrs() && hasSpecificAttr<T>(getAttrs());
tools/clang/lib/CodeGen/Address.h
  108 template <class U> inline U cast(CodeGen::Address addr) {
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 9794   if (!VD || !VD->hasAttr<OMPAllocateDeclAttr>())
 9796   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 9796   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 9798   case OMPAllocateDeclAttr::OMPDefaultMemAlloc:
 9800   case OMPAllocateDeclAttr::OMPLargeCapMemAlloc:
 9801   case OMPAllocateDeclAttr::OMPCGroupMemAlloc:
 9802   case OMPAllocateDeclAttr::OMPHighBWMemAlloc:
 9803   case OMPAllocateDeclAttr::OMPLowLatMemAlloc:
 9804   case OMPAllocateDeclAttr::OMPThreadMemAlloc:
 9805   case OMPAllocateDeclAttr::OMPConstMemAlloc:
 9806   case OMPAllocateDeclAttr::OMPPTeamMemAlloc:
 9809   case OMPAllocateDeclAttr::OMPUserDefinedMemAlloc:
10972   if (!CVD->hasAttr<OMPAllocateDeclAttr>())
10974   const auto *AA = CVD->getAttr<OMPAllocateDeclAttr>();
10974   const auto *AA = CVD->getAttr<OMPAllocateDeclAttr>();
10976   if (AA->getAllocatorType() == OMPAllocateDeclAttr::OMPDefaultMemAlloc &&
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  327     if (VD->hasAttrs() && VD->hasAttr<OMPAllocateDeclAttr>())
 4736   if (VD && VD->hasAttr<OMPAllocateDeclAttr>()) {
 4737     const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 4737     const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 4741     case OMPAllocateDeclAttr::OMPDefaultMemAlloc:
 4742     case OMPAllocateDeclAttr::OMPThreadMemAlloc:
 4743     case OMPAllocateDeclAttr::OMPHighBWMemAlloc:
 4744     case OMPAllocateDeclAttr::OMPLowLatMemAlloc:
 4747     case OMPAllocateDeclAttr::OMPUserDefinedMemAlloc:
 4750     case OMPAllocateDeclAttr::OMPConstMemAlloc: {
 4762     case OMPAllocateDeclAttr::OMPPTeamMemAlloc: {
 4774     case OMPAllocateDeclAttr::OMPLargeCapMemAlloc:
 4775     case OMPAllocateDeclAttr::OMPCGroupMemAlloc: {
 4903   if (!VD || !VD->hasAttr<OMPAllocateDeclAttr>())
 4905   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 4905   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 4907   case OMPAllocateDeclAttr::OMPDefaultMemAlloc:
 4909   case OMPAllocateDeclAttr::OMPThreadMemAlloc:
 4910   case OMPAllocateDeclAttr::OMPLargeCapMemAlloc:
 4911   case OMPAllocateDeclAttr::OMPCGroupMemAlloc:
 4912   case OMPAllocateDeclAttr::OMPHighBWMemAlloc:
 4913   case OMPAllocateDeclAttr::OMPLowLatMemAlloc:
 4916   case OMPAllocateDeclAttr::OMPConstMemAlloc:
 4919   case OMPAllocateDeclAttr::OMPPTeamMemAlloc:
 4922   case OMPAllocateDeclAttr::OMPUserDefinedMemAlloc:
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  769           (!VD || !VD->hasAttr<OMPAllocateDeclAttr>())) {
  779           (!VD || !VD->hasAttr<OMPAllocateDeclAttr>())) {
tools/clang/lib/Sema/SemaOpenMP.cpp
  261   Expr *OMPPredefinedAllocators[OMPAllocateDeclAttr::OMPUserDefinedMemAlloc] = {
  274   void setAllocator(OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind,
  279   Expr *getAllocator(OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind) const {
 2503 static OMPAllocateDeclAttr::AllocatorTypeTy
 2506     return OMPAllocateDeclAttr::OMPDefaultMemAlloc;
 2510     return OMPAllocateDeclAttr::OMPUserDefinedMemAlloc;
 2511   auto AllocatorKindRes = OMPAllocateDeclAttr::OMPUserDefinedMemAlloc;
 2513   for (int I = OMPAllocateDeclAttr::OMPDefaultMemAlloc;
 2514        I < OMPAllocateDeclAttr::OMPUserDefinedMemAlloc; ++I) {
 2530     OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind, Expr *Allocator) {
 2531   if (!VD->hasAttr<OMPAllocateDeclAttr>())
 2533   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 2533   const auto *A = VD->getAttr<OMPAllocateDeclAttr>();
 2535   OMPAllocateDeclAttr::AllocatorTypeTy PrevAllocatorKind =
 2539       AllocatorKind == OMPAllocateDeclAttr::OMPUserDefinedMemAlloc &&
 2580                           OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind,
 2582   if (VD->hasAttr<OMPAllocateDeclAttr>())
 2589   auto *A = OMPAllocateDeclAttr::CreateImplicit(S.Context, AllocatorKind,
 2589   auto *A = OMPAllocateDeclAttr::CreateImplicit(S.Context, AllocatorKind,
 2612   OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind =
 2637       if (AllocatorKind == OMPAllocateDeclAttr::OMPUserDefinedMemAlloc) {
 4199     OMPAllocateDeclAttr::AllocatorTypeTy AllocatorKind =
 4205     if (AllocatorKind == OMPAllocateDeclAttr::OMPThreadMemAlloc &&
11212   for (int I = OMPAllocateDeclAttr::OMPDefaultMemAlloc;
11213        I < OMPAllocateDeclAttr::OMPUserDefinedMemAlloc; ++I) {
11216         OMPAllocateDeclAttr::ConvertAllocatorTypeTyToStr(AllocatorKind);
tools/clang/lib/Serialization/ASTReaderDecl.cpp
 4495       D->addAttr(OMPAllocateDeclAttr::CreateImplicit(
tools/clang/lib/Serialization/ASTWriter.cpp
 5391         auto *A = D->getAttr<OMPAllocateDeclAttr>();
 5391         auto *A = D->getAttr<OMPAllocateDeclAttr>();
usr/include/c++/7.4.0/type_traits
 1558     { typedef _Tp     type; };
 1580     { typedef _Tp const     type; };