Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/clang/include/clang/AST/
H A DGlobalDecl.h56 class GlobalDecl {
69 GlobalDecl() = default;
95 GlobalDecl CanonGD; in getCanonicalDecl()
143 friend bool operator==(const GlobalDecl &LHS, const GlobalDecl &RHS) {
153 GlobalDecl GD; in getFromOpaquePtr()
164 GlobalDecl Result(*this); in getWithDecl()
171 GlobalDecl Result(*this); in getWithCtorType()
178 GlobalDecl Result(*this); in getWithDtorType()
189 GlobalDecl Result(*this); in getWithMultiVersionIndex()
198 GlobalDecl Result(*this); in getWithKernelReferenceKind()
[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()
368 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
418 uint64_t getMethodVTableIndex(GlobalDecl GD);
550 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
591 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
593 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo()
H A DMangle.h121 void mangleName(GlobalDecl GD, raw_ostream &);
122 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenModule.h349 std::vector<GlobalDecl> DeferredDeclsToEmit;
350 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit()
358 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl()
370 std::vector<GlobalDecl> Aliases;
375 std::vector<GlobalDecl> MultiVersionFuncs;
539 bool shouldEmitFunction(GlobalDecl GD);
565 GlobalDecl initializedGlobalDecl;
1265 StringRef getMangledName(GlobalDecl GD);
1372 void EmitGlobal(GlobalDecl D);
1570 void EmitAliasDefinition(GlobalDecl GD);
[all …]
H A DCGCXX.cpp112 GlobalDecl AliasDecl(D, Dtor_Base); in TryEmitBaseDestructorAsAlias()
113 GlobalDecl TargetDecl(BaseD, Dtor_Base); in TryEmitBaseDestructorAsAlias()
207 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor()
222 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor()
248 GlobalDecl GD, in BuildAppleKextVirtualCall()
304 GlobalDecl(DD, Dtor_Complete)); in BuildAppleKextVirtualDestructorCall()
306 return ::BuildAppleKextVirtualCall(*this, GlobalDecl(DD, Type), Ty, RD); in BuildAppleKextVirtualDestructorCall()
H A DCGCXXABI.h106 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
123 virtual bool HasThisReturn(GlobalDecl GD) const { return false; } in HasThisReturn()
125 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn()
348 buildStructorSignature(GlobalDecl GD,
381 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall()
401 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment()
472 GlobalDecl GD, Address This,
487 GlobalDecl GD, in adjustCallArgsForDestructorThunk()
497 GlobalDecl GD, bool ReturnAdjustment) = 0;
569 virtual bool NeedsVTTParameter(GlobalDecl GD);
[all …]
H A DCGCall.h42 GlobalDecl CalleeDecl;
46 CGCalleeInfo(const FunctionProtoType *calleeProtoTy, GlobalDecl calleeDecl) in CGCalleeInfo()
50 CGCalleeInfo(GlobalDecl calleeDecl) in CGCalleeInfo()
56 const GlobalDecl getCalleeDecl() const { return CalleeDecl; } in getCalleeDecl()
79 GlobalDecl MD;
140 static CGCallee forVirtual(const CallExpr *CE, GlobalDecl MD, Address Addr, in forVirtual()
196 GlobalDecl getVirtualMethodDecl() const { in getVirtualMethodDecl()
H A DCodeGenTypes.h43 class GlobalDecl; variable
138 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
154 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
186 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
236 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
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()
347 llvm::StringRef CodeGenerator::GetMangledName(GlobalDecl GD) { in GetMangledName()
351 llvm::Constant *CodeGenerator::GetAddrOfGlobal(GlobalDecl global, in GetAddrOfGlobal()
H A DCGDebugInfo.h40 class GlobalDecl; variable
440 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
445 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
451 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
513 void EmitGlobalAlias(const llvm::GlobalValue *GV, const GlobalDecl Decl);
699 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
703 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
707 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
770 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
861 ApplyInlineDebugLocation(CodeGenFunction &CGF, GlobalDecl InlinedFn);
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
136 void EmitThunks(GlobalDecl GD);
H A DCodeGenModule.cpp613 GlobalDecl GD; in Release()
617 GD = GlobalDecl(D); in Release()
1460 GlobalDecl OtherGD; in UpdateMultiVersionNames()
1574 return GlobalDecl(); in getMangledNameDecl()
3564 GlobalDecl CurGD{ in emitMultiVersionFunctions()
3676 GlobalDecl ResolverGD; in emitCPUDispatchDefinition()
3862 GlobalDecl GDDef; in GetOrCreateLLVMFunction()
3899 GlobalDecl OtherGD; in GetOrCreateLLVMFunction()
4216 GlobalDecl OtherGD; in GetOrCreateLLVMGlobal()
5354 GlobalDecl OtherGD; in emitIFuncDefinition()
[all …]
H A DCGVTables.cpp35 GlobalDecl GD) { in GetAddrOfThunk()
42 GlobalDecl GD) { in setThunkProperties()
161 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk()
240 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk()
275 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, in StartThunk()
396 void CodeGenFunction::EmitMustTailThunk(GlobalDecl GD, in EmitMustTailThunk()
450 const CGFunctionInfo &FnInfo, GlobalDecl GD, in generateThunk()
494 llvm::Constant *CodeGenVTables::maybeEmitThunk(GlobalDecl GD, in maybeEmitThunk()
607 void CodeGenVTables::EmitThunks(GlobalDecl GD) { in EmitThunks()
733 GlobalDecl GD = component.getGlobalDecl(); in addVTableComponent()
H A DCGDeclCXX.cpp110 GlobalDecl(Record->getDestructor(), Dtor_Complete)) || in EmitDeclDestroy()
120 Func = CGM.getAddrAndTypeOfCXXStructor(GlobalDecl(Dtor, Dtor_Complete)); in EmitDeclDestroy()
250 CGF.StartFunction(GlobalDecl(&VD, DynamicInitKind::AtExit), in createAtExitStub()
298 CGF.StartFunction(GlobalDecl(&D, DynamicInitKind::AtExit), ResTy, DtorStub, in createTLSAtExitStub()
438 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); in CreateGlobalInitOrCleanUpFunction()
959 StartFunction(GlobalDecl(D, DynamicInitKind::Initializer), in GenerateCXXGlobalVarDeclInitFunc()
989 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalInitFunc()
1049 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalCleanUpFunc()
1098 StartFunction(GlobalDecl(VD, DynamicInitKind::GlobalArrayDestructor), in generateDestroyHelper()
H A DMicrosoftCXXABI.cpp56 bool HasThisReturn(GlobalDecl GD) const override;
219 buildStructorSignature(GlobalDecl GD,
1080 static bool isDeletingDtor(GlobalDecl GD) { in isDeletingDtor()
1382 CGM.EmitGlobal(GlobalDecl(D, Dtor_Base)); in EmitCXXDestructors()
1404 GD = GlobalDecl(DD, Dtor_Deleting); in getVirtualFunctionPrologueThisAdjustment()
1444 GlobalDecl LookupGD = GD; in adjustThisArgumentForVirtualFunctionCall()
1453 LookupGD = GlobalDecl(DD, Dtor_Deleting); in adjustThisArgumentForVirtualFunctionCall()
1632 GlobalDecl GD(DD, Type); in EmitDestructorCall()
1980 GlobalDecl GD(Dtor, Dtor_Deleting); in EmitVirtualDestructorCall()
2075 CGF.CurGD = GlobalDecl(MD); in EmitVirtualMemPtrThunk()
[all …]
H A DItaniumCXXABI.cpp207 buildStructorSignature(GlobalDecl GD,
344 bool NeedsVTTParameter(GlobalDecl GD) override;
377 void emitCXXStructor(GlobalDecl GD) override;
1583 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base)); in EmitCXXConstructors()
1615 CGM.EmitGlobal(GlobalDecl(D, Dtor_Base)); in EmitCXXDestructors()
1678 if (!NeedsVTTParameter(GlobalDecl(D, Type))) in getImplicitConstructorArgs()
1691 GlobalDecl GD(DD, Type); in getCXXDestructorImplicitParam()
1700 GlobalDecl GD(DD, Type); in EmitDestructorCall()
1987 GlobalDecl GD(Dtor, DtorType); in EmitVirtualDestructorCall()
4236 GlobalDecl AliasDecl; in getCodegenToUse()
[all …]
H A DCGCUDARuntime.h113 GlobalDecl GD) = 0;
/llvm-project-15.0.7/clang/include/clang/CodeGen/
H A DModuleBuilder.h35 class GlobalDecl; variable
84 llvm::StringRef GetMangledName(GlobalDecl GD);
94 llvm::Constant *GetAddrOfGlobal(GlobalDecl decl, bool isForDefinition);
/llvm-project-15.0.7/clang/lib/AST/
H A DMangle.cpp139 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName()
276 mangleName(GlobalDecl(CD, CT), Out); in mangleCtorBlock()
285 mangleName(GlobalDecl(DD, DT), Out); in mangleDtorBlock()
525 GlobalDecl GD; in writeFuncOrVarName()
527 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
529 GD = GlobalDecl(DtorD, Dtor_Complete); in writeFuncOrVarName()
531 GD = GlobalDecl(cast<FunctionDecl>(D)); in writeFuncOrVarName()
533 GD = GlobalDecl(D); in writeFuncOrVarName()
554 GlobalDecl GD; in getMangledStructor()
556 GD = GlobalDecl(CD, static_cast<CXXCtorType>(StructorType)); in getMangledStructor()
[all …]
H A DItaniumMangle.cpp432 void mangle(GlobalDecl GD);
439 void mangleName(GlobalDecl GD);
483 void mangleNameWithAbiTags(GlobalDecl GD,
506 void mangleLocalName(GlobalDecl GD,
773 void CXXNameMangler::mangle(GlobalDecl GD) { in mangle()
922 static const GlobalDecl
947 return GlobalDecl(); in isTemplate()
1763 GlobalDecl GD; in getParentOfLocalEntity()
1769 GD = GlobalDecl(CD, Ctor_Complete); in getParentOfLocalEntity()
1771 GD = GlobalDecl(DD, Dtor_Complete); in getParentOfLocalEntity()
[all …]
H A DMicrosoftMangle.cpp45 GlobalDecl GD; in getGlobalDeclAsDeclContext()
47 GD = GlobalDecl(CD, Ctor_Complete); in getGlobalDeclAsDeclContext()
49 GD = GlobalDecl(DD, Dtor_Complete); in getGlobalDeclAsDeclContext()
51 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getGlobalDeclAsDeclContext()
363 void mangleName(GlobalDecl GD);
387 void mangleNestedName(GlobalDecl GD);
401 void mangleUnqualifiedName(GlobalDecl GD) { in mangleUnqualifiedName()
415 mangleTemplateInstantiationName(GlobalDecl GD,
864 static GlobalDecl isTemplate(GlobalDecl GD, in isTemplate()
889 return GlobalDecl(); in isTemplate()
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Ddllimport.c26 __declspec(dllimport) int GlobalDecl;
27 USEVAR(GlobalDecl)
/llvm-project-15.0.7/clang/test/Sema/
H A Ddllimport.c36 __declspec(dllimport) int GlobalDecl; variable
41 int *VarForInit = &GlobalDecl; // expected-error{{initializer element is not a compile-time constan…
/llvm-project-15.0.7/clang/lib/Interpreter/
H A DIncrementalParser.h73 llvm::StringRef GetMangledName(GlobalDecl GD) const;
/llvm-project-15.0.7/clang/include/clang/Interpreter/
H A DInterpreter.h78 llvm::Expected<llvm::JITTargetAddress> getSymbolAddress(GlobalDecl GD) const;

123