Searched defs:GD (Results 1 - 14 of 14) sorted by relevance

/external/clang/include/clang/AST/
H A DGlobalDecl.h79 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());
/external/clang/lib/CodeGen/
H A DCGCXX.cpp203 GlobalDecl GD(ctor, ctorType);
205 StringRef name = getMangledName(GD);
213 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD,
261 GlobalDecl GD(dtor, dtorType);
263 StringRef name = getMangledName(GD);
271 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD,
276 CodeGenFunction::BuildVirtualCall(GlobalDecl GD, llvm::Value *This, argument
278 GD = GD.getCanonicalDecl();
279 uint64_t VTableIndex = CGM.getVTableContext().getMethodVTableIndex(GD);
288 BuildAppleKextVirtualCall(CodeGenFunction &CGF, GlobalDecl GD, llvm::Type *Ty, const CXXRecordDecl *RD) argument
[all...]
H A DCGCXXABI.cpp297 bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) { argument
H A DCGVTables.cpp41 llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, argument
43 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
49 getCXXABI().getMangleContext().mangleCXXDtorThunk(DD, GD.getDtorType(),
55 llvm::Type *Ty = getTypes().GetFunctionTypeForVTable(GD);
56 return GetOrCreateLLVMFunction(Name, Ty, GD, /*ForVTable=*/true);
225 GlobalDecl GD, const ThunkInfo &Thunk) {
226 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
233 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
294 GlobalDecl GD, const ThunkInfo &Thunk) {
295 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD
222 GenerateVarArgsThunk( llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
292 GenerateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
396 EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool UseAvailableExternallyLinkage) argument
476 MaybeEmitThunkAvailableExternally(GlobalDecl GD, const ThunkInfo &Thunk) argument
491 EmitThunks(GlobalDecl GD) argument
563 GlobalDecl GD; local
[all...]
H A DCGBlocks.cpp1086 CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, argument
1094 CurGD = GD;
1138 CGM.getBlockMangledName(GD, name, blockDecl);
H A DCodeGenFunction.cpp486 void CodeGenFunction::StartFunction(GlobalDecl GD, argument
492 const Decl *D = GD.getDecl();
551 DI->EmitFunctionStart(GD, FnType, CurFn, Builder);
658 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, argument
660 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
669 CurGD = GD;
672 if (CGM.getCXXABI().HasThisReturn(GD))
685 StartFunction(GD, ResTy, Fn, FnInfo, Args, BodyRange.getBegin());
H A DCodeGenModule.h389 bool shouldEmitFunction(GlobalDecl GD);
581 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) { argument
582 if (isa<CXXConstructorDecl>(GD.getDecl()))
583 return GetAddrOfCXXConstructor(cast<CXXConstructorDecl>(GD.getDecl()),
584 GD.getCtorType());
585 else if (isa<CXXDestructorDecl>(GD.getDecl()))
586 return GetAddrOfCXXDestructor(cast<CXXDestructorDecl>(GD.getDecl()),
587 GD.getDtorType());
588 else if (isa<FunctionDecl>(GD.getDecl()))
589 return GetAddrOfFunction(GD);
930 setFunctionLinkage(GlobalDecl GD, llvm::GlobalValue *V) argument
[all...]
H A DItaniumCXXABI.cpp179 bool NeedsVTTParameter(GlobalDecl GD);
188 bool HasThisReturn(GlobalDecl GD) const {
189 return (isa<CXXConstructorDecl>(GD.getDecl()) || (
190 isa<CXXDestructorDecl>(GD.getDecl()) &&
191 GD.getDtorType() != Dtor_Deleting));
1436 bool ItaniumCXXABI::NeedsVTTParameter(GlobalDecl GD) { argument
1437 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
1444 if (isa<CXXConstructorDecl>(MD) && GD.getCtorType() == Ctor_Base)
1448 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
H A DMicrosoftCXXABI.cpp34 bool HasThisReturn(GlobalDecl GD) const;
340 bool MicrosoftCXXABI::HasThisReturn(GlobalDecl GD) const {
341 return isa<CXXConstructorDecl>(GD.getDecl());
426 static bool IsDeletingDtor(GlobalDecl GD) { argument
427 const CXXMethodDecl* MD = cast<CXXMethodDecl>(GD.getDecl());
429 return GD.getDtorType() == Dtor_Deleting;
H A DCGCall.cpp204 GlobalDecl GD(D, ctorKind);
206 TheCXXABI.HasThisReturn(GD) ? argTypes.front() : Context.VoidTy;
232 GlobalDecl GD(D, dtorKind);
234 TheCXXABI.HasThisReturn(GD) ? argTypes.front() : Context.VoidTy;
314 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { argument
316 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
319 return arrangeCXXConstructorDeclaration(CD, GD.getCtorType());
322 return arrangeCXXDestructor(DD, GD.getDtorType());
885 llvm::FunctionType *CodeGenTypes::GetFunctionType(GlobalDecl GD) { argument
886 const CGFunctionInfo &FI = arrangeGlobalDeclaration(GD);
977 GetFunctionTypeForVTable(GlobalDecl GD) argument
[all...]
H A DCGClass.cpp286 llvm::Value *CodeGenFunction::GetVTTParameter(GlobalDecl GD, argument
289 if (!CGM.getCXXABI().NeedsVTTParameter(GD)) {
295 const CXXRecordDecl *Base = cast<CXXMethodDecl>(GD.getDecl())->getParent();
H A DCodeGenModule.cpp416 StringRef CodeGenModule::getMangledName(GlobalDecl GD) { argument
417 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
419 StringRef &Str = MangledDeclNames[GD.getCanonicalDecl()];
434 getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out);
436 getCXXABI().getMangleContext().mangleCXXDtor(D, GD.getDtorType(), Out);
451 void CodeGenModule::getBlockMangledName(GlobalDecl GD, MangleBuffer &Buffer, argument
454 const Decl *D = GD.getDecl();
460 MangleCtx.mangleCtorBlock(CD, GD.getCtorType(), BD, Out);
462 MangleCtx.mangleDtorBlock(DD, GD.getDtorType(), BD, Out);
514 CodeGenModule::getFunctionLinkage(GlobalDecl GD) { argument
708 SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, bool IsIncompleteFunction) argument
1119 EmitGlobal(GlobalDecl GD) argument
1256 shouldEmitFunction(GlobalDecl GD) argument
1288 EmitGlobalDefinition(GlobalDecl GD) argument
1335 GetOrCreateLLVMFunction(StringRef MangledName, llvm::Type *Ty, GlobalDecl GD, bool ForVTable, llvm::AttributeSet ExtraAttrs) argument
1445 GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty, bool ForVTable) argument
2021 EmitGlobalFunctionDefinition(GlobalDecl GD) argument
2106 EmitAliasDefinition(GlobalDecl GD) argument
3063 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D)); local
[all...]
H A DCGDebugInfo.cpp2396 void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, argument
2405 const Decl *D = GD.getDecl();
2438 LinkageName = CGM.getMangledName(GD);
/external/clang/lib/AST/
H A DVTableBuilder.cpp2235 GlobalDecl GD(DD, Dtor_Complete);
2236 assert(MethodVTableIndices.count(GD));
2237 uint64_t VTableIndex = MethodVTableIndices[GD];
2241 GlobalDecl GD(DD, Dtor_Deleting);
2242 assert(MethodVTableIndices.count(GD));
2243 IndicesMap[MethodVTableIndices[GD]] = MethodName + " [scalar deleting]";
2300 uint64_t VTableContext::getMethodVTableIndex(GlobalDecl GD) { argument
2301 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD);
2305 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
2309 I = MethodVTableIndices.find(GD);
3253 getMethodVFTableLocation(GlobalDecl GD) argument
[all...]

Completed in 286 milliseconds