/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | IteratedDominanceFrontier.h | 27 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 D | CGCXX.cpp | 206 llvm::Function *CodeGenModule::codegenCXXStructor(GlobalDecl GD) { in codegenCXXStructor() argument 207 const CGFunctionInfo &FnInfo = getTypes().arrangeCXXStructorDeclaration(GD); in codegenCXXStructor() 209 getAddrOfCXXStructor(GD, &FnInfo, /*FnType=*/nullptr, in codegenCXXStructor() 212 setFunctionLinkage(GD, Fn); in codegenCXXStructor() 214 CodeGenFunction(*this).GenerateCode(GD, Fn, FnInfo); in codegenCXXStructor() 215 setNonAliasAttributes(GD, Fn); in codegenCXXStructor() 216 SetLLVMFunctionAttributesForDefinition(cast<CXXMethodDecl>(GD.getDecl()), Fn); in codegenCXXStructor() 221 GlobalDecl GD, const CGFunctionInfo *FnInfo, llvm::FunctionType *FnType, in getAddrAndTypeOfCXXStructor() argument 223 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getAddrAndTypeOfCXXStructor() 229 GD.getDtorType() == Dtor_Complete && in getAddrAndTypeOfCXXStructor() [all …]
|
H A D | CGVTables.cpp | 36 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 D | CodeGenModule.h | 356 void addDeferredDeclToEmit(GlobalDecl GD) { in addDeferredDeclToEmit() argument 357 DeferredDeclsToEmit.emplace_back(GD); in addDeferredDeclToEmit() 358 addEmittedDeferredDecl(GD); in addDeferredDeclToEmit() 364 void addEmittedDeferredDecl(GlobalDecl GD) { in addEmittedDeferredDecl() argument 371 if (llvm::isa<FunctionDecl>(GD.getDecl())) in addEmittedDeferredDecl() 372 L = getFunctionLinkage(GD); in addEmittedDeferredDecl() 373 else if (auto *VD = llvm::dyn_cast<VarDecl>(GD.getDecl())) in addEmittedDeferredDecl() 379 EmittedDeferredDecls[getMangledName(GD)] = GD; in addEmittedDeferredDecl() 565 bool shouldEmitFunction(GlobalDecl GD); 881 void setGVProperties(llvm::GlobalValue *GV, GlobalDecl GD) const; [all …]
|
H A D | CodeGenModule.cpp | 665 for (const GlobalDecl &GD : Aliases) { in checkAliases() local 666 const auto *D = cast<ValueDecl>(GD.getDecl()); in checkAliases() 676 StringRef MangledName = getMangledName(GD); in checkAliases() 735 for (const GlobalDecl &GD : Aliases) { in checkAliases() local 736 StringRef MangledName = getMangledName(GD); in checkAliases() 945 GlobalDecl GD; in Release() local 947 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in Release() 949 GD = GlobalDecl(D); in Release() 951 GetAddrOfGlobal(GD), Int8PtrTy)); in Release() 1733 GlobalDecl GD) const { in setDLLImportDLLExport() [all …]
|
H A D | CGCXXABI.h | 102 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 D | MicrosoftCXXABI.cpp | 57 bool HasThisReturn(GlobalDecl GD) const override; 58 bool hasMostDerivedReturn(GlobalDecl GD) const override; 66 bool isThisCompleteObject(GlobalDecl GD) const override { in isThisCompleteObject() 69 if (isa<CXXDestructorDecl>(GD.getDecl())) { in isThisCompleteObject() 70 switch (GD.getDtorType()) { in isThisCompleteObject() 231 buildStructorSignature(GlobalDecl GD, 250 const CXXRecordDecl *getThisArgumentTypeForMethod(GlobalDecl GD) override { in getThisArgumentTypeForMethod() argument 251 auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in getThisArgumentTypeForMethod() 254 GlobalDecl LookupGD = GD; in getThisArgumentTypeForMethod() 258 if (GD.getDtorType() == Dtor_Complete) in getThisArgumentTypeForMethod() [all …]
|
H A D | CodeGenTypes.h | 151 llvm::FunctionType *GetFunctionType(GlobalDecl GD); 167 llvm::Type *GetFunctionTypeForVTable(GlobalDecl GD); 199 const CGFunctionInfo &arrangeGlobalDeclaration(GlobalDecl GD); 249 const CGFunctionInfo &arrangeCXXStructorDeclaration(GlobalDecl GD);
|
H A D | ModuleBuilder.cpp | 128 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 D | ItaniumCXXABI.cpp | 80 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() 254 buildStructorSignature(GlobalDecl GD, 314 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 D | CGVTables.h | 60 llvm::Constant *maybeEmitThunk(GlobalDecl GD, 130 void EmitThunks(GlobalDecl GD);
|
H A D | CGDebugInfo.h | 471 void emitFunctionStart(GlobalDecl GD, SourceLocation Loc, 476 void EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD); 482 void EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc, 748 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub); 752 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD); 756 llvm::DISubprogram *getFunctionStub(GlobalDecl GD); 819 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
|
H A D | CGCUDANV.cpp | 175 llvm::GlobalValue *getKernelHandle(llvm::Function *F, GlobalDecl GD) override; 266 GlobalDecl GD; in getDeviceSideName() local 269 GD = GlobalDecl(FD, KernelReferenceKind::Kernel); in getDeviceSideName() 271 GD = GlobalDecl(ND); in getDeviceSideName() 281 MC->mangleName(GD, Out); in getDeviceSideName() 1211 GlobalDecl GD) { in getKernelHandle() argument 1241 GD.getWithKernelReferenceKind(KernelReferenceKind::Kernel))); in getKernelHandle() 1245 auto *FD = cast<FunctionDecl>(GD.getDecl()); in getKernelHandle()
|
/freebsd/contrib/unifdef/scripts/ |
H A D | reversion.sh | 17 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 D | util.c | 259 #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 D | Mangle.cpp | 139 void MangleContext::mangleName(GlobalDecl GD, raw_ostream &Out) { in mangleName() argument 141 const NamedDecl *D = cast<NamedDecl>(GD.getDecl()); in mangleName() 176 if (auto *GD = dyn_cast<MSGuidDecl>(D)) in mangleName() local 177 return mangleMSGuidDecl(GD, Out); in mangleName() 192 mangleCXXName(GD, Out); in mangleName() 213 mangleCXXName(GD, Out); in mangleName() 244 void MangleContext::mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream &Out) { in mangleMSGuidDecl() argument 247 MSGuidDecl::Parts P = GD->getParts(); in mangleMSGuidDecl() 538 GlobalDecl GD; in writeFuncOrVarName() local 540 GD = GlobalDecl(CtorD, Ctor_Complete); in writeFuncOrVarName() [all …]
|
H A D | ItaniumMangle.cpp | 101 void mangleCXXName(GlobalDecl GD, raw_ostream &) override; 458 void mangle(GlobalDecl GD); 463 void mangleFunctionEncoding(GlobalDecl GD); 465 void mangleName(GlobalDecl GD); 510 void mangleNameWithAbiTags(GlobalDecl GD, 515 void mangleUnqualifiedName(GlobalDecl GD, const DeclContext *DC, in mangleUnqualifiedName() argument 517 mangleUnqualifiedName(GD, cast<NamedDecl>(GD.getDecl())->getDeclName(), DC, in mangleUnqualifiedName() 520 void mangleUnqualifiedName(GlobalDecl GD, DeclarationName Name, 523 void mangleUnscopedName(GlobalDecl GD, const DeclContext *DC, 525 void mangleUnscopedTemplateName(GlobalDecl GD, const DeclContext *DC, [all …]
|
H A D | MicrosoftMangle.cpp | 48 GlobalDecl GD; in getGlobalDeclAsDeclContext() local 50 GD = GlobalDecl(CD, Ctor_Complete); in getGlobalDeclAsDeclContext() 52 GD = GlobalDecl(DD, Dtor_Complete); in getGlobalDeclAsDeclContext() 54 GD = GlobalDecl(cast<FunctionDecl>(DC)); in getGlobalDeclAsDeclContext() 55 return GD; in getGlobalDeclAsDeclContext() 157 void mangleCXXName(GlobalDecl GD, raw_ostream &Out) override; 366 void mangle(GlobalDecl GD, StringRef Prefix = "?"); 367 void mangleName(GlobalDecl GD); 368 void mangleFunctionEncoding(GlobalDecl GD, bool ShouldMangle); 405 void mangleNestedName(GlobalDecl GD); [all …]
|
H A D | VTableBuilder.cpp | 2249 GlobalDecl GD(DD, Dtor_Complete); in dumpLayout() local 2250 assert(MethodVTableIndices.count(GD)); in dumpLayout() 2251 uint64_t VTableIndex = MethodVTableIndices[GD]; in dumpLayout() 2338 uint64_t ItaniumVTableContext::getMethodVTableIndex(GlobalDecl GD) { in getMethodVTableIndex() argument 2339 GD = GD.getCanonicalDecl(); in getMethodVTableIndex() 2340 MethodVTableIndicesTy::iterator I = MethodVTableIndices.find(GD); in getMethodVTableIndex() 2344 const CXXRecordDecl *RD = cast<CXXMethodDecl>(GD.getDecl())->getParent(); in getMethodVTableIndex() 2348 I = MethodVTableIndices.find(GD); in getMethodVTableIndex() 2381 GlobalDecl ItaniumVTableContext::findOriginalMethod(GlobalDecl GD) { in findOriginalMethod() argument 2382 const auto *MD = cast<CXXMethodDecl>(GD.getDecl()); in findOriginalMethod() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | VTableBuilder.h | 342 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 D | GlobalDecl.h | 157 GlobalDecl GD; in getFromOpaquePtr() local 158 GD.Value.setFromOpaqueValue(P); in getFromOpaquePtr() 159 return GD; in getFromOpaquePtr() 222 static unsigned getHashValue(clang::GlobalDecl GD) { 223 return DenseMapInfo<void*>::getHashValue(GD.getAsOpaquePtr());
|
H A D | Mangle.h | 131 void mangleName(GlobalDecl GD, raw_ostream &); 132 virtual void mangleCXXName(GlobalDecl GD, raw_ostream &) = 0; 146 virtual void mangleMSGuidDecl(const MSGuidDecl *GD, raw_ostream&);
|
/freebsd/contrib/llvm-project/clang/lib/InstallAPI/ |
H A D | Visitor.cpp | 468 GlobalDecl GD; in getMangledCtorDtor() local 470 GD = GlobalDecl(Ctor, CXXCtorType(Type)); in getMangledCtorDtor() 473 GD = GlobalDecl(Dtor, CXXDtorType(Type)); in getMangledCtorDtor() 475 MC->mangleName(GD, NameStream); in getMangledCtorDtor() 496 auto AddThunk = [&](GlobalDecl GD) { in emitVTableSymbols() argument 498 VTable->getThunkInfo(GD); in emitVTableSymbols() 504 getMangledCXXThunk(GD, Thunk, /*ElideOverrideInfo=*/true); in emitVTableSymbols() 507 Avail, GD.getDecl(), Access); in emitVTableSymbols()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | MemorySSAUpdater.cpp | 810 // Note: the MSSA update below doesn't distinguish between a GD with in applyUpdates() 814 GraphDiff<BasicBlock *> GD(RevDeleteUpdates); in applyUpdates() 815 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates() 826 GraphDiff<BasicBlock *> GD; in applyUpdates() 827 applyInsertUpdates(InsertUpdates, DT, &GD); in applyUpdates() 837 GraphDiff<BasicBlock *> GD; in applyUpdates() 838 applyInsertUpdates(Updates, DT, &GD); in applyUpdates() 843 const GraphDiff<BasicBlock *> *GD) { in applyUpdates() 855 for (auto *Pi : GD->template getChildren</*InverseEdge=*/true>(BB)) { in applyUpdates() 949 for (auto *Pi : GD in applyInsertUpdates() 839 GraphDiff<BasicBlock *> GD(RevDeleteUpdates); applyUpdates() local 851 GraphDiff<BasicBlock *> GD; applyUpdates() local 862 GraphDiff<BasicBlock *> GD; applyInsertUpdates() local 868 applyInsertUpdates(ArrayRef<CFGUpdate> Updates,DominatorTree & DT,const GraphDiff<BasicBlock * > * GD) applyInsertUpdates() argument [all...] |
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Pointer.cpp | 270 const GlobalInlineDescriptor &GD = in isInitialized() local 272 return GD.InitState == GlobalInitState::Initialized; in isInitialized() 309 GlobalInlineDescriptor &GD = *reinterpret_cast<GlobalInlineDescriptor *>( in initialize() local 311 GD.InitState = GlobalInitState::Initialized; in initialize()
|