Home
last modified time | relevance | path

Searched refs:GlobalDecl (Results 1 – 25 of 34) sorted by relevance

12

/external/clang/include/clang/AST/
DGlobalDecl.h28 class GlobalDecl {
39 GlobalDecl() {} in GlobalDecl() function
41 GlobalDecl(const VarDecl *D) { Init(D);} in GlobalDecl() function
42 GlobalDecl(const FunctionDecl *D) { Init(D); } in GlobalDecl() function
43 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl() function
44 GlobalDecl(const CapturedDecl *D) { Init(D); } in GlobalDecl() function
45 GlobalDecl(const ObjCMethodDecl *D) { Init(D); } in GlobalDecl() function
47 GlobalDecl(const CXXConstructorDecl *D, CXXCtorType Type) in GlobalDecl() function
49 GlobalDecl(const CXXDestructorDecl *D, CXXDtorType Type) in GlobalDecl() function
52 GlobalDecl getCanonicalDecl() const { in getCanonicalDecl()
[all …]
DVTableBuilder.h291 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { in getThunkInfo()
314 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
355 uint64_t getMethodVTableIndex(GlobalDecl GD);
482 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
521 const MethodVFTableLocation &getMethodVFTableLocation(GlobalDecl GD);
523 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo()
/external/clang/lib/CodeGen/
DCGCXX.cpp105 return TryEmitDefinitionAsAlias(GlobalDecl(D, Dtor_Base), in TryEmitBaseDestructorAsAlias()
106 GlobalDecl(BaseD, Dtor_Base), in TryEmitBaseDestructorAsAlias()
113 bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl, in TryEmitDefinitionAsAlias()
114 GlobalDecl TargetDecl, in TryEmitDefinitionAsAlias()
212 GlobalDecl GD; in codegenCXXStructor()
214 GD = GlobalDecl(DD, toCXXDtorType(Type)); in codegenCXXStructor()
217 GD = GlobalDecl(CD, toCXXCtorType(Type)); in codegenCXXStructor()
230 GlobalDecl GD; in getAddrOfCXXStructor()
232 GD = GlobalDecl(CD, toCXXCtorType(Type)); in getAddrOfCXXStructor()
235 GD = GlobalDecl(DD, toCXXDtorType(Type)); in getAddrOfCXXStructor()
[all …]
DCodeGenModule.h321 std::map<StringRef, GlobalDecl> DeferredDecls;
326 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {} in DeferredGlobal()
328 GlobalDecl GD;
331 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) { in addDeferredDeclToEmit()
337 std::vector<GlobalDecl> Aliases;
360 llvm::MapVector<GlobalDecl, StringRef> MangledDeclNames;
361 llvm::StringMap<GlobalDecl, llvm::BumpPtrAllocator> Manglings;
457 bool shouldEmitFunction(GlobalDecl GD);
481 GlobalDecl initializedGlobalDecl;
568 GlobalDecl &Result) const;
[all …]
DCGCXXABI.h95 virtual bool HasThisReturn(GlobalDecl GD) const { return false; } in HasThisReturn()
97 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn()
298 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall()
320 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) { in adjustThisParameterInVirtualFunctionPrologue()
367 GlobalDecl GD,
378 GlobalDecl GD, in adjustCallArgsForDestructorThunk()
387 GlobalDecl GD, bool ReturnAdjustment) = 0;
456 virtual bool NeedsVTTParameter(GlobalDecl GD);
DCGVTables.h53 void emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool ForVTable);
57 void maybeEmitThunkForVTable(GlobalDecl GD, const ThunkInfo &Thunk);
110 void EmitThunks(GlobalDecl GD);
DCGVTables.cpp35 llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, in GetAddrOfThunk()
129 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk()
189 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk()
216 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, in StartThunk()
367 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateThunk()
389 void CodeGenVTables::emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, in emitThunk()
466 void CodeGenVTables::maybeEmitThunkForVTable(GlobalDecl GD, in maybeEmitThunkForVTable()
485 void CodeGenVTables::EmitThunks(GlobalDecl GD) in EmitThunks()
546 GlobalDecl GD; in CreateVTableInitializer()
556 GD = GlobalDecl(Component.getDestructorDecl(), Dtor_Complete); in CreateVTableInitializer()
[all …]
DCodeGenTypes.h192 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
203 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
235 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
DCodeGenModule.cpp264 for (std::vector<GlobalDecl>::iterator I = Aliases.begin(), in checkAliases()
266 const GlobalDecl &GD = *I; in checkAliases()
313 for (std::vector<GlobalDecl>::iterator I = Aliases.begin(), in checkAliases()
315 const GlobalDecl &GD = *I; in checkAliases()
555 StringRef CodeGenModule::getMangledName(GlobalDecl GD) { in getMangledName()
583 StringRef CodeGenModule::getBlockMangledName(GlobalDecl GD, in getBlockMangledName()
655 CodeGenModule::getFunctionLinkage(GlobalDecl GD) { in getFunctionLinkage()
869 void CodeGenModule::SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, in SetFunctionAttributes()
1111 GlobalDecl D = G.GD; in EmitDeferred()
1315 GlobalDecl(cast<FunctionDecl>(VD)), in GetWeakRefReference()
[all …]
DItaniumCXXABI.cpp205 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
217 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD, in setThunkLinkage()
270 bool NeedsVTTParameter(GlobalDecl GD) override;
312 bool HasThisReturn(GlobalDecl GD) const override { in HasThisReturn()
1194 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base)); in EmitCXXConstructors()
1200 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete)); in EmitCXXConstructors()
1221 CGM.EmitGlobal(GlobalDecl(D, Dtor_Base)); in EmitCXXDestructors()
1225 CGM.EmitGlobal(GlobalDecl(D, Dtor_Complete)); in EmitCXXDestructors()
1231 CGM.EmitGlobal(GlobalDecl(D, Dtor_Deleting)); in EmitCXXDestructors()
1279 if (!NeedsVTTParameter(GlobalDecl(D, Type))) in addImplicitConstructorArgs()
[all …]
DMicrosoftCXXABI.cpp50 bool HasThisReturn(GlobalDecl GD) const override;
51 bool hasMostDerivedReturn(GlobalDecl GD) const override;
186 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
194 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) override;
223 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
233 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, in adjustCallArgsForDestructorThunk()
251 GlobalDecl GD, bool ReturnAdjustment) override { in setThunkLinkage()
457 CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD);
969 bool MicrosoftCXXABI::HasThisReturn(GlobalDecl GD) const { in HasThisReturn()
973 static bool isDeletingDtor(GlobalDecl GD) { in isDeletingDtor()
[all …]
DCGDebugInfo.h38 class GlobalDecl; variable
235 void EmitFunctionStart(GlobalDecl GD,
424 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile Unit,
DCGDeclCXX.cpp476 StartFunction(GlobalDecl(D), getContext().VoidTy, Fn, in GenerateCXXGlobalVarDeclInitFunc()
499 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalInitFunc()
550 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalDtorsFunc()
DCodeGenPGO.h94 void checkGlobalDecl(GlobalDecl GD);
DModuleBuilder.cpp77 GlobalDecl Result; in GetDeclForMangledName()
DCodeGenFunction.h153 GlobalDecl CurGD;
1177 llvm::Function *GenerateBlockFunction(GlobalDecl GD,
1207 void GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1212 void StartFunction(GlobalDecl GD,
1244 void StartThunk(llvm::Function *Fn, GlobalDecl GD,
1255 GlobalDecl GD, const ThunkInfo &Thunk);
1258 GlobalDecl GD, const ThunkInfo &Thunk);
1686 llvm::Value *GetVTTParameter(GlobalDecl GD, bool ForVirtualBase,
DCGDecl.cpp161 ContextName = CGM.getBlockMangledName(GlobalDecl(), BD); in getStaticDeclName()
246 GlobalDecl GD; in getOrCreateStaticVarDecl()
248 GD = GlobalDecl(CD, Ctor_Base); in getOrCreateStaticVarDecl()
250 GD = GlobalDecl(DD, Dtor_Base); in getOrCreateStaticVarDecl()
252 GD = GlobalDecl(FD); in getOrCreateStaticVarDecl()
DCGOpenMPRuntime.cpp850 CtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidPtrTy, Fn, FI, in emitThreadPrivateVarDefinition()
884 DtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, Fn, FI, Args, in emitThreadPrivateVarDefinition()
925 InitCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, InitFunction, in emitThreadPrivateVarDefinition()
1130 CGF.StartFunction(GlobalDecl(), C.VoidTy, Fn, CGFI, Args); in emitCopyprivateCopyFunction()
1524 CGF.StartFunction(GlobalDecl(), KmpInt32Ty, TaskEntry, TaskEntryFnInfo, Args); in emitProxyTaskFunction()
1655 CGF.StartFunction(GlobalDecl(), C.VoidTy, Fn, CGFI, Args); in emitReductionFunction()
DCGCXXABI.cpp302 bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) { in NeedsVTTParameter()
DCGCall.cpp199 GlobalDecl GD; in arrangeCXXStructorDeclaration()
201 GD = GlobalDecl(CD, toCXXCtorType(Type)); in arrangeCXXStructorDeclaration()
204 GD = GlobalDecl(DD, toCXXDtorType(Type)); in arrangeCXXStructorDeclaration()
241 GlobalDecl GD(D, CtorKind); in arrangeCXXConstructorCall()
322 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { in arrangeGlobalDeclaration()
1242 llvm::FunctionType *CodeGenTypes::GetFunctionType(GlobalDecl GD) { in GetFunctionType()
1367 llvm::Type *CodeGenTypes::GetFunctionTypeForVTable(GlobalDecl GD) { in GetFunctionTypeForVTable()
DCGClass.cpp300 llvm::Value *CodeGenFunction::GetVTTParameter(GlobalDecl GD, in GetVTTParameter()
1839 if (llvm::Value *VTT = GetVTTParameter(GlobalDecl(Ctor, CtorType), in EmitDelegateCXXConstructorCall()
2311 CGM.GetAddrOfFunction(GlobalDecl(callOperator), in EmitForwardingCallToLambda()
/external/clang/test/CodeGen/
Ddllimport.c26 __declspec(dllimport) int GlobalDecl;
27 USEVAR(GlobalDecl)
/external/clang/test/Sema/
Ddllimport.c24 __declspec(dllimport) int GlobalDecl; variable
29 int *VarForInit = &GlobalDecl; // expected-error{{initializer element is not a compile-time constan…
/external/clang/test/CodeGenCXX/
Ddllimport.cpp46 __declspec(dllimport) int GlobalDecl;
47 USEVAR(GlobalDecl)
/external/clang/lib/AST/
DVTableBuilder.cpp788 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
1706 MethodVTableIndices[GlobalDecl(DD, Dtor_Complete)] in LayoutPrimaryAndSecondaryVTables()
1708 MethodVTableIndices[GlobalDecl(DD, Dtor_Deleting)] in LayoutPrimaryAndSecondaryVTables()
2209 GlobalDecl GD(DD, Dtor_Complete); in dumpLayout()
2275 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { in getMethodVTableIndex()
2429 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
2573 MethodVFTableLocations[GlobalDecl(DD, Dtor_Deleting)] = Loc; in LayoutVFTable()
3527 GlobalDecl GD = Loc.first; in computeVTableRelatedInformation()
3673 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { in getMethodVFTableLocation()

12