• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/

Lines Matching refs:GD

35                                               GlobalDecl GD) {
36 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true,
42 GlobalDecl GD) {
43 CGM.setFunctionLinkage(GD, ThunkFn);
44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD,
48 CGM.setGVProperties(ThunkFn, GD);
159 GlobalDecl GD, const ThunkInfo &Thunk) {
160 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
167 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
236 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD,
240 CurGD = GD;
244 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
249 else if (CGM.getCXXABI().HasThisReturn(GD))
251 else if (CGM.getCXXABI().hasMostDerivedReturn(GD))
392 void CodeGenFunction::EmitMustTailThunk(GlobalDecl GD,
429 CGM.ConstructAttributeList(Callee.getCallee()->getName(), *CurFnInfo, GD,
447 const CGFunctionInfo &FnInfo, GlobalDecl GD,
450 StartThunk(Fn, GD, FnInfo, IsUnprototyped);
462 llvm::Constant *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
491 llvm::Constant *CodeGenVTables::maybeEmitThunk(GlobalDecl GD,
494 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
503 MCtx.mangleCXXDtorThunk(DD, GD.getDtorType(), TI.This, Out);
506 llvm::Type *ThunkVTableTy = CGM.getTypes().GetFunctionTypeForVTable(GD);
507 llvm::Constant *Thunk = CGM.GetAddrOfThunk(Name, ThunkVTableTy, GD);
519 : CGM.getTypes().arrangeGlobalDeclaration(GD);
556 setThunkProperties(CGM, TI, ThunkFn, ForVTable, GD);
567 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn);
594 CodeGenFunction(CGM).GenerateVarArgsThunk(ThunkFn, FnInfo, GD, TI);
597 CodeGenFunction(CGM).generateThunk(ThunkFn, FnInfo, GD, TI, IsUnprototyped);
600 setThunkProperties(CGM, TI, ThunkFn, ForVTable, GD);
604 void CodeGenVTables::EmitThunks(GlobalDecl GD) {
606 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl();
609 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
613 VTContext->getThunkInfo(GD);
619 maybeEmitThunk(GD, Thunk, /*ForVTable=*/false);
798 GlobalDecl GD;
805 GD = component.getFunctionDecl();
808 GD = GlobalDecl(component.getDestructorDecl(), Dtor_Complete);
811 GD = GlobalDecl(component.getDestructorDecl(), Dtor_Deleting);
819 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
859 if (cast<CXXMethodDecl>(GD.getDecl())->isPure()) {
866 } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) {
879 fnPtr = maybeEmitThunk(GD, thunkInfo, /*ForVTable=*/true);
883 llvm::Type *fnTy = CGM.getTypes().GetFunctionTypeForVTable(GD);
884 fnPtr = CGM.GetAddrOfFunction(GD, fnTy, /*ForVTable=*/true);