Searched refs:GlobalDecl (Results 1 - 25 of 30) sorted by relevance

12

/external/clang/include/clang/AST/
H A DGlobalDecl.h1 //===--- GlobalDecl.h - Global declaration holder ---------------*- C++ -*-===//
10 // A GlobalDecl can hold either a regular variable/function or a C++ ctor/dtor
24 /// GlobalDecl - represents a global declaration. This can either be a
28 class GlobalDecl { class in namespace:clang
39 GlobalDecl() {} function in class:clang::GlobalDecl
41 GlobalDecl(const VarDecl *D) { Init(D);} function in class:clang::GlobalDecl
42 GlobalDecl(const FunctionDecl *D) { Init(D); } function in class:clang::GlobalDecl
43 GlobalDecl(const BlockDecl *D) { Init(D); } function in class:clang::GlobalDecl
44 GlobalDecl(const CapturedDecl *D) { Init(D); } function in class:clang::GlobalDecl
45 GlobalDecl(cons function in class:clang::GlobalDecl
47 GlobalDecl(const CXXConstructorDecl *D, CXXCtorType Type) function in class:clang::GlobalDecl
49 GlobalDecl(const CXXDestructorDecl *D, CXXDtorType Type) function in class:clang::GlobalDecl
[all...]
H A DVTableBuilder.h19 #include "clang/AST/GlobalDecl.h"
291 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) {
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 {
/external/clang/lib/CodeGen/
H A DCGCXX.cpp104 return TryEmitDefinitionAsAlias(GlobalDecl(D, Dtor_Base),
105 GlobalDecl(BaseD, Dtor_Base),
112 bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl,
113 GlobalDecl TargetDecl,
209 !TryEmitDefinitionAsAlias(GlobalDecl(ctor, Ctor_Complete),
210 GlobalDecl(ctor, Ctor_Base), true);
220 setFunctionLinkage(GlobalDecl(ctor, ctorType), fn);
222 CodeGenFunction(*this).GenerateCode(GlobalDecl(ctor, ctorType), fn, fnInfo);
233 GlobalDecl GD(ctor, ctorType);
255 !TryEmitDefinitionAsAlias(GlobalDecl(dto
[all...]
H A DCGVTables.h19 #include "clang/AST/GlobalDecl.h"
53 void emitThunk(GlobalDecl GD, const ThunkInfo &Thunk, bool ForVTable);
57 void maybeEmitThunkForVTable(GlobalDecl GD, const ThunkInfo &Thunk);
110 void EmitThunks(GlobalDecl GD);
H A DCodeGenModule.h23 #include "clang/AST/GlobalDecl.h"
314 std::map<StringRef, GlobalDecl> DeferredDecls;
319 DeferredGlobal(llvm::GlobalValue *GV, GlobalDecl GD) : GV(GV), GD(GD) {}
321 GlobalDecl GD;
324 void addDeferredDeclToEmit(llvm::GlobalValue *GV, GlobalDecl GD) {
330 std::vector<GlobalDecl> Aliases;
353 llvm::MapVector<GlobalDecl, StringRef> MangledDeclNames;
354 llvm::StringMap<GlobalDecl, llvm::BumpPtrAllocator> Manglings;
450 bool shouldEmitFunction(GlobalDecl GD);
474 GlobalDecl initializedGlobalDec
[all...]
H A DCGCXXABI.h94 virtual bool HasThisReturn(GlobalDecl GD) const { return false; }
242 /// 'this' if HasThisReturn(GlobalDecl(Ctor, T)) is true or 'void' otherwise
268 /// 'this' if HasThisReturn(GlobalDecl(Dtor, T)) is true or 'void' otherwise
297 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
319 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) {
366 GlobalDecl GD,
378 GlobalDecl GD,
387 GlobalDecl GD, bool ReturnAdjustment) = 0;
457 virtual bool NeedsVTTParameter(GlobalDecl GD);
H A DCGVTables.cpp35 llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD,
129 GlobalDecl GD, const ThunkInfo &Thunk) {
193 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD,
219 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs,
222 // Since we didn't pass a GlobalDecl to StartFunction, do this ourselves.
227 void CodeGenFunction::EmitCallAndReturnForThunk(GlobalDecl GD,
300 GlobalDecl GD, const ThunkInfo &Thunk) {
319 void CodeGenVTables::emitThunk(GlobalDecl GD, const ThunkInfo &Thunk,
396 void CodeGenVTables::maybeEmitThunkForVTable(GlobalDecl GD,
415 void CodeGenVTables::EmitThunks(GlobalDecl G
[all...]
H A DCodeGenTypes.h18 #include "clang/AST/GlobalDecl.h"
133 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
144 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
176 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
H A DModuleBuilder.cpp53 GlobalDecl Result;
H A DCodeGenModule.cpp250 for (std::vector<GlobalDecl>::iterator I = Aliases.begin(),
252 const GlobalDecl &GD = *I;
299 for (std::vector<GlobalDecl>::iterator I = Aliases.begin(),
301 const GlobalDecl &GD = *I;
528 StringRef CodeGenModule::getMangledName(GlobalDecl GD) {
556 StringRef CodeGenModule::getBlockMangledName(GlobalDecl GD,
629 CodeGenModule::getFunctionLinkage(GlobalDecl GD) {
821 void CodeGenModule::SetFunctionAttributes(GlobalDecl GD,
1060 GlobalDecl D = G.GD;
1195 GlobalDecl(cas
[all...]
H A DMicrosoftCXXABI.cpp45 bool HasThisReturn(GlobalDecl GD) const override;
171 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
179 CodeGenFunction &CGF, GlobalDecl GD, llvm::Value *This) override;
208 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
217 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD,
235 GlobalDecl GD, bool ReturnAdjustment) override {
425 CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD);
762 bool MicrosoftCXXABI::HasThisReturn(GlobalDecl GD) const {
885 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete));
929 CGM.EmitGlobal(GlobalDecl(
[all...]
H A DCGDeclCXX.cpp429 StartFunction(GlobalDecl(D), getContext().VoidTy, Fn,
452 StartFunction(GlobalDecl(), getContext().VoidTy, Fn,
503 StartFunction(GlobalDecl(), getContext().VoidTy, Fn,
H A DItaniumCXXABI.cpp191 llvm::Value *getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
202 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD,
244 bool NeedsVTTParameter(GlobalDecl GD) override;
284 bool HasThisReturn(GlobalDecl GD) const override {
1092 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base));
1098 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete));
1111 // HasThisReturn(GlobalDecl(Dtor, Type)) is true
1121 CGM.EmitGlobal(GlobalDecl(D, Dtor_Base));
1125 CGM.EmitGlobal(GlobalDecl(D, Dtor_Complete));
1131 CGM.EmitGlobal(GlobalDecl(
[all...]
H A DCodeGenFunction.h151 /// CurGD - The GlobalDecl for the current function being compiled.
152 GlobalDecl CurGD;
1117 llvm::Function *GenerateBlockFunction(GlobalDecl GD,
1147 void GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1152 void StartFunction(GlobalDecl GD,
1181 void StartThunk(llvm::Function *Fn, GlobalDecl GD, const CGFunctionInfo &FnInfo);
1183 void EmitCallAndReturnForThunk(GlobalDecl GD, llvm::Value *Callee,
1188 GlobalDecl GD, const ThunkInfo &Thunk);
1191 GlobalDecl GD, const ThunkInfo &Thunk);
1601 llvm::Value *GetVTTParameter(GlobalDecl G
[all...]
H A DCGDebugInfo.h38 class GlobalDecl;
232 void EmitFunctionStart(GlobalDecl GD,
H A DCGCXXABI.cpp325 bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) {
H A DCGCall.cpp227 GlobalDecl GD(D, ctorKind);
260 GlobalDecl GD(D, CtorKind);
277 GlobalDecl GD(D, dtorKind);
358 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) {
932 llvm::FunctionType *CodeGenTypes::GetFunctionType(GlobalDecl GD) {
1050 llvm::Type *CodeGenTypes::GetFunctionTypeForVTable(GlobalDecl GD) {
H A DCGClass.cpp288 llvm::Value *CodeGenFunction::GetVTTParameter(GlobalDecl GD,
1749 if (llvm::Value *VTT = GetVTTParameter(GlobalDecl(Ctor, CtorType),
2099 CGM.GetAddrOfFunction(GlobalDecl(callOperator),
H A DCGExprCXX.cpp199 Callee = CGM.GetAddrOfFunction(GlobalDecl(DDtor, Dtor_Complete), Ty);
208 Callee = CGM.GetAddrOfFunction(GlobalDecl(Ctor, Ctor_Complete), Ty);
404 // We should be emitting a constructor; GlobalDecl will assert this
H A DCodeGenFunction.cpp521 void CodeGenFunction::StartFunction(GlobalDecl GD,
757 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
/external/clang/test/CodeGen/
H A Ddllimport.c25 // CHECK: @GlobalDecl = external dllimport global i32
26 __declspec(dllimport) int GlobalDecl;
27 USEVAR(GlobalDecl)
/external/clang/test/Sema/
H A Ddllimport.c24 __declspec(dllimport) int GlobalDecl;
29 int *VarForInit = &GlobalDecl; // expected-error{{initializer element is not a compile-time constant}}
/external/clang/test/CodeGenCXX/
H A Ddllimport.cpp44 // MSC-DAG: @"\01?GlobalDecl@@3HA" = external dllimport global i32
45 // GNU-DAG: @GlobalDecl = external dllimport global i32
46 __declspec(dllimport) int GlobalDecl; variable
47 USEVAR(GlobalDecl)
/external/clang/lib/AST/
H A DVTableBuilder.cpp786 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
1703 MethodVTableIndices[GlobalDecl(DD, Dtor_Complete)]
1705 MethodVTableIndices[GlobalDecl(DD, Dtor_Deleting)]
2204 GlobalDecl GD(DD, Dtor_Complete);
2270 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) {
2420 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
2557 MethodVFTableLocations[GlobalDecl(DD, Dtor_Deleting)] = Loc;
3324 GlobalDecl GD = Loc.first;
3470 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) {
/external/clang/test/SemaCXX/
H A Ddllimport.cpp37 __declspec(dllimport) int GlobalDecl; variable

Completed in 509 milliseconds

12