Lines Matching defs:GD
101 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
458 void mangle(GlobalDecl GD);
463 void mangleFunctionEncoding(GlobalDecl GD);
465 void mangleName(GlobalDecl GD);
510 void mangleNameWithAbiTags(GlobalDecl GD,
515 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC,
517 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), DC,
520 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
523 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
525 void mangleUnscopedTemplateName(GlobalDecl GD, const DeclContext *DC,
532 void mangleLocalName(GlobalDecl GD,
543 void mangleNestedName(GlobalDecl GD, const DeclContext *DC,
548 void mangleNestedNameWithClosurePrefix(GlobalDecl GD,
554 void mangleTemplatePrefix(GlobalDecl GD, bool NoFunction=false);
815 void CXXNameMangler::mangle(GlobalDecl GD) {
820 if (isa<FunctionDecl>(GD.getDecl()))
821 mangleFunctionEncoding(GD);
823 BindingDecl>(GD.getDecl()))
824 mangleName(GD);
826 dyn_cast<IndirectFieldDecl>(GD.getDecl()))
832 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) {
833 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
838 mangleName(GD);
853 mangleName(GD);
978 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) {
979 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
984 return GD.getWithDecl(TD);
992 return GD.getWithDecl(Spec->getSpecializedTemplate());
999 return GD.getWithDecl(Spec->getSpecializedTemplate());
1005 static TemplateName asTemplateName(GlobalDecl GD) {
1006 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl());
1010 void CXXNameMangler::mangleName(GlobalDecl GD) {
1011 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1040 mangleNameWithAbiTags(GD, nullptr);
1055 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD,
1057 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1075 mangleLocalName(GD, AdditionalAbiTags);
1084 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags);
1089 mangleLocalName(GD, AdditionalAbiTags);
1096 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1102 mangleUnscopedName(GD, DC, AdditionalAbiTags);
1106 mangleNestedName(GD, DC, AdditionalAbiTags);
1158 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
1167 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
1171 GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags) {
1172 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
1184 mangleUnscopedName(GD, DC, AdditionalAbiTags);
1186 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), DC,
1463 GlobalDecl GD, DeclarationName Name, const DeclContext *DC,
1465 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl());
1504 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) {
1509 Context.mangleMSGuidDecl(GD, GUIDOS);
1544 GD.getKernelReferenceKind() == KernelReferenceKind::Stub;
1771 void CXXNameMangler::mangleNestedName(GlobalDecl GD,
1775 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1795 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1800 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
1818 GlobalDecl GD, const NamedDecl *PrefixND,
1829 mangleUnqualifiedName(GD, nullptr, AdditionalAbiTags);
1835 GlobalDecl GD;
1841 GD = GlobalDecl(CD, Ctor_Complete);
1843 GD = GlobalDecl(DD, Dtor_Complete);
1845 GD = GlobalDecl(cast<FunctionDecl>(DC));
1846 return GD;
1849 void CXXNameMangler::mangleLocalName(GlobalDecl GD,
1851 const Decl *D = GD.getDecl();
1917 mangleNestedName(GD, Context.getEffectiveDeclContext(ND),
1938 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
2256 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD,
2258 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
2275 mangleUnqualifiedName(GD, DC, nullptr);
2277 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), DC,
7016 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD,
7018 const NamedDecl *D = cast<NamedDecl>(GD.getDecl());
7027 auto Type = GD.getCtorType();
7033 auto Type = GD.getDtorType();
7039 Mangler.mangle(GD);