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

12

/freebsd-11-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.h305 const GraphDiff<BasicBlock *> *GD);
/freebsd-11-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
390 EmitMustTailThunk(GlobalDecl GD, llvm::Value *AdjustedThisPtr, llvm::FunctionCallee Callee) argument
444 generateThunk(llvm::Function *Fn, const CGFunctionInfo &FnInfo, GlobalDecl GD, const ThunkInfo &Thunk, bool IsUnprototyped) argument
489 maybeEmitThunk(GlobalDecl GD, const ThunkInfo &TI, bool ForVTable) argument
602 EmitThunks(GlobalDecl GD) argument
647 GlobalDecl GD; local
[all...]
H A DCGCXXABI.h89 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
106 virtual bool HasThisReturn(GlobalDecl GD) const { return false; }
108 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; }
308 buildStructorSignature(GlobalDecl GD,
341 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, argument
361 virtual CharUnits getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) { argument
420 GlobalDecl GD, Address This,
435 GlobalDecl GD,
445 GlobalDecl GD, bool ReturnAdjustment) = 0;
517 virtual bool NeedsVTTParameter(GlobalDecl GD);
434 adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD, CallArgList &CallArgs) argument
[all...]
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
113 void EmitThunks(GlobalDecl GD);
H A DCodeGenModule.cpp311 for (const GlobalDecl &GD : Aliases) {
312 const auto *D = cast<ValueDecl>(GD.getDecl());
319 StringRef MangledName = getMangledName(GD);
371 for (const GlobalDecl &GD : Aliases) {
372 StringRef MangledName = getMangledName(GD);
875 GlobalDecl GD) const {
876 const auto *D = dyn_cast<NamedDecl>(GD.getDecl());
879 getCXXABI().setCXXDestructorDLLStorage(GV, Dtor, GD.getDtorType());
896 GlobalDecl GD) const {
897 setDLLImportDLLExport(GV, GD);
1001 getMangledNameImpl(const CodeGenModule &CGM, GlobalDecl GD, const NamedDecl *ND, bool OmitMultiVersionMangling = false) argument
1049 UpdateMultiVersionNames(GlobalDecl GD, const FunctionDecl *FD) argument
1089 getMangledName(GlobalDecl GD) argument
1121 getBlockMangledName(GlobalDecl GD, const BlockDecl *BD) argument
1205 getFunctionLinkage(GlobalDecl GD) argument
1232 SetLLVMFunctionAttributes(GlobalDecl GD, const CGFunctionInfo &Info, llvm::Function *F) argument
1654 SetCommonAttributes(GlobalDecl GD, llvm::GlobalValue *GV) argument
1672 GetCPUAndFeaturesAttributes(GlobalDecl GD, llvm::AttrBuilder &Attrs) argument
1721 setNonAliasAttributes(GlobalDecl GD, llvm::GlobalObject *GO) argument
1763 SetInternalFunctionAttributes(GlobalDecl GD, llvm::Function *F, const CGFunctionInfo &FI) argument
1807 SetFunctionAttributes(GlobalDecl GD, llvm::Function *F, bool IsIncompleteFunction, bool IsThunk) argument
2451 EmitGlobal(GlobalDecl GD) argument
2729 shouldEmitFunction(GlobalDecl GD) argument
2768 EmitMultiVersionFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
2825 EmitGlobalDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
2946 emitCPUDispatchDefinition(GlobalDecl GD) argument
3061 GetOrCreateMultiVersionResolver( GlobalDecl GD, llvm::Type *DeclTy, const FunctionDecl *FD) argument
3115 GetOrCreateLLVMFunction( StringRef MangledName, llvm::Type *Ty, GlobalDecl GD, bool ForVTable, bool DontDefer, bool IsThunk, llvm::AttributeList ExtraAttrs, ForDefinition_t IsForDefinition) argument
3305 GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty, bool ForVTable, bool DontDefer, ForDefinition_t IsForDefinition) argument
3628 GetAddrOfGlobal(GlobalDecl GD, ForDefinition_t IsForDefinition) argument
4436 EmitGlobalFunctionDefinition(GlobalDecl GD, llvm::GlobalValue *GV) argument
4487 EmitAliasDefinition(GlobalDecl GD) argument
4568 emitIFuncDefinition(GlobalDecl GD) argument
5689 GlobalDecl GD = GlobalDecl(cast<VarDecl>(D)); local
[all...]
H A DCodeGenModule.h348 void addDeferredDeclToEmit(GlobalDecl GD) { argument
349 DeferredDeclsToEmit.emplace_back(GD);
504 bool shouldEmitFunction(GlobalDecl GD);
782 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const;
800 llvm::Constant *GetAddrOfGlobal(GlobalDecl GD,
849 llvm::Constant *GetAddrOfFunction(GlobalDecl GD, llvm::Type *Ty = nullptr,
863 GlobalDecl GD);
974 llvm::Function *codegenCXXStructor(GlobalDecl GD);
978 getAddrOfCXXStructor(GlobalDecl GD, const CGFunctionInfo *FnInfo = nullptr, argument
982 return cast<llvm::Constant>(getAddrAndTypeOfCXXStructor(GD, FnInf
1183 setFunctionLinkage(GlobalDecl GD, llvm::Function *F) 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,
296 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
305 void adjustCallArgsForDestructorThunk(CodeGenFunction &CGF, GlobalDecl GD,
307 assert(GD
1051 isDeletingDtor(GlobalDecl GD) argument
1265 buildStructorSignature(GlobalDecl GD, SmallVectorImpl<CanQualType> &ArgTys) argument
1357 getVirtualFunctionPrologueThisAdjustment(GlobalDecl GD) argument
1391 adjustThisArgumentForVirtualFunctionCall( CodeGenFunction &CGF, GlobalDecl GD, Address This, bool VirtualCall) argument
1868 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, Address This, llvm::Type *Ty, SourceLocation Loc) argument
3878 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,
264 CGCallee getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD,
278 void setThunkLinkage(llvm::Function *Thunk, bool ForVTable, GlobalDecl GD,
284 CGM.setGVProperties(Thunk, GD);
370 bool NeedsVTTParameter(GlobalDecl GD) overrid
1535 buildStructorSignature(GlobalDecl GD, SmallVectorImpl<CanQualType> &ArgTys) argument
1791 getVirtualFunctionPointer(CodeGenFunction &CGF, GlobalDecl GD, Address This, llvm::Type *Ty, SourceLocation Loc) argument
2759 NeedsVTTParameter(GlobalDecl GD) argument
3976 emitCXXStructor(GlobalDecl GD) argument
[all...]
H A DCodeGenPGO.h82 void assignRegionCounters(GlobalDecl GD, llvm::Function *Fn);
H A DCGDebugInfo.h413 void EmitFunctionStart(GlobalDecl GD, SourceLocation Loc,
419 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
425 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
638 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
642 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
646 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
708 /// \param GD A GlobalDecl whose getDecl() must return a FunctionDecl.
709 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
H A DCGOpenMPRuntime.h1481 /// Emit the target regions enclosed in \a GD function definition or
1483 /// \a GD was dealt with successfully.
1484 /// \param GD Function to scan.
1485 virtual bool emitTargetFunctions(GlobalDecl GD);
1488 /// Returns true if \a GD was dealt with successfully.
1489 /// \param GD Variable declaration to emit.
1490 virtual bool emitTargetGlobalVariable(GlobalDecl GD);
1492 /// Checks if the provided global decl \a GD is a declare target variable and
1502 /// Emit the global \a GD if it is meaningful for the target. Returns
1504 /// \param GD Globa
[all...]
H A DCodeGenFunction.cpp700 void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy, argument
709 const Decl *D = GD.getDecl();
946 DI->EmitFunctionStart(GD, Loc, StartLoc, FnType, CurFn, CurFuncIsThunk,
1189 QualType CodeGenFunction::BuildFunctionArgList(GlobalDecl GD, argument
1191 const FunctionDecl *FD = cast<FunctionDecl>(GD.getDecl());
1196 if (CGM.getCXXABI().HasThisReturn(GD))
1198 else if (CGM.getCXXABI().hasMostDerivedReturn(GD))
1210 getTypes().inheritingCtorHasParams(Inherited, GD.getCtorType());
1245 void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn, argument
1247 const FunctionDecl *FD = cast<FunctionDecl>(GD
[all...]
H A DCodeGenPGO.cpp760 void CodeGenPGO::assignRegionCounters(GlobalDecl GD, llvm::Function *Fn) { argument
761 const Decl *D = GD.getDecl();
776 if (GD.getCtorType() != Ctor_Base &&
780 if (isa<CXXDestructorDecl>(D) && GD.getDtorType() != Dtor_Base)
H A DCGDebugInfo.cpp1582 GlobalDecl GD = DD ? GlobalDecl(DD, Dtor_Deleting) : GlobalDecl(Method); local
1584 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(GD);
1599 .getVirtualFunctionPrologueThisAdjustment(GD)
3269 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit, argument
3275 const auto *FD = cast<FunctionDecl>(GD.getDecl());
3279 LinkageName = CGM.getMangledName(GD);
3363 llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD, argument
3369 SourceLocation Loc = GD.getDecl()->getLocation();
3373 collectFunctionDeclProps(GD, Unit, Name, LinkageName, DContext, TParamsArray,
3375 auto *FD = cast<FunctionDecl>(GD
3410 getFunctionForwardDeclaration(GlobalDecl GD) argument
3414 getFunctionStub(GlobalDecl GD) argument
3611 EmitFunctionStart(GlobalDecl GD, SourceLocation Loc, SourceLocation ScopeLoc, QualType FnType, llvm::Function *Fn, bool CurFuncIsThunk, CGBuilderTy &Builder) argument
3710 EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc, QualType FnType, llvm::Function *Fn) argument
3800 EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD) argument
[all...]
H A DCGCall.cpp306 CodeGenTypes::arrangeCXXStructorDeclaration(GlobalDecl GD) { argument
307 auto *MD = cast<CXXMethodDecl>(GD.getDecl());
319 PassParams = inheritingCtorHasParams(Inherited, GD.getCtorType());
329 TheCXXABI.buildStructorSignature(GD, argTypes);
345 CanQualType resultType = TheCXXABI.HasThisReturn(GD)
347 : TheCXXABI.hasMostDerivedReturn(GD)
410 GlobalDecl GD(D, CtorKind);
411 CanQualType ResultType = TheCXXABI.HasThisReturn(GD)
413 : TheCXXABI.hasMostDerivedReturn(GD)
513 CodeGenTypes::arrangeGlobalDeclaration(GlobalDecl GD) { argument
[all...]
H A DCodeGenFunction.h1491 InlinedInheritingConstructorScope(CodeGenFunction &CGF, GlobalDecl GD) argument
1502 CGF.CurGD = GD;
1504 cast<CXXConstructorDecl>(GD.getDecl());
1777 llvm::Function *GenerateBlockFunction(GlobalDecl GD,
1837 QualType BuildFunctionArgList(GlobalDecl GD, FunctionArgList &Args);
1839 void GenerateCode(GlobalDecl GD, llvm::Function *Fn,
1849 void StartFunction(GlobalDecl GD,
1885 void StartThunk(llvm::Function *Fn, GlobalDecl GD,
1894 void EmitMustTailThunk(GlobalDecl GD, llvm::Value *AdjustedThisPtr,
1899 GlobalDecl GD, cons
[all...]
H A DCGCXXABI.cpp298 bool CGCXXABI::NeedsVTTParameter(GlobalDecl GD) { argument
/freebsd-11-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-11-stable/contrib/llvm-project/clang/include/clang/AST/
H A DGlobalDecl.h112 GlobalDecl GD; local
113 GD.Value.setFromOpaqueValue(P);
114 return GD;
162 static unsigned getHashValue(clang::GlobalDecl GD) { argument
163 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DVTableBuilder.h329 virtual const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) { argument
330 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()->getCanonicalDecl());
392 uint64_t getMethodVTableIndex(GlobalDecl GD);
555 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
557 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override {
559 if (isa<CXXDestructorDecl>(GD.getDecl()) &&
560 GD.getDtorType() == Dtor_Complete)
562 return VTableContextBase::getThunkInfo(GD);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp801 GraphDiff<BasicBlock *> GD(RevDeleteUpdates);
802 applyInsertUpdates(InsertUpdates, NewDT, &GD);
804 GraphDiff<BasicBlock *> GD; local
805 applyInsertUpdates(InsertUpdates, DT, &GD);
815 GraphDiff<BasicBlock *> GD; local
816 applyInsertUpdates(Updates, DT, &GD);
821 const GraphDiff<BasicBlock *> *GD) {
833 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) {
927 for (auto &Pair : children<GraphDiffInvBBPair>({GD, BB})) {
1055 ForwardIDFCalculator IDFs(DT, GD);
819 applyInsertUpdates(ArrayRef<CFGUpdate> Updates, DominatorTree &DT, const GraphDiff<BasicBlock *> *GD) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/AST/
H A DVTableBuilder.cpp2167 GlobalDecl GD(DD, Dtor_Complete);
2168 assert(MethodVTableIndices.count(GD));
2169 uint64_t VTableIndex = MethodVTableIndices[GD];
2223 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { argument
2224 GD = GD.getCanonicalDecl();
2225 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD);
2229 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent();
2233 I = MethodVTableIndices.find(GD);
3731 MicrosoftVTableContext::getMethodVFTableLocation(GlobalDecl GD) { argument
[all...]

Completed in 215 milliseconds

12