Lines Matching refs:GD
98 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
432 void mangle(GlobalDecl GD);
437 void mangleFunctionEncoding(GlobalDecl GD);
439 void mangleName(GlobalDecl GD);
483 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,
518 void mangleNestedNameWithClosurePrefix(GlobalDecl GD,
524 void mangleTemplatePrefix(GlobalDecl GD, bool NoFunction=false);
773 void CXXNameMangler::mangle(GlobalDecl GD) { in mangle() argument
778 if (isa<FunctionDecl>(GD.getDecl())) in mangle()
779 mangleFunctionEncoding(GD); in mangle()
781 BindingDecl>(GD.getDecl())) in mangle()
782 mangleName(GD); in mangle()
784 dyn_cast<IndirectFieldDecl>(GD.getDecl())) in mangle()
790 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) { in mangleFunctionEncoding() argument
791 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in mangleFunctionEncoding()
796 mangleName(GD); in mangleFunctionEncoding()
803 mangleName(GD); in mangleFunctionEncoding()
923 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
924 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in isTemplate()
929 return GD.getWithDecl(TD); in isTemplate()
937 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
944 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
950 static TemplateName asTemplateName(GlobalDecl GD) { in asTemplateName() argument
951 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl()); in asTemplateName()
955 void CXXNameMangler::mangleName(GlobalDecl GD) { in mangleName() argument
956 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleName()
985 mangleNameWithAbiTags(GD, nullptr); in mangleName()
1000 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD, in mangleNameWithAbiTags() argument
1002 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNameWithAbiTags()
1018 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1025 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1032 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags); in mangleNameWithAbiTags()
1039 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNameWithAbiTags()
1045 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1049 mangleNestedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1102 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD, const DeclContext *DC, in mangleUnscopedName() argument
1111 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleUnscopedName()
1115 GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags) { in mangleUnscopedTemplateName() argument
1116 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleUnscopedTemplateName()
1128 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleUnscopedTemplateName()
1130 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleUnscopedTemplateName()
1408 GlobalDecl GD, DeclarationName Name, const DeclContext *DC, in mangleUnqualifiedName() argument
1410 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl()); in mangleUnqualifiedName()
1439 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) { in mangleUnqualifiedName() local
1444 Context.mangleMSGuidDecl(GD, GUIDOS); in mangleUnqualifiedName()
1480 GD.getKernelReferenceKind() == KernelReferenceKind::Stub; in mangleUnqualifiedName()
1700 void CXXNameMangler::mangleNestedName(GlobalDecl GD, in mangleNestedName() argument
1704 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNestedName()
1722 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNestedName()
1727 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleNestedName()
1746 GlobalDecl GD, const NamedDecl *PrefixND, in mangleNestedNameWithClosurePrefix() argument
1757 mangleUnqualifiedName(GD, nullptr, AdditionalAbiTags); in mangleNestedNameWithClosurePrefix()
1763 GlobalDecl GD; in getParentOfLocalEntity() local
1769 GD = GlobalDecl(CD, Ctor_Complete); in getParentOfLocalEntity()
1771 GD = GlobalDecl(DD, Dtor_Complete); in getParentOfLocalEntity()
1773 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getParentOfLocalEntity()
1774 return GD; in getParentOfLocalEntity()
1777 void CXXNameMangler::mangleLocalName(GlobalDecl GD, in mangleLocalName() argument
1779 const Decl *D = GD.getDecl(); in mangleLocalName()
1845 mangleNestedName(GD, Context.getEffectiveDeclContext(ND), in mangleLocalName()
1866 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleLocalName()
2143 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD, in mangleTemplatePrefix() argument
2145 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleTemplatePrefix()
2162 mangleUnqualifiedName(GD, DC, nullptr); in mangleTemplatePrefix()
2164 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleTemplatePrefix()
6308 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD, in mangleCXXName() argument
6310 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleCXXName()
6319 auto Type = GD.getCtorType(); in mangleCXXName()
6325 auto Type = GD.getDtorType(); in mangleCXXName()
6331 Mangler.mangle(GD); in mangleCXXName()