Lines Matching refs:GD
99 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
433 void mangle(GlobalDecl GD);
438 void mangleFunctionEncoding(GlobalDecl GD);
440 void mangleName(GlobalDecl GD);
484 void mangleNameWithAbiTags(GlobalDecl GD,
489 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC, in mangleUnqualifiedName() argument
491 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), DC, in mangleUnqualifiedName()
494 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
497 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
499 void mangleUnscopedTemplateName(GlobalDecl GD, const DeclContext *DC,
506 void mangleLocalName(GlobalDecl GD,
512 void mangleNestedName(GlobalDecl GD, const DeclContext *DC,
517 void mangleNestedNameWithClosurePrefix(GlobalDecl GD,
523 void mangleTemplatePrefix(GlobalDecl GD, bool NoFunction=false);
771 void CXXNameMangler::mangle(GlobalDecl GD) { in mangle() argument
776 if (isa<FunctionDecl>(GD.getDecl())) in mangle()
777 mangleFunctionEncoding(GD); in mangle()
779 BindingDecl>(GD.getDecl())) in mangle()
780 mangleName(GD); in mangle()
782 dyn_cast<IndirectFieldDecl>(GD.getDecl())) in mangle()
788 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) { in mangleFunctionEncoding() argument
789 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in mangleFunctionEncoding()
794 mangleName(GD); in mangleFunctionEncoding()
801 mangleName(GD); in mangleFunctionEncoding()
921 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
922 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in isTemplate()
927 return GD.getWithDecl(TD); in isTemplate()
935 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
942 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
948 static TemplateName asTemplateName(GlobalDecl GD) { in asTemplateName() argument
949 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl()); in asTemplateName()
953 void CXXNameMangler::mangleName(GlobalDecl GD) { in mangleName() argument
954 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleName()
983 mangleNameWithAbiTags(GD, nullptr); in mangleName()
998 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD, in mangleNameWithAbiTags() argument
1000 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNameWithAbiTags()
1016 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1023 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1030 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags); in mangleNameWithAbiTags()
1037 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNameWithAbiTags()
1043 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1047 mangleNestedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1099 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD, const DeclContext *DC, in mangleUnscopedName() argument
1108 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleUnscopedName()
1112 GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags) { in mangleUnscopedTemplateName() argument
1113 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleUnscopedTemplateName()
1125 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleUnscopedTemplateName()
1127 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleUnscopedTemplateName()
1404 GlobalDecl GD, DeclarationName Name, const DeclContext *DC, in mangleUnqualifiedName() argument
1406 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl()); in mangleUnqualifiedName()
1435 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) { in mangleUnqualifiedName() local
1440 Context.mangleMSGuidDecl(GD, GUIDOS); in mangleUnqualifiedName()
1476 GD.getKernelReferenceKind() == KernelReferenceKind::Stub; in mangleUnqualifiedName()
1698 void CXXNameMangler::mangleNestedName(GlobalDecl GD, in mangleNestedName() argument
1702 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNestedName()
1720 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNestedName()
1725 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleNestedName()
1743 GlobalDecl GD, const NamedDecl *PrefixND, in mangleNestedNameWithClosurePrefix() argument
1754 mangleUnqualifiedName(GD, nullptr, AdditionalAbiTags); in mangleNestedNameWithClosurePrefix()
1760 GlobalDecl GD; in getParentOfLocalEntity() local
1766 GD = GlobalDecl(CD, Ctor_Complete); in getParentOfLocalEntity()
1768 GD = GlobalDecl(DD, Dtor_Complete); in getParentOfLocalEntity()
1770 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getParentOfLocalEntity()
1771 return GD; in getParentOfLocalEntity()
1774 void CXXNameMangler::mangleLocalName(GlobalDecl GD, in mangleLocalName() argument
1776 const Decl *D = GD.getDecl(); in mangleLocalName()
1842 mangleNestedName(GD, Context.getEffectiveDeclContext(ND), in mangleLocalName()
1863 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleLocalName()
2140 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD, in mangleTemplatePrefix() argument
2142 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleTemplatePrefix()
2159 mangleUnqualifiedName(GD, DC, nullptr); in mangleTemplatePrefix()
2161 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleTemplatePrefix()
6309 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD, in mangleCXXName() argument
6311 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleCXXName()
6320 auto Type = GD.getCtorType(); in mangleCXXName()
6326 auto Type = GD.getDtorType(); in mangleCXXName()
6332 Mangler.mangle(GD); in mangleCXXName()