Home | History | Annotate | Download | only in AST

Lines Matching refs:GD

153   void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
462 void mangle(GlobalDecl GD);
467 void mangleFunctionEncoding(GlobalDecl GD);
469 void mangleName(GlobalDecl GD);
506 void mangleNameWithAbiTags(GlobalDecl GD,
513 void mangleUnqualifiedName(GlobalDecl GD,
515 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), UnknownArity,
518 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
521 void mangleUnscopedName(GlobalDecl GD,
523 void mangleUnscopedTemplateName(GlobalDecl GD,
530 void mangleLocalName(GlobalDecl GD,
536 void mangleNestedName(GlobalDecl GD, const DeclContext *DC,
542 void mangleNestedNameWithClosurePrefix(GlobalDecl GD,
548 void mangleTemplatePrefix(GlobalDecl GD, bool NoFunction=false);
729 void CXXNameMangler::mangle(GlobalDecl GD) {
734 if (isa<FunctionDecl>(GD.getDecl()))
735 mangleFunctionEncoding(GD);
737 BindingDecl>(GD.getDecl()))
738 mangleName(GD);
740 dyn_cast<IndirectFieldDecl>(GD.getDecl()))
746 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) {
747 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
752 mangleName(GD);
759 mangleName(GD);
888 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) {
889 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
894 return GD.getWithDecl(TD);
902 return GD.getWithDecl(Spec->getSpecializedTemplate());
909 return GD.getWithDecl(Spec->getSpecializedTemplate());
915 static TemplateName asTemplateName(GlobalDecl GD) {
916 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl());
920 void CXXNameMangler::mangleName(GlobalDecl GD) {
921 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
950 mangleNameWithAbiTags(GD, nullptr);
954 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD,
956 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
972 mangleLocalName(GD, AdditionalAbiTags);
979 mangleLocalName(GD, AdditionalAbiTags);
994 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags);
1001 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1007 mangleUnscopedName(GD, AdditionalAbiTags);
1011 mangleNestedName(GD, DC, AdditionalAbiTags);
1062 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD,
1064 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1071 mangleUnqualifiedName(GD, AdditionalAbiTags);
1075 GlobalDecl GD, const AbiTagList *AdditionalAbiTags) {
1076 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
1088 mangleUnscopedName(GD, AdditionalAbiTags);
1090 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), AdditionalAbiTags);
1366 void CXXNameMangler::mangleUnqualifiedName(GlobalDecl GD,
1370 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl());
1396 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) {
1401 Context.mangleMSGuidDecl(GD, GUIDOS);
1437 GD.getKernelReferenceKind() == KernelReferenceKind::Stub;
1647 void CXXNameMangler::mangleNestedName(GlobalDecl GD,
1651 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1669 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1674 mangleUnqualifiedName(GD, AdditionalAbiTags);
1693 GlobalDecl GD, const NamedDecl *PrefixND,
1704 mangleUnqualifiedName(GD, AdditionalAbiTags);
1710 GlobalDecl GD;
1716 GD = GlobalDecl(CD, Ctor_Complete);
1718 GD = GlobalDecl(DD, Dtor_Complete);
1720 GD = GlobalDecl(cast<FunctionDecl>(DC));
1721 return GD;
1724 void CXXNameMangler::mangleLocalName(GlobalDecl GD,
1726 const Decl *D = GD.getDecl();
1792 mangleNestedName(GD, getEffectiveDeclContext(ND), AdditionalAbiTags,
1813 mangleUnqualifiedName(GD, AdditionalAbiTags);
2078 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD,
2080 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
2096 mangleUnqualifiedName(GD, nullptr);
2098 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), nullptr);
6148 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD,
6150 const NamedDecl *D = cast<NamedDecl>(GD.getDecl());
6159 auto Type = GD
6165 auto Type = GD.getDtorType();
6171 Mangler.mangle(GD);