Home
last modified time | relevance | path

Searched refs:GlobalDecl (Results 1 – 25 of 66) sorted by relevance

123

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h56 class GlobalDecl {
69 GlobalDecl() = default;
70 GlobalDecl(const VarDecl *D) { Init(D);} in GlobalDecl() function
71 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
79 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind) in GlobalDecl() function
83 GlobalDecl(const NamedDecl *D) { Init(D); } in GlobalDecl() function
84 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl() function
85 GlobalDecl(const CapturedDecl *D) { Init(D); } in GlobalDecl() function
86 GlobalDecl(const ObjCMethodDecl *D) { Init(D); } in GlobalDecl() function
87 GlobalDecl(const OMPDeclareReductionDecl *D) { Init(D); } in GlobalDecl() function
[all …]
H A DVTableBuilder.h153 GlobalDecl getGlobalDecl() const { in getGlobalDecl()
160 return GlobalDecl(getFunctionDecl()); in getGlobalDecl()
162 return GlobalDecl(DtorDecl, CXXDtorType::Dtor_Complete); in getGlobalDecl()
164 return GlobalDecl(DtorDecl, CXXDtorType::Dtor_Deleting); in getGlobalDecl()
342 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { in getThunkInfo()
372 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
426 uint64_t getMethodVTableIndex(GlobalDecl GD);
443 GlobalDecl findOriginalMethod(GlobalDecl GD);
579 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
618 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
[all …]
H A DMangle.h131 void mangleName(GlobalDecl GD, raw_ostream &);
132 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
171 virtual void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
174 virtual void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.h349 llvm::DenseMap<StringRef, GlobalDecl> DeferredDecls;
355 std::vector<GlobalDecl> DeferredDeclsToEmit;
356 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit()
362 llvm::DenseMap<llvm::StringRef, GlobalDecl> EmittedDeferredDecls;
364 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl()
385 std::vector<GlobalDecl> Aliases;
390 std::vector<GlobalDecl> MultiVersionFuncs;
407 llvm::DenseSet<GlobalDecl> DiagnosedConflictingDefinitions;
430 llvm::MapVector<GlobalDecl, StringRef> MangledDeclNames;
431 llvm::StringMap<GlobalDecl, llvm::BumpPtrAllocator> Manglings;
[all …]
H A DCGCXX.cpp117 GlobalDecl AliasDecl(D, Dtor_Base); in TryEmitBaseDestructorAsAlias()
118 GlobalDecl TargetDecl(BaseD, Dtor_Base); in TryEmitBaseDestructorAsAlias()
206 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor()
221 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor()
247 GlobalDecl GD, in BuildAppleKextVirtualCall()
270 GlobalDecl OrigMD = in BuildAppleKextVirtualCall()
311 GlobalDecl(DD, Dtor_Complete)); in BuildAppleKextVirtualDestructorCall()
313 return ::BuildAppleKextVirtualCall(*this, GlobalDecl(DD, Type), Ty, RD); in BuildAppleKextVirtualDestructorCall()
H A DCGCXXABI.h102 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
123 virtual bool HasThisReturn(GlobalDecl GD) const { in HasThisReturn()
131 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn()
363 buildStructorSignature(GlobalDecl GD,
387 virtual const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) { in getThisArgumentTypeForMethod()
395 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall()
415 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment()
480 GlobalDecl GD, Address This,
495 GlobalDecl GD, in adjustCallArgsForDestructorThunk()
505 GlobalDecl GD, bool ReturnAdjustment) = 0;
[all …]
H A DCodeGenTypes.h43 class GlobalDecl; variable
151 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
167 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
199 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
249 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
H A DCGCall.h45 GlobalDecl CalleeDecl;
49 CGCalleeInfo(const FunctionProtoType *calleeProtoTy, GlobalDecl calleeDecl) in CGCalleeInfo()
53 CGCalleeInfo(GlobalDecl calleeDecl) in CGCalleeInfo()
59 const GlobalDecl getCalleeDecl() const { return CalleeDecl; } in getCalleeDecl()
86 GlobalDecl MD;
147 static CGCallee forVirtual(const CallExpr *CE, GlobalDecl MD, Address Addr, in forVirtual()
211 GlobalDecl getVirtualMethodDecl() const { in getVirtualMethodDecl()
H A DModuleBuilder.cpp114 GlobalDecl Result; in GetDeclForMangledName()
128 llvm::StringRef GetMangledName(GlobalDecl GD) { in GetMangledName()
132 llvm::Constant *GetAddrOfGlobal(GlobalDecl global, bool isForDefinition) { in GetAddrOfGlobal()
348 llvm::StringRef CodeGenerator::GetMangledName(GlobalDecl GD) { in GetMangledName()
352 llvm::Constant *CodeGenerator::GetAddrOfGlobal(GlobalDecl global, in GetAddrOfGlobal()
H A DCGPointerAuth.cpp27 const PointerAuthSchema &Schema, GlobalDecl Decl, QualType Type) { in getPointerAuthOtherDiscriminator()
55 GlobalDecl Declaration) { in getPointerAuthDeclDiscriminator()
61 CodeGenModule::getPointerAuthDeclDiscriminator(GlobalDecl Declaration) { in getPointerAuthDeclDiscriminator()
86 Discriminator = getPointerAuthOtherDiscriminator(Schema, GlobalDecl(), T); in getFunctionPointerAuthInfo()
105 GlobalDecl SchemaDecl, QualType SchemaType) { in EmitPointerAuthInfo()
327 llvm::Constant *StorageAddress, GlobalDecl SchemaDecl, in getConstantSignedPointer()
353 llvm::Constant *CodeGenModule::getFunctionPointer(GlobalDecl GD, in getFunctionPointer()
378 getPointerAuthOtherDiscriminator(Schema, GlobalDecl(), FT); in getMemberFunctionPointerAuthInfo()
H A DCGDebugInfo.h42 class GlobalDecl; variable
471 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
476 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
482 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
549 void EmitGlobalAlias(const llvm::GlobalValue *GV, const GlobalDecl Decl);
748 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
752 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
756 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
819 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
923 ApplyInlineDebugLocation(CodeGenFunction &CGF, GlobalDecl InlinedFn);
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
130 void EmitThunks(GlobalDecl GD);
H A DCodeGenModule.cpp583 const llvm::MapVector<GlobalDecl, StringRef> &MangledDeclNames, in checkAliasedGlobal() argument
665 for (const GlobalDecl &GD : Aliases) { in checkAliases()
735 for (const GlobalDecl &GD : Aliases) { in checkAliases()
945 GlobalDecl GD; in Release()
947 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in Release()
949 GD = GlobalDecl(D); in Release()
1414 StringRef MangledName = getMangledName(GlobalDecl(I.first)); in Release()
1733 GlobalDecl GD) const { in setDLLImportDLLExport()
1756 GlobalDecl GD) const { in setGVProperties()
1831 static bool isUniqueInternalLinkageDecl(GlobalDecl GD, in isUniqueInternalLinkageDecl()
[all …]
H A DMicrosoftCXXABI.cpp57 bool HasThisReturn(GlobalDecl GD) const override;
58 bool hasMostDerivedReturn(GlobalDecl GD) const override;
66 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
231 buildStructorSignature(GlobalDecl GD,
250 const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) override { in getThisArgumentTypeForMethod()
254 GlobalDecl LookupGD = GD; in getThisArgumentTypeForMethod()
263 LookupGD = GlobalDecl(DD, Dtor_Deleting); in getThisArgumentTypeForMethod()
281 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
333 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
342 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, in adjustCallArgsForDestructorThunk()
[all …]
H A DItaniumCXXABI.cpp80 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
254 buildStructorSignature(GlobalDecl GD,
314 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
328 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD, in setThunkLinkage()
389 bool NeedsVTTParameter(GlobalDecl GD) override;
425 void emitCXXStructor(GlobalDecl GD) override;
1478 Dtor = CGM.getAddrOfCXXStructor(GlobalDecl(DtorD, Dtor_Complete)); in emitThrow()
1823 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base)); in EmitCXXConstructors()
1829 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete)); in EmitCXXConstructors()
1834 ItaniumCXXABI::buildStructorSignature(GlobalDecl GD, in buildStructorSignature()
[all …]
H A DCGDeclCXX.cpp111 GlobalDecl(Record->getDestructor(), Dtor_Complete)) || in EmitDeclDestroy()
121 Func = CGM.getAddrAndTypeOfCXXStructor(GlobalDecl(Dtor, Dtor_Complete)); in EmitDeclDestroy()
252 CGF.StartFunction(GlobalDecl(&VD, DynamicInitKind::AtExit), in createAtExitStub()
305 CGF.StartFunction(GlobalDecl(&D, DynamicInitKind::AtExit), ResTy, DtorStub, in createTLSAtExitStub()
455 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); in CreateGlobalInitOrCleanUpFunction()
1030 StartFunction(GlobalDecl(D, DynamicInitKind::Initializer), in GenerateCXXGlobalVarDeclInitFunc()
1063 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalInitFunc()
1123 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalCleanUpFunc()
1172 StartFunction(GlobalDecl(VD, DynamicInitKind::GlobalArrayDestructor), in generateDestroyHelper()
H A DCGVTables.cpp36 GlobalDecl GD) { in GetAddrOfThunk()
43 GlobalDecl GD) { in setThunkProperties()
168 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk()
248 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk()
283 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, in StartThunk()
409 void CodeGenFunction::EmitMustTailThunk(GlobalDecl GD, in EmitMustTailThunk()
463 const CGFunctionInfo &FnInfo, GlobalDecl GD, in generateThunk()
503 llvm::Constant *CodeGenVTables::maybeEmitThunk(GlobalDecl GD, in maybeEmitThunk()
625 void CodeGenVTables::EmitThunks(GlobalDecl GD) { in EmitThunks()
773 GlobalDecl GD = component.getGlobalDecl(); in addVTableComponent()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMangle.cpp139 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName()
280 mangleName(GlobalDecl(CD, CT), Out); in mangleCtorBlock()
289 mangleName(GlobalDecl(DD, DT), Out); in mangleDtorBlock()
538 GlobalDecl GD; in writeFuncOrVarName()
540 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
542 GD = GlobalDecl(DtorD, Dtor_Complete); in writeFuncOrVarName()
544 GD = GlobalDecl(cast<FunctionDecl>(D)); in writeFuncOrVarName()
546 GD = GlobalDecl(D); in writeFuncOrVarName()
567 GlobalDecl GD; in getMangledStructor()
569 GD = GlobalDecl(CD, static_cast<CXXCtorType>(StructorType)); in getMangledStructor()
[all …]
H A DMicrosoftMangle.cpp47 static GlobalDecl getGlobalDeclAsDeclContext(const DeclContext *DC) { in getGlobalDeclAsDeclContext()
48 GlobalDecl GD; in getGlobalDeclAsDeclContext()
50 GD = GlobalDecl(CD, Ctor_Complete); in getGlobalDeclAsDeclContext()
52 GD = GlobalDecl(DD, Dtor_Complete); in getGlobalDeclAsDeclContext()
54 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getGlobalDeclAsDeclContext()
148 llvm::DenseMap<GlobalDecl, unsigned> SEHFilterIds;
149 llvm::DenseMap<GlobalDecl, unsigned> SEHFinallyIds;
157 void mangleCXXName(GlobalDecl GD, raw_ostream &Out) override;
211 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
213 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
[all …]
H A DItaniumMangle.cpp101 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
125 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
127 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
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()
520 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
523 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DModuleBuilder.h39 class GlobalDecl; variable
88 llvm::StringRef GetMangledName(GlobalDecl GD);
98 llvm::Constant *GetAddrOfGlobal(GlobalDecl decl, bool isForDefinition);
H A DCodeGenABITypes.h45 class GlobalDecl; variable
109 uint16_t getPointerAuthDeclDiscriminator(CodeGenModule &CGM, GlobalDecl GD);
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp451 const GlobalDecl &D, const ThunkInfo &Thunk, bool ElideOverrideInfo) const { in getMangledCXXThunk()
468 GlobalDecl GD; in getMangledCtorDtor()
470 GD = GlobalDecl(Ctor, CXXCtorType(Type)); in getMangledCtorDtor()
473 GD = GlobalDecl(Dtor, CXXDtorType(Type)); in getMangledCtorDtor()
496 auto AddThunk = [&](GlobalDecl GD) { in emitVTableSymbols()
/freebsd/contrib/llvm-project/clang/lib/Interpreter/
H A DIncrementalParser.h83 llvm::StringRef GetMangledName(GlobalDecl GD) const;
/freebsd/contrib/llvm-project/clang/include/clang/InstallAPI/
H A DVisitor.h63 std::string getMangledCXXThunk(const GlobalDecl &D, const ThunkInfo &Thunk,

123