/freebsd-10.2-release/contrib/llvm/tools/clang/lib/CodeGen/ |
H A D | CGVTables.cpp | 42 llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, argument 44 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); 50 getCXXABI().getMangleContext().mangleCXXDtorThunk(DD, GD.getDtorType(), 56 llvm::Type *Ty = getTypes().GetFunctionTypeForVTable(GD); 57 return GetOrCreateLLVMFunction(Name, Ty, GD, /*ForVTable=*/true); 177 GlobalDecl GD, const ThunkInfo &Thunk) { 178 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); 185 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); 241 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, argument 244 CurGD = GD; 174 GenerateVarArgsThunk( llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument 272 EmitCallAndReturnForThunk(GlobalDecl GD, llvm::Value *Callee, const ThunkInfo *Thunk) argument 343 GenerateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument 364 emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool ForVTable) argument 436 maybeEmitThunkForVTable(GlobalDecl GD, const ThunkInfo &Thunk) argument 455 EmitThunks(GlobalDecl GD) argument 525 GlobalDecl GD; local [all...] |
H A D | CGVTables.h | 56 void emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool ForVTable); 60 void maybeEmitThunkForVTable(GlobalDecl GD, const ThunkInfo &Thunk); 112 void EmitThunks(GlobalDecl GD);
|
H A D | CGCXX.cpp | 228 GlobalDecl GD(ctor, ctorType); 230 StringRef name = getMangledName(GD); 238 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD, 284 GlobalDecl GD(dtor, dtorType); 286 StringRef name = getMangledName(GD); 294 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD, 299 GlobalDecl GD, 304 GD = GD.getCanonicalDecl(); 310 uint64_t VTableIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(GD); 298 BuildAppleKextVirtualCall(CodeGenFunction &CGF, GlobalDecl GD, llvm::Type *Ty, const CXXRecordDecl *RD) argument [all...] |
H A D | CodeGenModule.h | 398 bool shouldEmitFunction(GlobalDecl GD); 604 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) { argument 605 if (isa<CXXConstructorDecl>(GD.getDecl())) 606 return GetAddrOfCXXConstructor(cast<CXXConstructorDecl>(GD.getDecl()), 607 GD.getCtorType()); 608 else if (isa<CXXDestructorDecl>(GD.getDecl())) 609 return GetAddrOfCXXDestructor(cast<CXXDestructorDecl>(GD.getDecl()), 610 GD.getDtorType()); 611 else if (isa<FunctionDecl>(GD.getDecl())) 612 return GetAddrOfFunction(GD); 951 setFunctionLinkage(GlobalDecl GD, llvm::GlobalValue *V) argument [all...] |
H A D | CGCXXABI.h | 106 virtual bool HasThisReturn(GlobalDecl GD) const { return false; } 277 GlobalDecl GD, 296 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) { 337 GlobalDecl GD, 349 GlobalDecl GD, 427 virtual bool NeedsVTTParameter(GlobalDecl GD); 276 adjustThisArgumentForVirtualCall(CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) argument 295 adjustThisParameterInVirtualFunctionPrologue( CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) argument 348 adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, CallArgList &CallArgs) argument
|
H A D | CodeGenModule.cpp | 207 const GlobalDecl &GD = *I; local 208 const ValueDecl *D = cast<ValueDecl>(GD.getDecl()); 210 StringRef MangledName = getMangledName(GD); 227 const GlobalDecl &GD = *I; local 228 StringRef MangledName = getMangledName(GD); 483 StringRef CodeGenModule::getMangledName(GlobalDecl GD) { argument 484 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl()); 486 StringRef &Str = MangledDeclNames[GD.getCanonicalDecl()]; 501 getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out); 503 getCXXABI().getMangleContext().mangleCXXDtor(D, GD 518 getBlockMangledName(GlobalDecl GD, MangleBuffer &Buffer, const BlockDecl *BD) argument 581 getFunctionLinkage(GlobalDecl GD) argument 775 SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, bool IsIncompleteFunction) argument 1163 EmitGlobal(GlobalDecl GD) argument 1300 shouldEmitFunction(GlobalDecl GD) argument 1332 EmitGlobalDefinition(GlobalDecl GD) argument 1379 GetOrCreateLLVMFunction(StringRef MangledName, llvm::Type *Ty, GlobalDecl GD, bool ForVTable, llvm::AttributeSet ExtraAttrs) argument 1495 GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty, bool ForVTable) argument 2090 EmitGlobalFunctionDefinition(GlobalDecl GD) argument 2179 EmitAliasDefinition(GlobalDecl GD) argument 3142 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D)); local [all...] |
H A D | MicrosoftCXXABI.cpp | 35 bool HasThisReturn(GlobalDecl GD) const; 140 GlobalDecl GD, 148 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This); 173 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, 181 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, argument 183 assert(GD.getDtorType() == Dtor_Deleting && 445 bool MicrosoftCXXABI::HasThisReturn(GlobalDecl GD) const { 446 return isa<CXXConstructorDecl>(GD.getDecl()); 587 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) { 588 GD 586 adjustThisArgumentForVirtualCall( CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) argument 673 IsDeletingDtor(GlobalDecl GD) argument 707 adjustThisParameterInVirtualFunctionPrologue( CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) argument 920 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This, llvm::Type *Ty) argument [all...] |
H A D | CodeGenTypes.h | 133 llvm::FunctionType *GetFunctionType(GlobalDecl GD); 144 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD); 176 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
|
H A D | ItaniumCXXABI.cpp | 166 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, 215 bool NeedsVTTParameter(GlobalDecl GD); 224 bool HasThisReturn(GlobalDecl GD) const { 225 return (isa<CXXConstructorDecl>(GD.getDecl()) || ( 226 isa<CXXDestructorDecl>(GD.getDecl()) && 227 GD.getDtorType() != Dtor_Deleting)); 1035 GlobalDecl GD, 1038 GD = GD.getCanonicalDecl(); 1042 uint64_t VTableIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(GD); 1034 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This, llvm::Type *Ty) argument 1658 NeedsVTTParameter(GlobalDecl GD) argument [all...] |
H A D | CodeGenFunction.cpp | 486 void CodeGenFunction::StartFunction(GlobalDecl GD, argument 492 const Decl *D = GD.getDecl(); 567 DI->EmitFunctionStart(GD, FnType, CurFn, Builder); 685 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, argument 687 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); 696 CurGD = GD; 699 if (CGM.getCXXABI().HasThisReturn(GD)) 712 StartFunction(GD, ResTy, Fn, FnInfo, Args, BodyRange.getBegin());
|
H A D | CGCall.cpp | 201 GlobalDecl GD(D, ctorKind); 203 TheCXXABI.HasThisReturn(GD) ? argTypes.front() : Context.VoidTy; 228 GlobalDecl GD(D, dtorKind); 230 TheCXXABI.HasThisReturn(GD) ? argTypes.front() : Context.VoidTy; 309 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { argument 311 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); 314 return arrangeCXXConstructorDeclaration(CD, GD.getCtorType()); 317 return arrangeCXXDestructor(DD, GD.getDtorType()); 881 llvm::FunctionType *CodeGenTypes::GetFunctionType(GlobalDecl GD) { argument 882 const CGFunctionInfo &FI = arrangeGlobalDeclaration(GD); 973 GetFunctionTypeForVTable(GlobalDecl GD) argument [all...] |
H A D | CodeGenFunction.h | 1097 llvm::Function *GenerateBlockFunction(GlobalDecl GD, 1127 void GenerateCode(GlobalDecl GD, llvm::Function *Fn, 1129 void StartFunction(GlobalDecl GD, 1156 void StartThunk(llvm::Function *Fn, GlobalDecl GD, const CGFunctionInfo &FnInfo); 1158 void EmitCallAndReturnForThunk(GlobalDecl GD, llvm::Value *Callee, 1163 GlobalDecl GD, const ThunkInfo &Thunk); 1166 GlobalDecl GD, const ThunkInfo &Thunk); 1572 llvm::Value *GetVTTParameter(GlobalDecl GD, bool ForVirtualBase,
|
H A D | CGCXXABI.cpp | 290 bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) { argument
|
H A D | CGClass.cpp | 288 llvm::Value *CodeGenFunction::GetVTTParameter(GlobalDecl GD, argument 291 if (!CGM.getCXXABI().NeedsVTTParameter(GD)) { 297 const CXXRecordDecl *Base = cast<CXXMethodDecl>(GD.getDecl())->getParent(); 1833 GlobalDecl GD(DD, Type); 1834 llvm::Value *VTT = GetVTTParameter(GD, ForVirtualBase, Delegating); 1844 This = CGM.getCXXABI().adjustThisArgumentForVirtualCall(*this, GD, This);
|
H A D | CGDebugInfo.h | 222 void EmitFunctionStart(GlobalDecl GD, QualType FnType,
|
H A D | CGBlocks.cpp | 1086 CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, argument 1092 CurGD = GD; 1136 CGM.getBlockMangledName(GD, name, blockDecl);
|
H A D | CGDebugInfo.cpp | 2444 void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, argument 2453 const Decl *D = GD.getDecl(); 2486 LinkageName = CGM.getMangledName(GD);
|
/freebsd-10.2-release/contrib/llvm/tools/clang/include/clang/AST/ |
H A D | GlobalDecl.h | 79 GlobalDecl GD; local 80 GD.Value.setFromOpaqueValue(P); 81 return GD; 106 static unsigned getHashValue(clang::GlobalDecl GD) { argument 107 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
|
H A D | VTableBuilder.h | 286 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { argument 287 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl()); 349 uint64_t getMethodVTableIndex(GlobalDecl GD); 493 const MethodVFTableLocation &getMethodVFTableLocation(GlobalDecl GD); 495 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { argument 497 if (isa<CXXDestructorDecl>(GD.getDecl()) && 498 GD.getDtorType() == Dtor_Complete) 500 return VTableContextBase::getThunkInfo(GD);
|
/freebsd-10.2-release/contrib/llvm/tools/clang/lib/AST/ |
H A D | VTableBuilder.cpp | 2219 GlobalDecl GD(DD, Dtor_Complete); 2220 assert(MethodVTableIndices.count(GD)); 2221 uint64_t VTableIndex = MethodVTableIndices[GD]; 2292 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { argument 2293 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD); 2297 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent(); 2301 I = MethodVTableIndices.find(GD); 3411 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { argument 3412 assert(cast<CXXMethodDecl>(GD.getDecl())->isVirtual() && 3414 if (isa<CXXDestructorDecl>(GD [all...] |