Home
last modified time | relevance | path

Searched refs:GD (Results 1 – 25 of 143) sorted by relevance

123456

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DIteratedDominanceFrontier.h27 ChildrenGetterTy(const GraphDiff<BasicBlock *, IsPostDom> *GD) : GD(GD) {
28 assert(GD);
33 const GraphDiff<BasicBlock *, IsPostDom> *GD = nullptr;
49 const GraphDiff<BasicBlock *, IsPostDom> *GD)
50 : IDFCalculatorBase(DT, ChildrenGetterTy(GD)) {
51 assert(GD);
71 if (!GD) {
76 return GD->template getChildren<IsPostDom>(N);
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGCXX.cpp207 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor() argument
208 const CGFunctionInfo &FnInfo = getTypes().arrangeCXXStructorDeclaration(GD); in codegenCXXStructor()
210 getAddrOfCXXStructor(GD, &FnInfo, /*FnType=*/nullptr, in codegenCXXStructor()
213 setFunctionLinkage(GD, Fn); in codegenCXXStructor()
215 CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo); in codegenCXXStructor()
216 setNonAliasAttributes(GD, Fn); in codegenCXXStructor()
217 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor()
222 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument
224 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor()
230 GD.getDtorType() == Dtor_Complete && in getAddrAndTypeOfCXXStructor()
[all …]
H A DCGVTables.cpp35 GlobalDecl GD) { in GetAddrOfThunk() argument
36 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true, in GetAddrOfThunk()
42 GlobalDecl GD) { in setThunkProperties() argument
43 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties()
44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties()
48 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties()
159 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk() argument
160 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
167 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); in GenerateVarArgsThunk()
236 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk() argument
[all …]
H A DCodeGenModule.cpp342 for (const GlobalDecl &GD : Aliases) { in checkAliases() local
343 const auto *D = cast<ValueDecl>(GD.getDecl()); in checkAliases()
350 StringRef MangledName = getMangledName(GD); in checkAliases()
402 for (const GlobalDecl &GD : Aliases) { in checkAliases() local
403 StringRef MangledName = getMangledName(GD); in checkAliases()
1073 GlobalDecl GD) const { in setDLLImportDLLExport()
1074 const auto *D = dyn_cast<NamedDecl>(GD.getDecl()); in setDLLImportDLLExport()
1077 getCXXABI().setCXXDestructorDLLStorage(GV, Dtor, GD.getDtorType()); in setDLLImportDLLExport()
1094 GlobalDecl GD) const { in setGVProperties()
1095 setDLLImportDLLExport(GV, GD); in setGVProperties()
[all …]
H A DCodeGenModule.h353 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit() argument
354 DeferredDeclsToEmit.emplace_back(GD); in addDeferredDeclToEmit()
531 bool shouldEmitFunction(GlobalDecl GD);
810 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const;
831 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD,
878 llvm::Constant *GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty = nullptr,
888 ConstantAddress GetAddrOfMSGuidDecl(const MSGuidDecl *GD);
896 GlobalDecl GD);
1018 llvm::Function *codegenCXXStructor(GlobalDecl GD);
1022 getAddrOfCXXStructor(GlobalDecl GD, const CGFunctionInfo *FnInfo = nullptr,
[all …]
H A DCGCXXABI.h90 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
107 virtual bool HasThisReturn(GlobalDecl GD) const { return false; } in HasThisReturn() argument
109 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn() argument
332 buildStructorSignature(GlobalDecl GD,
365 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall() argument
385 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { in getVirtualFunctionPrologueThisAdjustment() argument
456 GlobalDecl GD, Address This,
471 GlobalDecl GD, in adjustCallArgsForDestructorThunk() argument
481 GlobalDecl GD, bool ReturnAdjustment) = 0;
553 virtual bool NeedsVTTParameter(GlobalDecl GD);
[all …]
H A DItaniumCXXABI.cpp77 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
80 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
81 switch (GD.getDtorType()) { in isThisCompleteObject()
94 if (isa<CXXConstructorDecl>(GD.getDecl())) { in isThisCompleteObject()
95 switch (GD.getCtorType()) { 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() argument
291 CGM.setGVProperties(Thunk, GD); in setThunkLinkage()
378 bool NeedsVTTParameter(GlobalDecl GD) override;
[all …]
H A DMicrosoftCXXABI.cpp52 bool HasThisReturn(GlobalDecl GD) const override;
53 bool hasMostDerivedReturn(GlobalDecl GD) const override;
61 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
64 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
65 switch (GD.getDtorType()) { in isThisCompleteObject()
215 buildStructorSignature(GlobalDecl GD,
252 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD,
308 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
317 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, in adjustCallArgsForDestructorThunk() argument
319 assert(GD.getDtorType() == Dtor_Deleting && in adjustCallArgsForDestructorThunk()
[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 DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
136 void EmitThunks(GlobalDecl GD);
H A DCGDebugInfo.h424 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
429 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
435 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
656 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
660 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
664 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
727 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
H A DCodeGenFunction.cpp700 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, in StartFunction() argument
709 const Decl *D = GD.getDecl(); in StartFunction()
992 DI->emitFunctionStart(GD, Loc, StartLoc, FnType, CurFn, CurFuncIsThunk); in StartFunction()
1239 QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD, in BuildFunctionArgList() argument
1241 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in BuildFunctionArgList()
1246 if (CGM.getCXXABI().HasThisReturn(GD)) in BuildFunctionArgList()
1248 else if (CGM.getCXXABI().hasMostDerivedReturn(GD)) in BuildFunctionArgList()
1260 getTypes().inheritingCtorHasParams(Inherited, GD.getCtorType()); in BuildFunctionArgList()
1282 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, in GenerateCode() argument
1284 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl()); in GenerateCode()
[all …]
H A DCGCUDANV.cpp164 llvm::GlobalValue *getKernelHandle(llvm::Function *F, GlobalDecl GD) override;
257 GlobalDecl GD; in getDeviceSideName() local
260 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in getDeviceSideName()
262 GD = GlobalDecl(ND); in getDeviceSideName()
272 MC->mangleName(GD, Out); in getDeviceSideName()
1124 GlobalDecl GD) { in getKernelHandle() argument
1139 GD.getWithKernelReferenceKind(KernelReferenceKind::Kernel))); in getKernelHandle()
H A DCGDebugInfo.cpp1720 GlobalDecl GD = DD ? GlobalDecl(DD, Dtor_Deleting) : GlobalDecl(Method); in CreateCXXMemberFunction() local
1722 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(GD); in CreateCXXMemberFunction()
1737 .getVirtualFunctionPrologueThisAdjustment(GD) in CreateCXXMemberFunction()
1981 } else if (const auto *GD = dyn_cast<MSGuidDecl>(D)) { in CollectTemplateParams() local
1982 V = CGM.GetAddrOfMSGuidDecl(GD).getPointer(); in CollectTemplateParams()
3530 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, in collectFunctionDeclProps() argument
3536 const auto *FD = cast<FunctionDecl>(GD.getCanonicalDecl().getDecl()); in collectFunctionDeclProps()
3540 LinkageName = CGM.getMangledName(GD); in collectFunctionDeclProps()
3630 llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD, in getFunctionFwdDeclOrStub() argument
3636 SourceLocation Loc = GD.getDecl()->getLocation(); in getFunctionFwdDeclOrStub()
[all …]
H A DCGOpenMPRuntime.h1582 virtual bool emitTargetFunctions(GlobalDecl GD);
1587 virtual bool emitTargetGlobalVariable(GlobalDecl GD);
1602 virtual bool emitTargetGlobal(GlobalDecl GD);
1785 bool markAsGlobalTarget(GlobalDecl GD);
2422 bool emitTargetFunctions(GlobalDecl GD) override;
2427 bool emitTargetGlobalVariable(GlobalDecl GD) override;
2432 bool emitTargetGlobal(GlobalDecl GD) override;
H A DCGCUDARuntime.h100 GlobalDecl GD) = 0;
H A DCodeGenPGO.h82 void assignRegionCounters(GlobalDecl GD, llvm::Function *Fn);
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DMangle.cpp141 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName() argument
143 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleName()
178 if (auto *GD = dyn_cast<MSGuidDecl>(D)) in mangleName() local
179 return mangleMSGuidDecl(GD, Out); in mangleName()
194 mangleCXXName(GD, Out); in mangleName()
211 mangleCXXName(GD, Out); in mangleName()
236 void MangleContext::mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream &Out) { in mangleMSGuidDecl() argument
239 MSGuidDecl::Parts P = GD->getParts(); in mangleMSGuidDecl()
521 GlobalDecl GD; in writeFuncOrVarName() local
523 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
[all …]
H A DItaniumMangle.cpp153 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
462 void mangle(GlobalDecl GD);
467 void mangleFunctionEncoding(GlobalDecl GD);
469 void mangleName(GlobalDecl GD);
506 void mangleNameWithAbiTags(GlobalDecl GD,
513 void mangleUnqualifiedName(GlobalDecl GD, in mangleUnqualifiedName() argument
515 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), UnknownArity, in mangleUnqualifiedName()
518 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
521 void mangleUnscopedName(GlobalDecl GD,
523 void mangleUnscopedTemplateName(GlobalDecl GD,
[all …]
H A DVTableBuilder.cpp2181 GlobalDecl GD(DD, Dtor_Complete); in dumpLayout() local
2182 assert(MethodVTableIndices.count(GD)); in dumpLayout()
2183 uint64_t VTableIndex = MethodVTableIndices[GD]; in dumpLayout()
2270 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { in getMethodVTableIndex() argument
2271 GD = GD.getCanonicalDecl(); in getMethodVTableIndex()
2272 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD); in getMethodVTableIndex()
2276 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent(); in getMethodVTableIndex()
2280 I = MethodVTableIndices.find(GD); in getMethodVTableIndex()
3779 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { in getMethodVFTableLocation() argument
3780 assert(hasVtableSlot(cast<CXXMethodDecl>(GD.getDecl())) && in getMethodVFTableLocation()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DVTableBuilder.h342 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { in getThunkInfo() argument
343 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl()); in getThunkInfo()
418 uint64_t getMethodVTableIndex(GlobalDecl GD);
591 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
593 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo() argument
595 if (isa<CXXDestructorDecl>(GD.getDecl()) && in getThunkInfo()
596 GD.getDtorType() == Dtor_Complete) in getThunkInfo()
598 return VTableContextBase::getThunkInfo(GD); in getThunkInfo()
H A DGlobalDecl.h148 GlobalDecl GD; in getFromOpaquePtr() local
149 GD.Value.setFromOpaqueValue(P); in getFromOpaquePtr()
150 return GD; in getFromOpaquePtr()
213 static unsigned getHashValue(clang::GlobalDecl GD) {
214 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DMangle.h120 void mangleName(GlobalDecl GD, raw_ostream &);
121 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
134 virtual void mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream&);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp839 GraphDiff<BasicBlock *> GD(RevDeleteUpdates); in applyUpdates() local
840 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates()
847 GraphDiff<BasicBlock *> GD; in applyUpdates() local
848 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates()
858 GraphDiff<BasicBlock *> GD; in applyInsertUpdates() local
859 applyInsertUpdates(Updates, DT, &GD); in applyInsertUpdates()
864 const GraphDiff<BasicBlock *> *GD) { in applyInsertUpdates() argument
876 for (auto *Pi : GD->template getChildren</*InverseEdge=*/true>(BB)) { in applyInsertUpdates()
970 for (auto *Pi : GD->template getChildren</*InverseEdge=*/true>(BB)) { in applyInsertUpdates()
1097 ForwardIDFCalculator IDFs(DT, GD); in applyInsertUpdates()
[all …]
/netbsd-src/external/bsd/ipf/dist/perl/
H A DIsbgraph8 use GD;
91 $im=new GD::Image($XGIF,$YGIF);

123456