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