Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/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);
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGCXX.cpp204 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor() argument
205 const CGFunctionInfo &FnInfo = getTypes().arrangeCXXStructorDeclaration(GD); in codegenCXXStructor()
207 getAddrOfCXXStructor(GD, &FnInfo, /*FnType=*/nullptr, in codegenCXXStructor()
210 setFunctionLinkage(GD, Fn); in codegenCXXStructor()
212 CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo); in codegenCXXStructor()
213 setNonAliasAttributes(GD, Fn); in codegenCXXStructor()
214 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor()
219 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument
221 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor()
227 GD.getDtorType() == Dtor_Complete && in getAddrAndTypeOfCXXStructor()
[all …]
H A DCGVTables.cpp36 GlobalDecl GD) { in GetAddrOfThunk() argument
37 return GetOrCreateLLVMFunction(Name, FnTy, GD, /*ForVTable=*/true, in GetAddrOfThunk()
43 GlobalDecl GD) { in setThunkProperties() argument
44 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties()
45 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties()
49 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties()
168 GlobalDecl GD, const ThunkInfo &Thunk) { in GenerateVarArgsThunk() argument
169 const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); in GenerateVarArgsThunk()
176 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); in GenerateVarArgsThunk()
248 void CodeGenFunction::StartThunk(llvm::Function *Fn, GlobalDecl GD, in StartThunk() argument
[all …]
H A DCodeGenModule.cpp773 for (const GlobalDecl &GD : Aliases) { in checkAliases() local
774 const auto *D = cast<ValueDecl>(GD.getDecl()); in checkAliases()
784 StringRef MangledName = getMangledName(GD); in checkAliases()
843 for (const GlobalDecl &GD : Aliases) { in checkAliases() local
844 StringRef MangledName = getMangledName(GD); in checkAliases()
1053 GlobalDecl GD; in Release() local
1055 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in Release()
1057 GD = GlobalDecl(D); in Release()
1059 GetAddrOfGlobal(GD), Int8PtrTy)); in Release()
1900 GlobalDecl GD) const { in setDLLImportDLLExport()
[all …]
H A DCodeGenModule.h402 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit() argument
403 DeferredDeclsToEmit.emplace_back(GD); in addDeferredDeclToEmit()
404 addEmittedDeferredDecl(GD); in addDeferredDeclToEmit()
410 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl() argument
417 if (llvm::isa<FunctionDecl>(GD.getDecl())) in addEmittedDeferredDecl()
418 L = getFunctionLinkage(GD); in addEmittedDeferredDecl()
419 else if (auto *VD = llvm::dyn_cast<VarDecl>(GD.getDecl())) in addEmittedDeferredDecl()
425 EmittedDeferredDecls[getMangledName(GD)] = GD; in addEmittedDeferredDecl()
611 bool shouldEmitFunction(GlobalDecl GD);
942 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const;
[all …]
H A DCGCXXABI.h102 virtual bool isThisCompleteObject(GlobalDecl GD) const = 0;
123 virtual bool HasThisReturn(GlobalDecl GD) const { in HasThisReturn() argument
124 if (isa<CXXConstructorDecl>(GD.getDecl()) || in HasThisReturn()
125 (isa<CXXDestructorDecl>(GD.getDecl()) && in HasThisReturn()
126 GD.getDtorType() != Dtor_Deleting)) in HasThisReturn()
131 virtual bool hasMostDerivedReturn(GlobalDecl GD) const { return false; } in hasMostDerivedReturn() argument
363 buildStructorSignature(GlobalDecl GD,
387 virtual const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) { in getThisArgumentTypeForMethod() argument
388 return cast<CXXMethodDecl>(GD.getDecl())->getParent(); in getThisArgumentTypeForMethod()
395 adjustThisArgumentForVirtualFunctionCall(CodeGenFunction &CGF, GlobalDecl GD, in adjustThisArgumentForVirtualFunctionCall() argument
[all …]
H A DCodeGenTypes.h151 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 DMicrosoftCXXABI.cpp58 bool HasThisReturn(GlobalDecl GD) const override;
59 bool hasMostDerivedReturn(GlobalDecl GD) const override;
67 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
70 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
71 switch (GD.getDtorType()) { in isThisCompleteObject()
232 buildStructorSignature(GlobalDecl GD,
251 const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) override { in getThisArgumentTypeForMethod() argument
252 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getThisArgumentTypeForMethod()
255 GlobalDecl LookupGD = GD; in getThisArgumentTypeForMethod()
259 if (GD.getDtorType() == Dtor_Complete) in getThisArgumentTypeForMethod()
[all …]
H A DModuleBuilder.cpp128 llvm::StringRef GetMangledName(GlobalDecl GD) { in GetMangledName() argument
129 return Builder->getMangledName(GD); in GetMangledName()
348 llvm::StringRef CodeGenerator::GetMangledName(GlobalDecl GD) { in GetMangledName() argument
349 return static_cast<CodeGeneratorImpl *>(this)->GetMangledName(GD); in GetMangledName()
H A DItaniumCXXABI.cpp80 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject()
83 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject()
84 switch (GD.getDtorType()) { in isThisCompleteObject()
97 if (isa<CXXConstructorDecl>(GD.getDecl())) { in isThisCompleteObject()
98 switch (GD.getCtorType()) { 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() argument
334 CGM.setGVProperties(Thunk, GD); in setThunkLinkage()
389 bool NeedsVTTParameter(GlobalDecl GD) override;
[all …]
H A DCGVTables.h60 llvm::Constant *maybeEmitThunk(GlobalDecl GD,
126 void EmitThunks(GlobalDecl GD);
H A DCGDebugInfo.h496 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
501 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD);
507 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
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,
/freebsd/contrib/unifdef/scripts/
H A Dreversion.sh17 GD="$(git show --pretty=format:%ai -s HEAD)"
19 GD="$(date +'%Y-%m-%d %H:%M:%S %z')"
24 GD="$D"
25 if [ "$GV $GD" != "$V $D" ]
28 echo " -> $GV $GD" 1>&2
30 D="$GD"
/freebsd/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(8)
[all …]
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DMangle.cpp155 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName() argument
157 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleName()
192 if (auto *GD = dyn_cast<MSGuidDecl>(D)) in mangleName() local
193 return mangleMSGuidDecl(GD, Out); in mangleName()
208 mangleCXXName(GD, Out); in mangleName()
229 mangleCXXName(GD, Out); in mangleName()
260 void MangleContext::mangleMSGuidDecl(const MSGuidDecl *GD, in mangleMSGuidDecl() argument
264 MSGuidDecl::Parts P = GD->getParts(); in mangleMSGuidDecl()
557 GlobalDecl GD; in writeFuncOrVarName() local
559 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName()
[all …]
H A DItaniumMangle.cpp99 void mangleCXXName(GlobalDecl GD, raw_ostream &) override;
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() argument
510 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), DC, in mangleUnqualifiedName()
513 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name,
516 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC,
518 void mangleUnscopedTemplateName(GlobalDecl GD, const DeclContext *DC,
[all …]
H A DMicrosoftMangle.cpp46 GlobalDecl GD; in getGlobalDeclAsDeclContext() local
48 GD = GlobalDecl(CD, Ctor_Complete); in getGlobalDeclAsDeclContext()
50 GD = GlobalDecl(DD, Dtor_Complete); in getGlobalDeclAsDeclContext()
52 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getGlobalDeclAsDeclContext()
53 return GD; in getGlobalDeclAsDeclContext()
155 void mangleCXXName(GlobalDecl GD, raw_ostream &Out) override;
368 void mangle(GlobalDecl GD, StringRef Prefix = "?");
369 void mangleName(GlobalDecl GD);
370 void mangleFunctionEncoding(GlobalDecl GD, bool ShouldMangle);
407 void mangleNestedName(GlobalDecl GD);
[all …]
H A DVTableBuilder.cpp2251 GlobalDecl GD(DD, Dtor_Complete); in dumpLayout() local
2252 assert(MethodVTableIndices.count(GD)); in dumpLayout()
2253 uint64_t VTableIndex = MethodVTableIndices[GD]; in dumpLayout()
2340 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { in getMethodVTableIndex() argument
2341 GD = GD.getCanonicalDecl(); in getMethodVTableIndex()
2342 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD); in getMethodVTableIndex()
2346 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent(); in getMethodVTableIndex()
2350 I = MethodVTableIndices.find(GD); in getMethodVTableIndex()
2383 GlobalDecl ItaniumVTableContext::findOriginalMethod(GlobalDecl GD) { in findOriginalMethod() argument
2384 const auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in findOriginalMethod()
[all …]
/freebsd/contrib/llvm-project/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()
426 uint64_t getMethodVTableIndex(GlobalDecl GD);
443 GlobalDecl findOriginalMethod(GlobalDecl GD);
618 MethodVFTableLocation getMethodVFTableLocation(GlobalDecl GD);
620 const ThunkInfoVectorTy *getThunkInfo(GlobalDecl GD) override { in getThunkInfo() argument
622 if (isa<CXXDestructorDecl>(GD.getDecl()) && in getThunkInfo()
623 GD.getDtorType() == Dtor_Complete) in getThunkInfo()
625 return VTableContextBase::getThunkInfo(GD); in getThunkInfo()
H A DGlobalDecl.h161 GlobalDecl GD; in getFromOpaquePtr() local
162 GD.Value.setFromOpaqueValue(P); in getFromOpaquePtr()
163 return GD; in getFromOpaquePtr()
227 static unsigned getHashValue(clang::GlobalDecl GD) {
228 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
H A DMangle.h135 void mangleName(GlobalDecl GD, raw_ostream &);
136 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0;
150 virtual void mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream &) const;
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/
H A DVisitor.cpp467 GlobalDecl GD; in getMangledCtorDtor() local
469 GD = GlobalDecl(Ctor, CXXCtorType(Type)); in getMangledCtorDtor()
472 GD = GlobalDecl(Dtor, CXXDtorType(Type)); in getMangledCtorDtor()
474 MC->mangleName(GD, NameStream); in getMangledCtorDtor()
495 auto AddThunk = [&](GlobalDecl GD) { in emitVTableSymbols() argument
497 VTable->getThunkInfo(GD); in emitVTableSymbols()
503 getMangledCXXThunk(GD, Thunk, /*ElideOverrideInfo=*/true); in emitVTableSymbols()
506 Avail, GD.getDecl(), Access); in emitVTableSymbols()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeductionGuide.cpp746 if (const auto *GD = dyn_cast<CXXDeductionGuideDecl>(D)) { in getSourceDeductionGuides() local
747 assert(GD->getSourceDeductionGuide() && in getSourceDeductionGuides()
750 Result.insert(GD->getSourceDeductionGuide()); in getSourceDeductionGuides()
1364 CXXDeductionGuideDecl *GD = Found->getSecond(); in DeclareAggregateDeductionGuideFromInitList() local
1365 return GD->getDescribedFunctionTemplate(); in DeclareAggregateDeductionGuideFromInitList()
1371 auto *GD = cast<CXXDeductionGuideDecl>(FTD->getTemplatedDecl()); in DeclareAggregateDeductionGuideFromInitList() local
1372 GD->setDeductionCandidateKind(DeductionCandidate::Aggregate); in DeclareAggregateDeductionGuideFromInitList()
1373 AggregateDeductionCandidates[Hash] = GD; in DeclareAggregateDeductionGuideFromInitList()
1412 auto *GD = cast<CXXDeductionGuideDecl>(FTD->getTemplatedDecl()); in DeclareAggregateDeductionGuideFromInitList() local
1413 GD->setDeductionCandidateKind(DeductionCandidate::Aggregate); in DeclareAggregateDeductionGuideFromInitList()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DMemorySSAUpdater.cpp823 GraphDiff<BasicBlock *> GD(RevDeleteUpdates); in applyUpdates() local
824 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates()
835 GraphDiff<BasicBlock *> GD; in applyUpdates() local
836 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates()
846 GraphDiff<BasicBlock *> GD; in applyInsertUpdates() local
847 applyInsertUpdates(Updates, DT, &GD); in applyInsertUpdates()
852 const GraphDiff<BasicBlock *> *GD) { in applyInsertUpdates() argument
864 for (auto *Pi : GD->template getChildren</*InverseEdge=*/true>(BB)) { in applyInsertUpdates()
958 for (auto *Pi : GD->template getChildren</*InverseEdge=*/true>(BB)) { in applyInsertUpdates()
1085 ForwardIDFCalculator IDFs(DT, GD); in applyInsertUpdates()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DModuleBuilder.h88 llvm::StringRef GetMangledName(GlobalDecl GD);

1234