Lines Matching refs:GD

101   void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
459 void mangle(GlobalDecl GD);
464 void mangleFunctionEncoding(GlobalDecl GD);
466 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);
816 void CXXNameMangler::mangle(GlobalDecl GD) { in mangle() argument
821 if (isa<FunctionDecl>(GD.getDecl())) in mangle()
822 mangleFunctionEncoding(GD); in mangle()
824 BindingDecl>(GD.getDecl())) in mangle()
825 mangleName(GD); in mangle()
827 dyn_cast<IndirectFieldDecl>(GD.getDecl())) in mangle()
833 void CXXNameMangler::mangleFunctionEncoding(GlobalDecl GD) { in mangleFunctionEncoding() argument
834 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in mangleFunctionEncoding()
839 mangleName(GD); in mangleFunctionEncoding()
854 mangleName(GD); in mangleFunctionEncoding()
979 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) { in isTemplate() argument
980 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in isTemplate()
985 return GD.getWithDecl(TD); in isTemplate()
993 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
1000 return GD.getWithDecl(Spec->getSpecializedTemplate()); in isTemplate()
1006 static TemplateName asTemplateName(GlobalDecl GD) { in asTemplateName() argument
1007 const TemplateDecl *TD = dyn_cast_or_null<TemplateDecl>(GD.getDecl()); in asTemplateName()
1011 void CXXNameMangler::mangleName(GlobalDecl GD) { in mangleName() argument
1012 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleName()
1041 mangleNameWithAbiTags(GD, nullptr); in mangleName()
1056 void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD, in mangleNameWithAbiTags() argument
1058 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNameWithAbiTags()
1074 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1081 mangleLocalName(GD, AdditionalAbiTags); in mangleNameWithAbiTags()
1088 mangleNestedNameWithClosurePrefix(GD, PrefixND, AdditionalAbiTags); in mangleNameWithAbiTags()
1095 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNameWithAbiTags()
1101 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1105 mangleNestedName(GD, DC, AdditionalAbiTags); in mangleNameWithAbiTags()
1157 void CXXNameMangler::mangleUnscopedName(GlobalDecl GD, const DeclContext *DC, in mangleUnscopedName() argument
1166 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleUnscopedName()
1170 GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags) { in mangleUnscopedTemplateName() argument
1171 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleUnscopedTemplateName()
1183 mangleUnscopedName(GD, DC, AdditionalAbiTags); in mangleUnscopedTemplateName()
1185 mangleUnscopedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleUnscopedTemplateName()
1462 GlobalDecl GD, DeclarationName Name, const DeclContext *DC, in mangleUnqualifiedName() argument
1464 const NamedDecl *ND = cast_or_null<NamedDecl>(GD.getDecl()); in mangleUnqualifiedName()
1503 if (auto *GD = dyn_cast<MSGuidDecl>(ND)) { in mangleUnqualifiedName() local
1508 Context.mangleMSGuidDecl(GD, GUIDOS); in mangleUnqualifiedName()
1543 GD.getKernelReferenceKind() == KernelReferenceKind::Stub; in mangleUnqualifiedName()
1770 void CXXNameMangler::mangleNestedName(GlobalDecl GD, in mangleNestedName() argument
1774 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); in mangleNestedName()
1794 if (GlobalDecl TD = isTemplate(GD, TemplateArgs)) { in mangleNestedName()
1799 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleNestedName()
1817 GlobalDecl GD, const NamedDecl *PrefixND, in mangleNestedNameWithClosurePrefix() argument
1828 mangleUnqualifiedName(GD, nullptr, AdditionalAbiTags); in mangleNestedNameWithClosurePrefix()
1834 GlobalDecl GD; in getParentOfLocalEntity() local
1840 GD = GlobalDecl(CD, Ctor_Complete); in getParentOfLocalEntity()
1842 GD = GlobalDecl(DD, Dtor_Complete); in getParentOfLocalEntity()
1844 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getParentOfLocalEntity()
1845 return GD; in getParentOfLocalEntity()
1848 void CXXNameMangler::mangleLocalName(GlobalDecl GD, in mangleLocalName() argument
1850 const Decl *D = GD.getDecl(); in mangleLocalName()
1916 mangleNestedName(GD, Context.getEffectiveDeclContext(ND), in mangleLocalName()
1937 mangleUnqualifiedName(GD, DC, AdditionalAbiTags); in mangleLocalName()
2257 void CXXNameMangler::mangleTemplatePrefix(GlobalDecl GD, in mangleTemplatePrefix() argument
2259 const TemplateDecl *ND = cast<TemplateDecl>(GD.getDecl()); in mangleTemplatePrefix()
2276 mangleUnqualifiedName(GD, DC, nullptr); in mangleTemplatePrefix()
2278 mangleUnqualifiedName(GD.getWithDecl(ND->getTemplatedDecl()), DC, in mangleTemplatePrefix()
6985 void ItaniumMangleContextImpl::mangleCXXName(GlobalDecl GD, in mangleCXXName() argument
6987 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleCXXName()
6996 auto Type = GD.getCtorType(); in mangleCXXName()
7002 auto Type = GD.getDtorType(); in mangleCXXName()
7008 Mangler.mangle(GD); in mangleCXXName()