Home
last modified time | relevance | path

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

123

/openbsd-src/gnu/llvm/clang/include/clang/AST/
H A DGlobalDecl.h56 class GlobalDecl {
69 GlobalDecl() = default;
70 GlobalDecl(const VarDecl *D) { Init(D);} in GlobalDecl() function
71 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
79 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind) in GlobalDecl() function
83 GlobalDecl(const NamedDecl *D) { Init(D); } in GlobalDecl() function
84 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl() function
85 GlobalDecl(const CapturedDecl *D) { Init(D); } in GlobalDecl() function
86 GlobalDecl(const ObjCMethodDecl *D) { Init(D); } in GlobalDecl() function
87 GlobalDecl(const OMPDeclareReductionDecl *D) { Init(D); } in GlobalDecl() function
[all …]
H A DVTableBuilder.h153 GlobalDecl getGlobalDecl() const { in getGlobalDecl()
160 return GlobalDecl(getFunctionDecl()); in getGlobalDecl()
162 return GlobalDecl(DtorDecl, CXXDtorType::Dtor_Complete); in getGlobalDecl()
164 return GlobalDecl(DtorDecl, CXXDtorType::Dtor_Deleting); in getGlobalDecl()
342 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { in getThunkInfo()
368 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
418 uint64_t getMethodVTableIndex(GlobalDecl GD);
550 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
591 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
593 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo()
H A DMangle.h131 void mangleName(GlobalDecl GD, raw_ostream &);
132 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
170 virtual void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
173 virtual void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenModule.h349 llvm::DenseMap<StringRef, GlobalDecl> DeferredDecls;
353 std::vector<GlobalDecl> DeferredDeclsToEmit;
354 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit()
360 llvm::DenseMap<llvm::StringRef, GlobalDecl> EmittedDeferredDecls;
362 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl()
374 std::vector<GlobalDecl> Aliases;
379 std::vector<GlobalDecl> MultiVersionFuncs;
397 llvm::DenseSet<GlobalDecl> DiagnosedConflictingDefinitions;
420 llvm::MapVector<GlobalDecl, StringRef> MangledDeclNames;
421 llvm::StringMap<GlobalDecl, llvm::BumpPtrAllocator> Manglings;
[all …]
H A DCGCXX.cpp112 GlobalDecl AliasDecl(D, Dtor_Base); in TryEmitBaseDestructorAsAlias()
113 GlobalDecl TargetDecl(BaseD, Dtor_Base); in TryEmitBaseDestructorAsAlias()
207 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor()
222 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor()
248 GlobalDecl GD, in BuildAppleKextVirtualCall()
304 GlobalDecl(DD, Dtor_Complete)); in BuildAppleKextVirtualDestructorCall()
306 return ::BuildAppleKextVirtualCall(*this, GlobalDecl(DD, Type), Ty, RD); in BuildAppleKextVirtualDestructorCall()
H A DCGCXXABI.h106 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
127 virtual bool HasThisReturn(GlobalDecl GD) const { in HasThisReturn()
135 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn()
358 buildStructorSignature(GlobalDecl GD,
382 virtual const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) { in getThisArgumentTypeForMethod()
390 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall()
410 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment()
481 GlobalDecl GD, Address This,
496 GlobalDecl GD, in adjustCallArgsForDestructorThunk()
506 GlobalDecl GD, bool ReturnAdjustment) = 0;
[all …]
H A DCGCall.h42 GlobalDecl CalleeDecl;
46 CGCalleeInfo(const FunctionProtoType *calleeProtoTy, GlobalDecl calleeDecl) in CGCalleeInfo()
50 CGCalleeInfo(GlobalDecl calleeDecl) in CGCalleeInfo()
56 const GlobalDecl getCalleeDecl() const { return CalleeDecl; } in getCalleeDecl()
79 GlobalDecl MD;
140 static CGCallee forVirtual(const CallExpr *CE, GlobalDecl MD, Address Addr, in forVirtual()
196 GlobalDecl getVirtualMethodDecl() const { in getVirtualMethodDecl()
H A DCodeGenTypes.h43 class GlobalDecl; variable
139 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
155 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
187 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
237 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
H A DModuleBuilder.cpp114 GlobalDecl Result; in GetDeclForMangledName()
128 llvm::StringRef GetMangledName(GlobalDecl GD) { in GetMangledName()
132 llvm::Constant *GetAddrOfGlobal(GlobalDecl global, bool isForDefinition) { in GetAddrOfGlobal()
348 llvm::StringRef CodeGenerator::GetMangledName(GlobalDecl GD) { in GetMangledName()
352 llvm::Constant *CodeGenerator::GetAddrOfGlobal(GlobalDecl global, in GetAddrOfGlobal()
H A DCGDebugInfo.h40 class GlobalDecl; variable
439 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
444 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
450 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
512 void EmitGlobalAlias(const llvm::GlobalValue *GV, const GlobalDecl Decl);
698 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
702 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
706 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
769 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
860 ApplyInlineDebugLocation(CodeGenFunction &CGF, GlobalDecl InlinedFn);
H A DCodeGenModule.cpp380 for (const GlobalDecl &GD : Aliases) { in checkAliases()
436 for (const GlobalDecl &GD : Aliases) { in checkAliases()
613 GlobalDecl GD; in Release()
615 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in Release()
617 GD = GlobalDecl(D); in Release()
1248 GlobalDecl GD) const { in setDLLImportDLLExport()
1271 GlobalDecl GD) const { in setGVProperties()
1392 static bool isUniqueInternalLinkageDecl(GlobalDecl GD, in isUniqueInternalLinkageDecl()
1426 static std::string getMangledNameImpl(CodeGenModule &CGM, GlobalDecl GD, in getMangledNameImpl()
1500 void CodeGenModule::UpdateMultiVersionNames(GlobalDecl GD, in UpdateMultiVersionNames()
[all …]
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
140 void EmitThunks(GlobalDecl GD);
H A DMicrosoftCXXABI.cpp56 bool HasThisReturn(GlobalDecl GD) const override;
57 bool hasMostDerivedReturn(GlobalDecl GD) const override;
65 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
219 buildStructorSignature(GlobalDecl GD,
238 const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) override { in getThisArgumentTypeForMethod()
242 GlobalDecl LookupGD = GD; in getThisArgumentTypeForMethod()
251 LookupGD = GlobalDecl(DD, Dtor_Deleting); in getThisArgumentTypeForMethod()
269 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
325 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
334 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, in adjustCallArgsForDestructorThunk()
[all …]
H A DCGVTables.cpp35 GlobalDecl GD) { in GetAddrOfThunk()
42 GlobalDecl GD) { in setThunkProperties()
161 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk()
240 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk()
275 StartFunction(GlobalDecl(), ResultType, Fn, FnInfo, FunctionArgs, in StartThunk()
396 void CodeGenFunction::EmitMustTailThunk(GlobalDecl GD, in EmitMustTailThunk()
450 const CGFunctionInfo &FnInfo, GlobalDecl GD, in generateThunk()
494 llvm::Constant *CodeGenVTables::maybeEmitThunk(GlobalDecl GD, in maybeEmitThunk()
607 void CodeGenVTables::EmitThunks(GlobalDecl GD) { in EmitThunks()
747 GlobalDecl GD = component.getGlobalDecl(); in addVTableComponent()
H A DCGDeclCXX.cpp111 GlobalDecl(Record->getDestructor(), Dtor_Complete)) || in EmitDeclDestroy()
121 Func = CGM.getAddrAndTypeOfCXXStructor(GlobalDecl(Dtor, Dtor_Complete)); in EmitDeclDestroy()
251 CGF.StartFunction(GlobalDecl(&VD, DynamicInitKind::AtExit), in createAtExitStub()
299 CGF.StartFunction(GlobalDecl(&D, DynamicInitKind::AtExit), ResTy, DtorStub, in createTLSAtExitStub()
439 SetInternalFunctionAttributes(GlobalDecl(), Fn, FI); in CreateGlobalInitOrCleanUpFunction()
989 StartFunction(GlobalDecl(D, DynamicInitKind::Initializer), in GenerateCXXGlobalVarDeclInitFunc()
1022 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalInitFunc()
1082 StartFunction(GlobalDecl(), getContext().VoidTy, Fn, in GenerateCXXGlobalCleanUpFunc()
1131 StartFunction(GlobalDecl(VD, DynamicInitKind::GlobalArrayDestructor), in generateDestroyHelper()
H A DItaniumCXXABI.cpp77 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
207 buildStructorSignature(GlobalDecl GD,
271 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
285 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD, in setThunkLinkage()
344 bool NeedsVTTParameter(GlobalDecl GD) override;
377 void emitCXXStructor(GlobalDecl GD) override;
1303 Dtor = CGM.getAddrOfCXXStructor(GlobalDecl(DtorD, Dtor_Complete)); in emitThrow()
1572 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base)); in EmitCXXConstructors()
1578 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete)); in EmitCXXConstructors()
1583 ItaniumCXXABI::buildStructorSignature(GlobalDecl GD, in buildStructorSignature()
[all …]
H A DCGOpenMPRuntime.h1389 virtual bool emitTargetFunctions(GlobalDecl GD);
1394 virtual bool emitTargetGlobalVariable(GlobalDecl GD);
1404 virtual bool emitTargetGlobal(GlobalDecl GD);
1538 bool markAsGlobalTarget(GlobalDecl GD);
2178 bool emitTargetFunctions(GlobalDecl GD) override;
2183 bool emitTargetGlobalVariable(GlobalDecl GD) override;
2188 bool emitTargetGlobal(GlobalDecl GD) override;
H A DCGCUDARuntime.h113 GlobalDecl GD) = 0;
H A DCodeGenPGO.h83 void assignRegionCounters(GlobalDecl GD, llvm::Function *Fn);
/openbsd-src/gnu/llvm/clang/include/clang/CodeGen/
H A DModuleBuilder.h35 class GlobalDecl; variable
84 llvm::StringRef GetMangledName(GlobalDecl GD);
94 llvm::Constant *GetAddrOfGlobal(GlobalDecl decl, bool isForDefinition);
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DMangle.cpp139 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName()
276 mangleName(GlobalDecl(CD, CT), Out); in mangleCtorBlock()
285 mangleName(GlobalDecl(DD, DT), Out); in mangleDtorBlock()
525 GlobalDecl GD; in writeFuncOrVarName()
527 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
529 GD = GlobalDecl(DtorD, Dtor_Complete); in writeFuncOrVarName()
531 GD = GlobalDecl(cast<FunctionDecl>(D)); in writeFuncOrVarName()
533 GD = GlobalDecl(D); in writeFuncOrVarName()
554 GlobalDecl GD; in getMangledStructor()
556 GD = GlobalDecl(CD, static_cast<CXXCtorType>(StructorType)); in getMangledStructor()
[all …]
H A DMicrosoftMangle.cpp45 static GlobalDecl getGlobalDeclAsDeclContext(const DeclContext *DC) { in getGlobalDeclAsDeclContext()
46 GlobalDecl GD; in getGlobalDeclAsDeclContext()
48 GD = GlobalDecl(CD, Ctor_Complete); in getGlobalDeclAsDeclContext()
50 GD = GlobalDecl(DD, Dtor_Complete); in getGlobalDeclAsDeclContext()
52 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getGlobalDeclAsDeclContext()
146 llvm::DenseMap<GlobalDecl, unsigned> SEHFilterIds;
147 llvm::DenseMap<GlobalDecl, unsigned> SEHFinallyIds;
155 void mangleCXXName(GlobalDecl GD, raw_ostream &Out) override;
205 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
207 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
[all …]
H A DItaniumMangle.cpp99 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
122 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
124 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
433 void mangle(GlobalDecl GD);
438 void mangleFunctionEncoding(GlobalDecl GD);
440 void mangleName(GlobalDecl GD);
484 void mangleNameWithAbiTags(GlobalDecl GD,
489 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC, in mangleUnqualifiedName()
494 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
497 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
[all …]
/openbsd-src/gnu/llvm/clang/lib/Interpreter/
H A DIncrementalParser.h73 llvm::StringRef GetMangledName(GlobalDecl GD) const;
/openbsd-src/gnu/llvm/clang/include/clang/Interpreter/
H A DInterpreter.h78 llvm::Expected<llvm::JITTargetAddress> getSymbolAddress(GlobalDecl GD) const;

123