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

12

/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DIteratedDominanceFrontier.h27 ChildrenGetterTy(const GraphDiff<BasicBlock *, IsPostDom> *GD) : GD(GD) { argument
28 assert(GD);
33 const GraphDiff<BasicBlock *, IsPostDom> *GD = nullptr; member in struct:llvm::IDFCalculatorDetail::ChildrenGetterTy
49 const GraphDiff<BasicBlock *, IsPostDom> *GD)
50 : IDFCalculatorBase(DT, ChildrenGetterTy(GD)) {
51 assert(GD);
71 if (!GD) {
80 for (const auto &SnapShotBBPair : children<SnapShotBBPairTy>({GD,
48 IDFCalculator(DominatorTreeBase<BasicBlock, IsPostDom> &DT, const GraphDiff<BasicBlock *, IsPostDom> *GD) argument
[all...]
H A DMemorySSAUpdater.h293 const GraphDiff<BasicBlock *> *GD);
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp207 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { argument
208 const CGFunctionInfo &FnInfo = getTypes().arrangeCXXStructorDeclaration(GD);
210 getAddrOfCXXStructor(GD, &FnInfo, /*FnType=*/nullptr,
213 setFunctionLinkage(GD, Fn);
215 CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo);
216 setNonAliasAttributes(GD, Fn);
217 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn);
222 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType,
224 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
230 GD
221 getAddrAndTypeOfCXXStructor( GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, bool DontDefer, ForDefinition_t IsForDefinition) argument
247 BuildAppleKextVirtualCall(CodeGenFunction &CGF, GlobalDecl GD, llvm::Type *Ty, const CXXRecordDecl *RD) argument
[all...]
H A DCGVTables.cpp35 GlobalDecl GD) {
36 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true,
42 GlobalDecl GD) {
43 CGM.setFunctionLinkage(GD, ThunkFn);
44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD,
48 CGM.setGVProperties(ThunkFn, GD);
159 GlobalDecl GD, const ThunkInfo &Thunk) {
160 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
167 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true);
236 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, argument
34 GetAddrOfThunk(StringRef Name, llvm::Type *FnTy, GlobalDecl GD) argument
40 setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, llvm::Function *ThunkFn, bool ForVTable, GlobalDecl GD) argument
157 GenerateVarArgsThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk) argument
392 EmitMustTailThunk(GlobalDecl GD, llvm::Value *AdjustedThisPtr, llvm::FunctionCallee Callee) argument
446 generateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk, bool IsUnprototyped) argument
491 maybeEmitThunk(GlobalDecl GD, const ThunkInfo &TI, bool ForVTable) argument
604 EmitThunks(GlobalDecl GD) argument
798 GlobalDecl GD; local
[all...]
H A DCodeGenModule.cpp306 for (const GlobalDecl &GD : Aliases) {
307 const auto *D = cast<ValueDecl>(GD.getDecl());
314 StringRef MangledName = getMangledName(GD);
366 for (const GlobalDecl &GD : Aliases) {
367 StringRef MangledName = getMangledName(GD);
919 GlobalDecl GD) const {
920 const auto *D = dyn_cast<NamedDecl>(GD.getDecl());
923 getCXXABI().setCXXDestructorDLLStorage(GV, Dtor, GD.getDtorType());
940 GlobalDecl GD) const {
941 setDLLImportDLLExport(GV, GD);
1045 getMangledNameImpl(const CodeGenModule &CGM, GlobalDecl GD, const NamedDecl *ND, bool OmitMultiVersionMangling = false) argument
1089 UpdateMultiVersionNames(GlobalDecl GD, const FunctionDecl *FD) argument
1129 getMangledName(GlobalDecl GD) argument
1175 getBlockMangledName(GlobalDecl GD, const BlockDecl *BD) argument
1259 getFunctionLinkage(GlobalDecl GD) argument
1286 SetLLVMFunctionAttributes(GlobalDecl GD, const CGFunctionInfo &Info, llvm::Function *F) argument
1711 SetCommonAttributes(GlobalDecl GD, llvm::GlobalValue *GV) argument
1729 GetCPUAndFeaturesAttributes(GlobalDecl GD, llvm::AttrBuilder &Attrs) argument
1778 setNonAliasAttributes(GlobalDecl GD, llvm::GlobalObject *GO) argument
1820 SetInternalFunctionAttributes(GlobalDecl GD, llvm::Function *F, const CGFunctionInfo &FI) argument
1864 SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, bool IsIncompleteFunction, bool IsThunk) argument
2440 GetAddrOfMSGuidDecl(const MSGuidDecl *GD) argument
2525 EmitGlobal(GlobalDecl GD) argument
2799 shouldEmitFunction(GlobalDecl GD) argument
2838 EmitMultiVersionFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
2851 EmitGlobalDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
2972 emitCPUDispatchDefinition(GlobalDecl GD) argument
3087 GetOrCreateMultiVersionResolver( GlobalDecl GD, llvm::Type *DeclTy, const FunctionDecl *FD) argument
3141 GetOrCreateLLVMFunction( StringRef MangledName, llvm::Type *Ty, GlobalDecl GD, bool ForVTable, bool DontDefer, bool IsThunk, llvm::AttributeList ExtraAttrs, ForDefinition_t IsForDefinition) argument
3326 GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty, bool ForVTable, bool DontDefer, ForDefinition_t IsForDefinition) argument
3651 GetAddrOfGlobal(GlobalDecl GD, ForDefinition_t IsForDefinition) argument
4495 EmitGlobalFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
4541 EmitAliasDefinition(GlobalDecl GD) argument
4623 emitIFuncDefinition(GlobalDecl GD) argument
5760 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D)); local
[all...]
H A DCodeGenModule.h349 void addDeferredDeclToEmit(GlobalDecl GD) { argument
350 DeferredDeclsToEmit.emplace_back(GD);
511 bool shouldEmitFunction(GlobalDecl GD);
786 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const;
807 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD,
855 llvm::Constant *GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty = nullptr,
865 ConstantAddress GetAddrOfMSGuidDecl(const MSGuidDecl *GD);
869 GlobalDecl GD);
991 llvm::Function *codegenCXXStructor(GlobalDecl GD);
995 getAddrOfCXXStructor(GlobalDecl GD, cons argument
1213 setFunctionLinkage(GlobalDecl GD, llvm::Function *F) argument
[all...]
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
136 void EmitThunks(GlobalDecl GD);
H A DCGCXXABI.h90 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
107 virtual bool HasThisReturn(GlobalDecl GD) const { return false; }
109 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; }
331 buildStructorSignature(GlobalDecl GD,
364 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, argument
384 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { argument
455 GlobalDecl GD, Address This,
470 GlobalDecl GD,
480 GlobalDecl GD, bool ReturnAdjustment) = 0;
552 virtual bool NeedsVTTParameter(GlobalDecl GD);
469 adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, CallArgList &CallArgs) argument
[all...]
H A DCodeGenTypes.h142 llvm::FunctionType *GetFunctionType(GlobalDecl GD);
158 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD);
190 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD);
240 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
H A DMicrosoftCXXABI.cpp52 bool HasThisReturn(GlobalDecl GD) const override;
53 bool hasMostDerivedReturn(GlobalDecl GD) const override;
61 bool isThisCompleteObject(GlobalDecl GD) const override {
64 if (isa<CXXDestructorDecl>(GD.getDecl())) {
65 switch (GD.getDtorType()) {
210 buildStructorSignature(GlobalDecl GD,
247 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
303 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
312 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD,
314 assert(GD
1058 isDeletingDtor(GlobalDecl GD) argument
1272 buildStructorSignature(GlobalDecl GD, SmallVectorImpl<CanQualType> &ArgTys) argument
1364 getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) argument
1398 adjustThisArgumentForVirtualFunctionCall( CodeGenFunction &CGF, GlobalDecl GD, Address This, bool VirtualCall) argument
1891 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, Address This, llvm::Type *Ty, SourceLocation Loc) argument
3901 emitCXXStructor(GlobalDecl GD) argument
[all...]
H A DItaniumCXXABI.cpp77 bool isThisCompleteObject(GlobalDecl GD) const override {
80 if (isa<CXXDestructorDecl>(GD.getDecl())) {
81 switch (GD.getDtorType()) {
94 if (isa<CXXConstructorDecl>(GD.getDecl())) {
95 switch (GD.getCtorType()) {
207 buildStructorSignature(GlobalDecl GD,
271 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
285 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD,
291 CGM.setGVProperties(Thunk, GD);
377 bool NeedsVTTParameter(GlobalDecl GD) overrid
1608 buildStructorSignature(GlobalDecl GD, SmallVectorImpl<CanQualType> &ArgTys) argument
1877 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, Address This, llvm::Type *Ty, SourceLocation Loc) argument
2867 NeedsVTTParameter(GlobalDecl GD) argument
4106 emitCXXStructor(GlobalDecl GD) argument
[all...]
H A DCodeGenPGO.h82 void assignRegionCounters(GlobalDecl GD, llvm::Function *Fn);
H A DCGDebugInfo.h416 void EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
422 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
428 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
640 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
644 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
648 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
710 /// \param GD A GlobalDecl whose getDecl() must return a FunctionDecl.
711 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
H A DCodeGenFunction.cpp672 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, argument
681 const Decl *D = GD.getDecl();
947 DI->EmitFunctionStart(GD, Loc, StartLoc, FnType, CurFn, CurFuncIsThunk,
1190 QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD, argument
1192 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
1197 if (CGM.getCXXABI().HasThisReturn(GD))
1199 else if (CGM.getCXXABI().hasMostDerivedReturn(GD))
1211 getTypes().inheritingCtorHasParams(Inherited, GD.getCtorType());
1246 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, argument
1248 const FunctionDecl *FD = cast<FunctionDecl>(GD
[all...]
H A DCGDebugInfo.cpp1651 GlobalDecl GD = DD ? GlobalDecl(DD, Dtor_Deleting) : GlobalDecl(Method); local
1653 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(GD);
1668 .getVirtualFunctionPrologueThisAdjustment(GD)
1910 } else if (const auto *GD = dyn_cast<MSGuidDecl>(D)) {
1911 V = CGM.GetAddrOfMSGuidDecl(GD).getPointer();
3423 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, argument
3429 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3433 LinkageName = CGM.getMangledName(GD);
3517 llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD, argument
3523 SourceLocation Loc = GD
3564 getFunctionForwardDeclaration(GlobalDecl GD) argument
3568 getFunctionStub(GlobalDecl GD) argument
3765 EmitFunctionStart(GlobalDecl GD, SourceLocation Loc, SourceLocation ScopeLoc, QualType FnType, llvm::Function *Fn, bool CurFuncIsThunk, CGBuilderTy &Builder) argument
3867 EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc, QualType FnType, llvm::Function *Fn) argument
3957 EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD) argument
[all...]
H A DCGCUDANV.cpp223 GlobalDecl GD; local
226 GD = GlobalDecl(FD, KernelReferenceKind::Kernel);
228 GD = GlobalDecl(ND);
233 DeviceMC->mangleName(GD, Out);
H A DCodeGenPGO.cpp771 void CodeGenPGO::assignRegionCounters(GlobalDecl GD, llvm::Function *Fn) { argument
772 const Decl *D = GD.getDecl();
787 if (GD.getCtorType() != Ctor_Base &&
791 if (isa<CXXDestructorDecl>(D) && GD.getDtorType() != Dtor_Base)
/freebsd-13-stable/tests/sys/netgraph/
H A Dutil.c259 #define GD(x) void \ macro
268 GD(0)
269 GD(1)
270 GD(2)
271 GD(3)
272 GD(4)
273 GD(5)
274 GD(6)
275 GD(7)
276 GD(
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/lib/AST/
H A DMangle.cpp135 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { argument
136 const NamedDecl *D = cast<NamedDecl>(GD.getDecl());
163 if (auto *GD = dyn_cast<MSGuidDecl>(D))
164 return mangleMSGuidDecl(GD, Out);
180 mangleCXXName(GD, Out);
197 mangleCXXName(GD, Out);
222 void MangleContext::mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream &Out) { argument
225 MSGuidDecl::Parts P = GD->getParts();
465 GlobalDecl GD; local
467 GD
494 GlobalDecl GD; local
[all...]
H A DItaniumMangle.cpp141 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
420 void mangle(GlobalDecl GD);
425 void mangleFunctionEncoding(GlobalDecl GD);
427 void mangleName(GlobalDecl GD);
464 void mangleNameWithAbiTags(GlobalDecl GD,
471 void mangleUnqualifiedName(GlobalDecl GD, argument
473 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), UnknownArity,
476 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
479 void mangleUnscopedName(GlobalDecl GD,
644 mangle(GlobalDecl GD) argument
664 mangleFunctionEncoding(GlobalDecl GD) argument
798 isTemplate(GlobalDecl GD, const TemplateArgumentList *&TemplateArgs) argument
825 mangleName(GlobalDecl GD) argument
859 mangleNameWithAbiTags(GlobalDecl GD, const AbiTagList *AdditionalAbiTags) argument
960 mangleUnscopedName(GlobalDecl GD, const AbiTagList *AdditionalAbiTags) argument
972 mangleUnscopedTemplateName( GlobalDecl GD, const AbiTagList *AdditionalAbiTags) argument
1265 mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name, unsigned KnownArity, const AbiTagList *AdditionalAbiTags) argument
1539 mangleNestedName(GlobalDecl GD, const DeclContext *DC, const AbiTagList *AdditionalAbiTags, bool NoFunction) argument
1586 GlobalDecl GD; local
1600 mangleLocalName(GlobalDecl GD, const AbiTagList *AdditionalAbiTags) argument
1969 mangleTemplatePrefix(GlobalDecl GD, bool NoFunction) argument
[all...]
H A DVTableBuilder.cpp2181 GlobalDecl GD(DD, Dtor_Complete);
2182 assert(MethodVTableIndices.count(GD));
2183 uint64_t VTableIndex = MethodVTableIndices[GD];
2270 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { argument
2271 GD = GD.getCanonicalDecl();
2272 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD);
2276 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
2280 I = MethodVTableIndices.find(GD);
3779 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { argument
[all...]
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h147 GlobalDecl GD; local
148 GD.Value.setFromOpaqueValue(P);
149 return GD;
212 static unsigned getHashValue(clang::GlobalDecl GD) { argument
213 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DVTableBuilder.h341 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { argument
342 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl());
417 uint64_t getMethodVTableIndex(GlobalDecl GD);
590 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
592 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override {
594 if (isa<CXXDestructorDecl>(GD.getDecl()) &&
595 GD.getDtorType() == Dtor_Complete)
597 return VTableContextBase::getThunkInfo(GD);
H A DMangle.h100 void mangleName(GlobalDecl GD, raw_ostream &);
101 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
114 virtual void mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream&);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp803 GraphDiff<BasicBlock *> GD(DeleteUpdates, /*ReverseApplyUpdates=*/true);
804 applyInsertUpdates(InsertUpdates, NewDT, &GD);
806 GraphDiff<BasicBlock *> GD; local
807 applyInsertUpdates(InsertUpdates, DT, &GD);
817 GraphDiff<BasicBlock *> GD; local
818 applyInsertUpdates(Updates, DT, &GD);
823 const GraphDiff<BasicBlock *> *GD) {
835 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) {
929 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) {
1057 ForwardIDFCalculator IDFs(DT, GD);
821 applyInsertUpdates(ArrayRef<CFGUpdate> Updates, DominatorTree &DT, const GraphDiff<BasicBlock *> *GD) argument
[all...]

Completed in 246 milliseconds

12