Lines Matching defs:GD
99 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
456 void mangle(GlobalDecl GD);
461 void mangleFunctionEncoding(GlobalDecl GD);
463 void mangleName(GlobalDecl GD);
509 void mangleNameWithAbiTags(GlobalDecl GD,
514 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC,
516 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), DC,
519 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
522 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
524 void mangleUnscopedTemplateName(GlobalDecl GD, const DeclContext *DC,
531 void mangleLocalName(GlobalDecl GD,
542 void mangleNestedName(GlobalDecl GD, const DeclContext *DC,
547 void mangleNestedNameWithClosurePrefix(GlobalDecl GD,
553 void mangleTemplatePrefix(GlobalDecl GD, bool NoFunction=false);
818 void CXXNameMangler::mangle(GlobalDecl GD) {
823 if (isa<FunctionDecl>(GD.getDecl()))
824 mangleFunctionEncoding(GD);
826 BindingDecl>(GD.getDecl()))
827 mangleName(GD);
829 dyn_cast<IndirectFieldDecl>(GD.getDecl()))
835 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) {
836 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
841 mangleName(GD);
856 mangleName(GD);
981 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) {
982 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
987 return GD.getWithDecl(TD);
995 return GD.getWithDecl(Spec->getSpecializedTemplate());
1002 return GD.getWithDecl(Spec->getSpecializedTemplate());
1008 static TemplateName asTemplateName(GlobalDecl GD) {
1009 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl());
1013 void CXXNameMangler::mangleName(GlobalDecl GD) {
1014 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1043 mangleNameWithAbiTags(GD, nullptr);
1058 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD,
1060 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1078 mangleLocalName(GD, AdditionalAbiTags);
1087 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags);
1092 mangleLocalName(GD, AdditionalAbiTags);
1099 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1105 mangleUnscopedName(GD, DC, AdditionalAbiTags);
1109 mangleNestedName(GD, DC, AdditionalAbiTags);
1161 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
1169 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1187 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
1191 GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags) {
1192 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
1204 mangleUnscopedName(GD, DC, AdditionalAbiTags);
1206 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), DC,
1483 GlobalDecl GD, DeclarationName Name, const DeclContext *DC,
1485 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl());
1524 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) {
1529 Context.mangleMSGuidDecl(GD, GUIDOS);
1564 GD.getKernelReferenceKind() == KernelReferenceKind::Stub;
1791 void CXXNameMangler::mangleNestedName(GlobalDecl GD,
1795 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
1815 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) {
1820 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
1838 GlobalDecl GD, const NamedDecl *PrefixND,
1849 mangleUnqualifiedName(GD, nullptr, AdditionalAbiTags);
1855 GlobalDecl GD;
1861 GD = GlobalDecl(CD, Ctor_Complete);
1863 GD = GlobalDecl(DD, Dtor_Complete);
1865 GD = GlobalDecl(cast<FunctionDecl>(DC));
1866 return GD;
1869 void CXXNameMangler::mangleLocalName(GlobalDecl GD,
1871 const Decl *D = GD.getDecl();
1937 mangleNestedName(GD, Context.getEffectiveDeclContext(ND),
1958 mangleUnqualifiedName(GD, DC, AdditionalAbiTags);
2276 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD,
2278 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl());
2295 mangleUnqualifiedName(GD, DC, nullptr);
2297 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), DC,
7196 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD,
7198 const NamedDecl *D = cast<NamedDecl>(GD.getDecl());
7207 auto Type = GD.getCtorType();
7213 auto Type = GD.getDtorType();
7219 Mangler.mangle(GD);