Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h57 class GlobalDecl {
70 GlobalDecl() = default;
71 GlobalDecl(const VarDecl *D) { Init(D);} in GlobalDecl() function
72 GlobalDecl(const FunctionDecl *D, unsigned MVIndex = 0)
80 GlobalDecl(const FunctionDecl *D, KernelReferenceKind Kind) in GlobalDecl() function
84 GlobalDecl(const NamedDecl *D) { Init(D); } in GlobalDecl() function
85 GlobalDecl(const BlockDecl *D) { Init(D); } in GlobalDecl() function
86 GlobalDecl(const CapturedDecl *D) { Init(D); } in GlobalDecl() function
87 GlobalDecl(const ObjCMethodDecl *D) { Init(D); } in GlobalDecl() function
88 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()
372 typedef llvm::DenseMap<GlobalDecl, int64_t> MethodVTableIndicesTy;
426 uint64_t getMethodVTableIndex(GlobalDecl GD);
443 GlobalDecl findOriginalMethod(GlobalDecl GD);
579 typedef llvm::DenseMap<GlobalDecl, MethodVFTableLocation>
618 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
[all …]
H A DMangle.h135 void mangleName(GlobalDecl GD, raw_ostream &);
136 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
174 virtual void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
177 virtual void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenItaniumCXXABI.cpp40 bool needsVTTParameter(clang::GlobalDecl gd) override;
47 void emitCXXStructor(clang::GlobalDecl gd) override;
109 GlobalDecl aliasDecl; in getCIRGenToUse()
113 aliasDecl = GlobalDecl(dd, Dtor_Complete); in getCIRGenToUse()
116 aliasDecl = GlobalDecl(cd, Ctor_Complete); in getCIRGenToUse()
140 GlobalDecl aliasDecl, in emitConstructorDestructorAlias()
141 GlobalDecl targetDecl) { in emitConstructorDestructorAlias()
160 void CIRGenItaniumCXXABI::emitCXXStructor(GlobalDecl gd) { in emitCXXStructor()
167 GlobalDecl baseDecl = in emitCXXStructor()
196 cgm.emitGlobal(GlobalDecl(d, Ctor_Base)); in emitCXXConstructors()
[all …]
H A DCIRGenModule.h41 class GlobalDecl; variable
183 void setCommonAttributes(GlobalDecl gd, mlir::Operation *op);
202 getAddrOfCXXStructor(clang::GlobalDecl gd,
212 clang::GlobalDecl gd, const CIRGenFunctionInfo *fnInfo = nullptr,
220 std::map<llvm::StringRef, clang::GlobalDecl> deferredDecls;
224 std::vector<clang::GlobalDecl> deferredDeclsToEmit;
225 void addDeferredDeclToEmit(clang::GlobalDecl GD) { in addDeferredDeclToEmit()
247 getAddrOfFunction(clang::GlobalDecl gd, mlir::Type funcType = nullptr,
252 getAddrOfGlobal(clang::GlobalDecl gd,
257 void emitGlobal(clang::GlobalDecl gd);
[all …]
H A DCIRGenCXXABI.h42 virtual void emitCXXStructor(clang::GlobalDecl gd) = 0;
64 virtual bool needsVTTParameter(clang::GlobalDecl gd) { return false; } in needsVTTParameter()
94 virtual bool hasThisReturn(clang::GlobalDecl gd) const { return false; } in hasThisReturn()
96 virtual bool hasMostDerivedReturn(clang::GlobalDecl gd) const { in hasMostDerivedReturn()
H A DCIRGenCall.h29 clang::GlobalDecl calleeDecl;
34 clang::GlobalDecl calleeDecl) in CIRGenCalleeInfo()
36 CIRGenCalleeInfo(clang::GlobalDecl calleeDecl) in CIRGenCalleeInfo()
42 clang::GlobalDecl getCalleeDecl() const { return calleeDecl; } in getCalleeDecl()
H A DCIRGenTypes.h30 class GlobalDecl; variable
153 const CIRGenFunctionInfo &arrangeGlobalDeclaration(GlobalDecl gd);
181 const CIRGenFunctionInfo &arrangeCXXStructorDeclaration(clang::GlobalDecl gd);
H A DCIRGenModule.cpp237 CIRGenModule::getAddrOfGlobal(GlobalDecl gd, ForDefinition_t isForDefinition) { in getAddrOfGlobal()
263 void CIRGenModule::emitGlobalDecl(const clang::GlobalDecl &d) { in emitGlobalDecl()
316 std::vector<GlobalDecl> curDeclsToEmit; in emitDeferred()
319 for (const GlobalDecl &d : curDeclsToEmit) { in emitDeferred()
332 void CIRGenModule::emitGlobal(clang::GlobalDecl gd) { in emitGlobal()
399 void CIRGenModule::emitGlobalFunctionDefinition(clang::GlobalDecl gd, in emitGlobalFunctionDefinition()
479 void CIRGenModule::setCommonAttributes(GlobalDecl gd, mlir::Operation *gv) { in setCommonAttributes()
487 void CIRGenModule::setNonAliasAttributes(GlobalDecl gd, mlir::Operation *op) { in setNonAliasAttributes()
787 void CIRGenModule::emitGlobalDefinition(clang::GlobalDecl gd, in emitGlobalDefinition()
1113 cir::GlobalLinkageKind CIRGenModule::getFunctionLinkage(GlobalDecl gd) { in getFunctionLinkage()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenModule.h395 llvm::DenseMap<StringRef, GlobalDecl> DeferredDecls;
401 std::vector<GlobalDecl> DeferredDeclsToEmit;
402 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit()
408 llvm::DenseMap<llvm::StringRef, GlobalDecl> EmittedDeferredDecls;
410 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl()
431 std::vector<GlobalDecl> Aliases;
436 std::vector<GlobalDecl> MultiVersionFuncs;
453 llvm::DenseSet<GlobalDecl> DiagnosedConflictingDefinitions;
476 llvm::MapVector<GlobalDecl, StringRef> MangledDeclNames;
477 llvm::StringMap<GlobalDecl, llvm::BumpPtrAllocator> Manglings;
[all …]
H A DCGCXX.cpp115 GlobalDecl AliasDecl(D, Dtor_Base); in TryEmitBaseDestructorAsAlias()
116 GlobalDecl TargetDecl(BaseD, Dtor_Base); in TryEmitBaseDestructorAsAlias()
204 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor()
219 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor()
245 GlobalDecl GD, in BuildAppleKextVirtualCall()
268 GlobalDecl OrigMD = in BuildAppleKextVirtualCall()
309 GlobalDecl(DD, Dtor_Complete)); in BuildAppleKextVirtualDestructorCall()
311 return ::BuildAppleKextVirtualCall(*this, GlobalDecl(DD, Type), Ty, RD); in BuildAppleKextVirtualDestructorCall()
H A DCGCXXABI.h102 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
123 virtual bool HasThisReturn(GlobalDecl GD) const { in HasThisReturn()
131 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn()
363 buildStructorSignature(GlobalDecl GD,
387 virtual const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) { in getThisArgumentTypeForMethod()
395 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall()
415 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment()
480 GlobalDecl GD, Address This,
495 GlobalDecl GD, in adjustCallArgsForDestructorThunk()
505 GlobalDecl GD, bool ReturnAdjustment) = 0;
[all …]
H A DCodeGenTypes.h43 class GlobalDecl; variable
151 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
167 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
199 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
210 const CGFunctionInfo &arrangeFunctionDeclaration(const GlobalDecl GD);
256 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
H A DCGCall.h45 GlobalDecl CalleeDecl;
49 CGCalleeInfo(const FunctionProtoType *calleeProtoTy, GlobalDecl calleeDecl) in CGCalleeInfo()
53 CGCalleeInfo(GlobalDecl calleeDecl) in CGCalleeInfo()
59 const GlobalDecl getCalleeDecl() const { return CalleeDecl; } in getCalleeDecl()
86 GlobalDecl MD;
147 static CGCallee forVirtual(const CallExpr *CE, GlobalDecl MD, Address Addr, in forVirtual()
211 GlobalDecl getVirtualMethodDecl() const { in getVirtualMethodDecl()
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 DCodeGenSYCL.cpp64 SetLLVMFunctionAttributes(GlobalDecl(), FnInfo, Fn, false); in EmitSYCLKernelCaller()
66 CGF.StartFunction(GlobalDecl(), Ctx.VoidTy, Fn, FnInfo, Args, in EmitSYCLKernelCaller()
H A DCodeGenModule.cpp690 const llvm::MapVector<GlobalDecl, StringRef> &MangledDeclNames, in checkAliasedGlobal() argument
773 for (const GlobalDecl &GD : Aliases) { in checkAliases()
843 for (const GlobalDecl &GD : Aliases) { in checkAliases()
1053 GlobalDecl GD; in Release()
1055 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in Release()
1057 GD = GlobalDecl(D); in Release()
1571 StringRef MangledName = getMangledName(GlobalDecl(I.first)); in Release()
1900 GlobalDecl GD) const { in setDLLImportDLLExport()
1923 GlobalDecl GD) const { in setGVProperties()
1998 static bool isUniqueInternalLinkageDecl(GlobalDecl GD, in isUniqueInternalLinkageDecl()
[all …]
H A DCGDebugInfo.h43 class GlobalDecl; variable
496 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
501 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
507 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
574 void EmitGlobalAlias(const llvm::GlobalValue *GV, const GlobalDecl Decl);
803 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
807 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
811 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
874 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
978 ApplyInlineDebugLocation(CodeGenFunction &CGF, GlobalDecl InlinedFn);
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
126 void EmitThunks(GlobalDecl GD);
H A DCGPointerAuth.cpp27 const PointerAuthSchema &Schema, GlobalDecl Decl, QualType Type) { in getPointerAuthOtherDiscriminator()
55 GlobalDecl Declaration) { in getPointerAuthDeclDiscriminator()
61 CodeGenModule::getPointerAuthDeclDiscriminator(GlobalDecl Declaration) { in getPointerAuthDeclDiscriminator()
86 Discriminator = getPointerAuthOtherDiscriminator(Schema, GlobalDecl(), T); in getFunctionPointerAuthInfo()
105 GlobalDecl SchemaDecl, QualType SchemaType) { in EmitPointerAuthInfo()
459 llvm::Constant *StorageAddress, GlobalDecl SchemaDecl, in getConstantSignedPointer()
485 llvm::Constant *CodeGenModule::getFunctionPointer(GlobalDecl GD, in getFunctionPointer()
510 getPointerAuthOtherDiscriminator(Schema, GlobalDecl(), FT); in getMemberFunctionPointerAuthInfo()
H A DItaniumCXXABI.cpp80 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
253 buildStructorSignature(GlobalDecl GD,
313 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
328 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD, in setThunkLinkage()
389 bool NeedsVTTParameter(GlobalDecl GD) override;
425 void emitCXXStructor(GlobalDecl GD) override;
1492 Dtor = CGM.getAddrOfCXXStructor(GlobalDecl(DtorD, Dtor_Complete)); in emitThrow()
1837 CGM.EmitGlobal(GlobalDecl(D, Ctor_Base)); in EmitCXXConstructors()
1843 CGM.EmitGlobal(GlobalDecl(D, Ctor_Complete)); in EmitCXXConstructors()
1848 ItaniumCXXABI::buildStructorSignature(GlobalDecl GD, in buildStructorSignature()
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMangle.cpp155 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName()
297 mangleName(GlobalDecl(CD, CT), Out); in mangleCtorBlock()
306 mangleName(GlobalDecl(DD, DT), Out); in mangleDtorBlock()
557 GlobalDecl GD; in writeFuncOrVarName()
559 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
561 GD = GlobalDecl(DtorD, Dtor_Complete); in writeFuncOrVarName()
563 GD = FD->isReferenceableKernel() ? GlobalDecl(FD) : GlobalDecl(D); in writeFuncOrVarName()
565 GD = GlobalDecl(D); in writeFuncOrVarName()
586 GlobalDecl GD; in getMangledStructor()
588 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;
209 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
211 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
[all …]
H A DItaniumMangle.cpp99 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
123 void mangleSEHFilterExpression(GlobalDecl EnclosingDecl,
125 void mangleSEHFinallyBlock(GlobalDecl EnclosingDecl,
449 void mangle(GlobalDecl GD);
454 void mangleFunctionEncoding(GlobalDecl GD);
456 void mangleName(GlobalDecl GD);
503 void mangleNameWithAbiTags(GlobalDecl GD,
508 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC, in mangleUnqualifiedName()
513 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
516 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DModuleBuilder.h39 class GlobalDecl; variable
88 llvm::StringRef GetMangledName(GlobalDecl GD);
98 llvm::Constant *GetAddrOfGlobal(GlobalDecl decl, bool isForDefinition);

1234