Lines Matching defs:GD
36 GlobalDecl GD) {
37 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true,
43 GlobalDecl GD) {
44 CGM.setFunctionLinkage(GD, ThunkFn);
45 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD,
49 CGM.setGVProperties(ThunkFn, GD);
168 GlobalDecl GD, const ThunkInfo &Thunk) {
169 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
176 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
248 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD,
252 CurGD = GD;
256 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
261 else if (CGM.getCXXABI().HasThisReturn(GD))
263 else if (CGM.getCXXABI().hasMostDerivedReturn(GD))
409 void CodeGenFunction::EmitMustTailThunk(GlobalDecl GD,
444 CGM.ConstructAttributeList(Callee.getCallee()->getName(), *CurFnInfo, GD,
463 const CGFunctionInfo &FnInfo, GlobalDecl GD,
466 StartThunk(Fn, GD, FnInfo, IsUnprototyped);
478 llvm::Constant *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
503 llvm::Constant *CodeGenVTables::maybeEmitThunk(GlobalDecl GD,
506 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
516 MCtx.mangleCXXDtorThunk(DD, GD.getDtorType(), TI,
521 if (CGM.getContext().useAbbreviatedThunkName(GD, Name.str())) {
524 MCtx.mangleCXXDtorThunk(DD, GD.getDtorType(), TI,
530 llvm::Type *ThunkVTableTy = CGM.getTypes().GetFunctionTypeForVTable(GD);
531 llvm::Constant *Thunk = CGM.GetAddrOfThunk(Name, ThunkVTableTy, GD);
543 : CGM.getTypes().arrangeGlobalDeclaration(GD);
577 setThunkProperties(CGM, TI, ThunkFn, ForVTable, GD);
588 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn);
615 CodeGenFunction(CGM).GenerateVarArgsThunk(ThunkFn, FnInfo, GD, TI);
618 CodeGenFunction(CGM).generateThunk(ThunkFn, FnInfo, GD, TI, IsUnprototyped);
621 setThunkProperties(CGM, TI, ThunkFn, ForVTable, GD);
625 void CodeGenVTables::EmitThunks(GlobalDecl GD) {
627 cast<CXXMethodDecl>(GD.getDecl())->getCanonicalDecl();
630 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
634 VTContext->getThunkInfo(GD);
640 maybeEmitThunk(GD, Thunk, /*ForVTable=*/false);
773 GlobalDecl GD = component.getGlobalDecl();
779 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
820 if (cast<CXXMethodDecl>(GD.getDecl())->isPureVirtual()) {
827 } else if (cast<CXXMethodDecl>(GD.getDecl())->isDeleted()) {
840 fnPtr = maybeEmitThunk(GD, thunkInfo, /*ForVTable=*/true);
843 GD = GD.getWithDecl(thunkInfo.Method);
848 llvm::Type *fnTy = CGM.getTypes().GetFunctionTypeForVTable(GD);
849 fnPtr = CGM.GetAddrOfFunction(GD, fnTy, /*ForVTable=*/true);
851 GD = getItaniumVTableContext().findOriginalMethod(GD);
871 return builder.addSignedPointer(fnPtr, Schema, GD, QualType());