Home
last modified time | relevance | path

Searched refs:GD (Results 1 – 25 of 50) sorted by relevance

12

/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGVTables.cpp42 GlobalDecl GD) { in setThunkProperties() argument
43 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties()
48 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties()
229 CurGD = GD; in StartThunk()
239 else if (CGM.getCXXABI().HasThisReturn(GD)) in StartThunk()
241 else if (CGM.getCXXABI().hasMostDerivedReturn(GD)) in StartThunk()
434 StartThunk(Fn, GD, FnInfo, IsUnprototyped); in generateThunk()
571 void CodeGenVTables::EmitThunks(GlobalDecl GD) { in EmitThunks() argument
580 VTContext->getThunkInfo(GD); in EmitThunks()
616 GlobalDecl GD; in addVTableComponent() local
[all …]
H A DCGCXX.cpp215 GlobalDecl GD; in codegenCXXStructor() local
217 GD = GlobalDecl(DD, toCXXDtorType(Type)); in codegenCXXStructor()
220 GD = GlobalDecl(CD, toCXXCtorType(Type)); in codegenCXXStructor()
223 setFunctionLinkage(GD, Fn); in codegenCXXStructor()
225 CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo); in codegenCXXStructor()
226 setNonAliasAttributes(GD, Fn); in codegenCXXStructor()
235 GlobalDecl GD; in getAddrOfCXXStructor() local
237 GD = GlobalDecl(CD, toCXXCtorType(Type)); in getAddrOfCXXStructor()
254 getMangledName(GD), FnType, GD, /*ForVTable=*/false, DontDefer, in getAddrOfCXXStructor()
259 GlobalDecl GD, in BuildAppleKextVirtualCall() argument
[all …]
H A DCodeGenModule.cpp1051 Manglings.insert(std::make_pair(getMangledNameImpl(*this, GD, ND), GD)); in getMangledName()
1378 setGVProperties(GV, GD); in SetCommonAttributes()
1445 SetCommonAttributes(GD, GO); in setNonAliasAttributes()
1548 SetLLVMFunctionAttributes(GD, getTypes().arrangeGlobalDeclaration(GD), F); in SetFunctionAttributes()
2229 EmitGlobalDefinition(GD); in EmitGlobal()
2244 addDeferredDeclToEmit(GD); in EmitGlobal()
2575 ResolverGD = GD; in emitCPUDispatchDefinition()
4010 setFunctionLinkage(GD, Fn); in EmitGlobalFunctionDefinition()
4013 setGVProperties(Fn, GD); in EmitGlobalFunctionDefinition()
4051 Aliases.push_back(GD); in EmitAliasDefinition()
[all …]
H A DCodeGenModule.h341 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit() argument
342 DeferredDeclsToEmit.emplace_back(GD); in addDeferredDeclToEmit()
488 bool shouldEmitFunction(GlobalDecl GD);
779 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD,
842 GlobalDecl GD);
1130 StringRef getMangledName(GlobalDecl GD);
1154 F->setLinkage(getFunctionLinkage(GD)); in setFunctionLinkage()
1327 bool GetCPUAndFeaturesAttributes(GlobalDecl GD,
1341 void EmitAliasDefinition(GlobalDecl GD);
1342 void emitIFuncDefinition(GlobalDecl GD);
[all …]
H A DCGCXXABI.h90 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
107 virtual bool HasThisReturn(GlobalDecl GD) const { return false; } in HasThisReturn() argument
109 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn() argument
346 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall() argument
366 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment() argument
425 GlobalDecl GD, Address This,
436 GlobalDecl GD, in adjustCallArgsForDestructorThunk() argument
446 GlobalDecl GD, bool ReturnAdjustment) = 0;
518 virtual bool NeedsVTTParameter(GlobalDecl GD);
H A DCGVTables.h61 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
114 void EmitThunks(GlobalDecl GD);
H A DCGDebugInfo.h397 void EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
403 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
408 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc, QualType FnType);
591 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
595 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
599 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
656 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
H A DCodeGenTypes.h203 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
219 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
251 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
H A DMicrosoftCXXABI.cpp64 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
65 switch (GD.getDtorType()) { in isThisCompleteObject()
1044 static bool isDeletingDtor(GlobalDecl GD) { in isDeletingDtor() argument
1046 GD.getDtorType() == Dtor_Deleting; in isDeletingDtor()
1050 return isDeletingDtor(GD); in hasMostDerivedReturn()
1326 if (GD.getDtorType() == Dtor_Complete) in getVirtualFunctionPrologueThisAdjustment()
1331 GD = GlobalDecl(DD, Dtor_Deleting); in getVirtualFunctionPrologueThisAdjustment()
1371 GlobalDecl LookupGD = GD; in adjustThisArgumentForVirtualFunctionCall()
1375 if (GD.getDtorType() == Dtor_Complete) in adjustThisArgumentForVirtualFunctionCall()
1875 CGCallee Callee(GD, VFunc); in getVirtualFunctionPointer()
[all …]
H A DItaniumCXXABI.cpp81 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
82 switch (GD.getDtorType()) { in isThisCompleteObject()
95 if (isa<CXXConstructorDecl>(GD.getDecl())) { in isThisCompleteObject()
96 switch (GD.getCtorType()) { in isThisCompleteObject()
298 CGM.setGVProperties(Thunk, GD); in setThunkLinkage()
347 bool NeedsVTTParameter(GlobalDecl GD) override;
442 GD.getDtorType() != Dtor_Deleting)); in HasThisReturn()
477 return isa<CXXConstructorDecl>(GD.getDecl()) || in HasThisReturn()
479 GD.getDtorType() != Dtor_Deleting); in HasThisReturn()
1557 GlobalDecl GD(DD, Type); in EmitDestructorCall() local
[all …]
H A DCodeGenFunction.cpp826 void CodeGenFunction::StartFunction(GlobalDecl GD, in StartFunction() argument
836 const Decl *D = GD.getDecl(); in StartFunction()
1251 QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD, in BuildFunctionArgList() argument
1253 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in BuildFunctionArgList()
1258 if (CGM.getCXXABI().HasThisReturn(GD)) in BuildFunctionArgList()
1260 else if (CGM.getCXXABI().hasMostDerivedReturn(GD)) in BuildFunctionArgList()
1307 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, in GenerateCode() argument
1309 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in GenerateCode()
1310 CurGD = GD; in GenerateCode()
1313 QualType ResTy = BuildFunctionArgList(GD, Args); in GenerateCode()
[all …]
H A DCGOpenMPRuntime.h1400 virtual bool emitTargetFunctions(GlobalDecl GD);
1405 virtual bool emitTargetGlobalVariable(GlobalDecl GD);
1415 virtual bool emitTargetGlobal(GlobalDecl GD);
1572 bool markAsGlobalTarget(GlobalDecl GD);
2065 bool emitTargetFunctions(GlobalDecl GD) override;
2070 bool emitTargetGlobalVariable(GlobalDecl GD) override;
2075 bool emitTargetGlobal(GlobalDecl GD) override;
H A DCGDebugInfo.cpp3101 const auto *FD = cast<FunctionDecl>(GD.getDecl()); in collectFunctionDeclProps()
3105 LinkageName = CGM.getMangledName(GD); in collectFunctionDeclProps()
3195 SourceLocation Loc = GD.getDecl()->getLocation(); in getFunctionFwdDeclOrStub()
3201 auto *FD = dyn_cast<FunctionDecl>(GD.getDecl()); in getFunctionFwdDeclOrStub()
3237 return getFunctionFwdDeclOrStub(GD, /* Stub = */ false); in getFunctionForwardDeclaration()
3240 llvm::DISubprogram *CGDebugInfo::getFunctionStub(GlobalDecl GD) { in getFunctionStub() argument
3241 return getFunctionFwdDeclOrStub(GD, /* Stub = */ true); in getFunctionStub()
3411 const Decl *D = GD.getDecl(); in EmitFunctionStart()
3515 const Decl *D = GD.getDecl(); in EmitFunctionDecl()
3555 const auto *FD = cast<FunctionDecl>(GD.getDecl()); in EmitInlineFunctionStart()
[all …]
H A DCodeGenPGO.h83 void assignRegionCounters(GlobalDecl GD, llvm::Function *Fn);
H A DCodeGenPGO.cpp760 void CodeGenPGO::assignRegionCounters(GlobalDecl GD, llvm::Function *Fn) { in assignRegionCounters() argument
761 const Decl *D = GD.getDecl(); in assignRegionCounters()
775 if (isa<CXXDestructorDecl>(D) && GD.getDtorType() != Dtor_Base) in assignRegionCounters()
779 if (GD.getCtorType() != Ctor_Base && in assignRegionCounters()
H A DCGCall.cpp315 GlobalDecl GD; in arrangeCXXStructorDeclaration() local
317 GD = GlobalDecl(CD, toCXXCtorType(Type)); in arrangeCXXStructorDeclaration()
325 GD = GlobalDecl(DD, toCXXDtorType(Type)); in arrangeCXXStructorDeclaration()
351 CanQualType resultType = TheCXXABI.HasThisReturn(GD) in arrangeCXXStructorDeclaration()
353 : TheCXXABI.hasMostDerivedReturn(GD) in arrangeCXXStructorDeclaration()
413 GlobalDecl GD(D, CtorKind); in arrangeCXXConstructorCall() local
414 CanQualType ResultType = TheCXXABI.HasThisReturn(GD) in arrangeCXXConstructorCall()
516 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { in arrangeGlobalDeclaration() argument
518 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in arrangeGlobalDeclaration()
1545 const CGFunctionInfo &FI = arrangeGlobalDeclaration(GD); in GetFunctionType()
[all …]
H A DCodeGenFunction.h1467 CGF.CurGD = GD;
1469 cast<CXXConstructorDecl>(GD.getDecl());
1746 llvm::Function *GenerateBlockFunction(GlobalDecl GD,
1806 QualType BuildFunctionArgList(GlobalDecl GD, FunctionArgList &Args);
1808 void GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1818 void StartFunction(GlobalDecl GD,
1851 void StartThunk(llvm::Function *Fn, GlobalDecl GD,
1860 void EmitMustTailThunk(GlobalDecl GD, llvm::Value *AdjustedThisPtr,
1865 GlobalDecl GD, const ThunkInfo &Thunk,
2471 llvm::Value *GetVTTParameter(GlobalDecl GD, bool ForVirtualBase,
[all …]
H A DCGDecl.cpp280 GlobalDecl GD; in getOrCreateStaticVarDecl() local
282 GD = GlobalDecl(CD, Ctor_Base); in getOrCreateStaticVarDecl()
284 GD = GlobalDecl(DD, Dtor_Base); in getOrCreateStaticVarDecl()
286 GD = GlobalDecl(FD); in getOrCreateStaticVarDecl()
292 if (GD.getDecl()) { in getOrCreateStaticVarDecl()
295 (void)GetAddrOfGlobal(GD); in getOrCreateStaticVarDecl()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DIteratedDominanceFrontier.h50 : DT(DT), GD(nullptr), useLiveIn(false) {} in IDFCalculator()
53 const GraphDiff<BasicBlock *, IsPostDom> *GD) in IDFCalculator() argument
54 : DT(DT), GD(GD), useLiveIn(false) {} in IDFCalculator()
93 const GraphDiff<BasicBlock *, IsPostDom> *GD; variable
H A DMemorySSAUpdater.h282 const GraphDiff<BasicBlock *> *GD);
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DGlobalDecl.h97 GlobalDecl GD; in getFromOpaquePtr() local
98 GD.Value.setFromOpaqueValue(P); in getFromOpaquePtr()
99 return GD; in getFromOpaquePtr()
133 static unsigned getHashValue(clang::GlobalDecl GD) {
134 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DVTableBuilder.h330 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { in getThunkInfo() argument
331 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl()); in getThunkInfo()
393 uint64_t getMethodVTableIndex(GlobalDecl GD);
556 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
558 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo() argument
560 if (isa<CXXDestructorDecl>(GD.getDecl()) && in getThunkInfo()
561 GD.getDtorType() == Dtor_Complete) in getThunkInfo()
563 return VTableContextBase::getThunkInfo(GD); in getThunkInfo()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DIteratedDominanceFrontier.cpp90 if (GD) { in calculate()
93 {GD, BB})) in calculate()
H A DMemorySSAUpdater.cpp608 GraphDiff<BasicBlock *> GD(RevDeleteUpdates); in applyUpdates() local
609 applyInsertUpdates(InsertUpdates, NewDT, &GD); in applyUpdates()
611 GraphDiff<BasicBlock *> GD; in applyUpdates() local
612 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates()
622 GraphDiff<BasicBlock *> GD; in applyInsertUpdates() local
623 applyInsertUpdates(Updates, DT, &GD); in applyInsertUpdates()
628 const GraphDiff<BasicBlock *> *GD) { in applyInsertUpdates() argument
640 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) { in applyInsertUpdates()
731 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) { in applyInsertUpdates()
868 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BBIDF})) { in applyInsertUpdates()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DVTableBuilder.cpp2167 GlobalDecl GD(DD, Dtor_Complete); in dumpLayout() local
2168 assert(MethodVTableIndices.count(GD)); in dumpLayout()
2169 uint64_t VTableIndex = MethodVTableIndices[GD]; in dumpLayout()
2224 GD = GD.getCanonicalDecl(); in getMethodVTableIndex()
2233 I = MethodVTableIndices.find(GD); in getMethodVTableIndex()
3732 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { in getMethodVFTableLocation() argument
3733 assert(cast<CXXMethodDecl>(GD.getDecl())->isVirtual() && in getMethodVFTableLocation()
3735 if (isa<CXXDestructorDecl>(GD.getDecl())) in getMethodVFTableLocation()
3736 assert(GD.getDtorType() == Dtor_Deleting); in getMethodVFTableLocation()
3738 GD = GD.getCanonicalDecl(); in getMethodVFTableLocation()
[all …]

12