Searched refs:GD (Results 1 - 18 of 18) sorted by relevance

/external/clang/lib/CodeGen/
H A DCGVTables.h56 void EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk,
63 void MaybeEmitThunkAvailableExternally(GlobalDecl GD, const ThunkInfo &Thunk);
87 static bool needsVTTParameter(GlobalDecl GD);
128 void EmitThunks(GlobalDecl GD);
H A DCGVTables.cpp61 llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, argument
63 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
69 getCXXABI().getMangleContext().mangleCXXDtorThunk(DD, GD.getDtorType(),
75 llvm::Type *Ty = getTypes().GetFunctionTypeForVTable(GD);
76 return GetOrCreateLLVMFunction(Name, Ty, GD, /*ForVTable=*/true);
239 GlobalDecl GD, const ThunkInfo &Thunk) {
240 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
247 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
305 GlobalDecl GD, const ThunkInfo &Thunk) {
306 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD
236 GenerateVarArgsThunk( llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
303 GenerateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
402 EmitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool UseAvailableExternallyLinkage) argument
475 MaybeEmitThunkAvailableExternally(GlobalDecl GD, const ThunkInfo &Thunk) argument
490 EmitThunks(GlobalDecl GD) argument
556 GlobalDecl GD; local
[all...]
H A DCodeGenModule.h505 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) { argument
506 if (isa<CXXConstructorDecl>(GD.getDecl()))
507 return GetAddrOfCXXConstructor(cast<CXXConstructorDecl>(GD.getDecl()),
508 GD.getCtorType());
509 else if (isa<CXXDestructorDecl>(GD.getDecl()))
510 return GetAddrOfCXXDestructor(cast<CXXDestructorDecl>(GD.getDecl()),
511 GD.getDtorType());
512 else if (isa<FunctionDecl>(GD.getDecl()))
513 return GetAddrOfFunction(GD);
515 return GetAddrOfGlobalVar(cast<VarDecl>(GD
[all...]
H A DCodeGenModule.cpp368 StringRef CodeGenModule::getMangledName(GlobalDecl GD) { argument
369 const NamedDecl *ND = cast<NamedDecl>(GD.getDecl());
371 StringRef &Str = MangledDeclNames[GD.getCanonicalDecl()];
386 getCXXABI().getMangleContext().mangleCXXCtor(D, GD.getCtorType(), Out);
388 getCXXABI().getMangleContext().mangleCXXDtor(D, GD.getDtorType(), Out);
406 void CodeGenModule::getBlockMangledName(GlobalDecl GD, MangleBuffer &Buffer, argument
409 const Decl *D = GD.getDecl();
415 MangleCtx.mangleCtorBlock(CD, GD.getCtorType(), BD, Out);
417 MangleCtx.mangleDtorBlock(DD, GD.getDtorType(), BD, Out);
633 void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, argument
850 EmitGlobal(GlobalDecl GD) argument
1001 EmitGlobalDefinition(GlobalDecl GD) argument
1142 GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty, bool ForVTable) argument
1824 EmitGlobalFunctionDefinition(GlobalDecl GD) argument
1903 EmitAliasDefinition(GlobalDecl GD) argument
2726 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D)); local
[all...]
H A DCGVTT.cpp123 bool CodeGenVTables::needsVTTParameter(GlobalDecl GD) { argument
124 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
131 if (isa<CXXConstructorDecl>(MD) && GD.getCtorType() == Ctor_Base)
135 if (isa<CXXDestructorDecl>(MD) && GD.getDtorType() == Dtor_Base)
H A DCGCXX.cpp216 GlobalDecl GD(ctor, ctorType);
218 StringRef name = getMangledName(GD);
226 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD,
280 GlobalDecl GD(dtor, dtorType);
282 StringRef name = getMangledName(GD);
289 return cast<llvm::Function>(GetOrCreateLLVMFunction(name, fnType, GD,
H A DCodeGenTypes.h131 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
142 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
174 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
H A DCodeGenFunction.cpp330 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, argument
335 const Decl *D = GD.getDecl();
391 DI->EmitFunctionStart(GD, FnType, CurFn, Builder);
491 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, argument
493 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
502 CurGD = GD;
513 StartFunction(GD, ResTy, Fn, FnInfo, Args, BodyRange.getBegin());
H A DCGCall.cpp303 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { argument
305 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
308 return arrangeCXXConstructorDeclaration(CD, GD.getCtorType());
311 return arrangeCXXDestructor(DD, GD.getDtorType());
823 llvm::FunctionType *CodeGenTypes::GetFunctionType(GlobalDecl GD) { argument
824 const CGFunctionInfo &FI = arrangeGlobalDeclaration(GD);
908 llvm::Type *CodeGenTypes::GetFunctionTypeForVTable(GlobalDecl GD) { argument
909 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
917 Info = &arrangeCXXDestructor(cast<CXXDestructorDecl>(MD), GD.getDtorType());
H A DCGDebugInfo.h184 void EmitFunctionStart(GlobalDecl GD, QualType FnType,
H A DItaniumCXXABI.cpp165 static bool HasThisReturn(GlobalDecl GD) { argument
166 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
167 return ((isa<CXXDestructorDecl>(MD) && GD.getDtorType() != Dtor_Deleting) ||
H A DCodeGenFunction.h1350 llvm::Function *GenerateBlockFunction(GlobalDecl GD,
1381 void GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1383 void StartFunction(GlobalDecl GD, QualType RetTy,
1410 GlobalDecl GD, const ThunkInfo &Thunk);
1413 GlobalDecl GD, const ThunkInfo &Thunk);
H A DCGClass.cpp284 static llvm::Value *GetVTTParameter(CodeGenFunction &CGF, GlobalDecl GD, argument
286 if (!CodeGenVTables::needsVTTParameter(GD)) {
292 const CXXRecordDecl *Base = cast<CXXMethodDecl>(GD.getDecl())->getParent();
H A DCGBlocks.cpp996 CodeGenFunction::GenerateBlockFunction(GlobalDecl GD, argument
1006 CurGD = GD;
1050 CGM.getBlockMangledName(GD, name, blockDecl);
H A DCGDebugInfo.cpp2016 void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, QualType FnType, argument
2025 const Decl *D = GD.getDecl();
2050 LinkageName = CGM.getMangledName(GD);
/external/clang/include/clang/AST/
H A DGlobalDecl.h78 GlobalDecl GD; local
79 GD.Value.setFromOpaqueValue(P);
80 return GD;
105 static unsigned getHashValue(clang::GlobalDecl GD) { argument
106 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DVTableBuilder.h345 uint64_t getMethodVTableIndex(GlobalDecl GD);
/external/clang/lib/AST/
H A DVTableBuilder.cpp2303 uint64_t VTableContext::getMethodVTableIndex(GlobalDecl GD) { argument
2304 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD);
2308 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
2312 I = MethodVTableIndices.find(GD);

Completed in 496 milliseconds