| /freebsd/contrib/llvm-project/llvm/lib/MC/MCDisassembler/ |
| H A D | Disassembler.cpp | 102 LLVMDisasmContext *DC = new LLVMDisasmContext( in LLVMCreateDisasmCPUFeatures() local 106 if (!DC) in LLVMCreateDisasmCPUFeatures() 109 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures() 110 return DC; in LLVMCreateDisasmCPUFeatures() 132 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); in LLVMDisasmDispose() local 133 delete DC; in LLVMDisasmDispose() 138 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument 141 StringRef Comments = DC->CommentsToEmit.str(); in emitComments() 143 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments() 161 DC->CommentsToEmit.clear(); in emitComments() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | ASTLambda.h | 34 inline bool isLambdaCallOperator(const DeclContext *DC) { in isLambdaCallOperator() argument 35 if (!DC || !isa<CXXMethodDecl>(DC)) return false; in isLambdaCallOperator() 36 return isLambdaCallOperator(cast<CXXMethodDecl>(DC)); in isLambdaCallOperator() 39 inline bool isLambdaMethod(const DeclContext *DC) { in isLambdaMethod() argument 40 if (const auto *MD = dyn_cast_if_present<CXXMethodDecl>(DC)) in isLambdaMethod() 45 inline bool isLambdaCallWithExplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithExplicitObjectParameter() argument 46 return isLambdaCallOperator(DC) && in isLambdaCallWithExplicitObjectParameter() 47 cast<CXXMethodDecl>(DC)->isExplicitObjectMemberFunction(); in isLambdaCallWithExplicitObjectParameter() 50 inline bool isLambdaCallWithImplicitObjectParameter(const DeclContext *DC) { in isLambdaCallWithImplicitObjectParameter() argument 51 return isLambdaCallOperator(DC) && in isLambdaCallWithImplicitObjectParameter() [all …]
|
| H A D | DeclOpenMP.h | 50 static T *createDirective(const ASTContext &C, DeclContext *DC, in createDirective() argument 53 auto *Inst = new (C, DC, size(Clauses.size(), NumChildren)) in createDirective() 54 T(DC, std::forward<Params>(P)...); in createDirective() 115 OMPThreadPrivateDecl(DeclContext *DC = nullptr, 117 : OMPDeclarativeDirective<Decl>(OMPThreadPrivate, DC, L) {} 132 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC, 202 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L, 213 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, 272 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument 274 const_cast<DeclContext *>(DC)); in castFromDeclContext() [all …]
|
| H A D | Decl.h | 153 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument 154 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 180 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC, 215 TranslationUnitDecl *DC, 263 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument 264 return static_cast<ExternCContextDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext() 285 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() argument 286 : Decl(DK, DC, L), Name(N) {} in NamedDecl() 397 const DeclContext *DC = getDeclContext(); in isCXXClassMember() local 402 if (isa<EnumDecl>(DC)) in isCXXClassMember() [all …]
|
| H A D | ASTImporterLookupTable.h | 56 void add(DeclContext *DC, NamedDecl *ND); 57 void remove(DeclContext *DC, NamedDecl *ND); 82 LookupResult lookup(DeclContext *DC, DeclarationName Name) const; 86 bool contains(DeclContext *DC, NamedDecl *ND) const; 87 void dump(DeclContext *DC) const;
|
| H A D | DeclOpenACC.h | 42 OpenACCConstructDecl(Kind DeclKind, DeclContext *DC, OpenACCDirectiveKind K, in OpenACCConstructDecl() argument 45 : Decl(DeclKind, DC, StartLoc), DirKind(K), DirectiveLoc(DirLoc), in OpenACCConstructDecl() 80 OpenACCDeclareDecl(DeclContext *DC, SourceLocation StartLoc, in OpenACCDeclareDecl() argument 83 : OpenACCConstructDecl(OpenACCDeclare, DC, OpenACCDirectiveKind::Declare, in OpenACCDeclareDecl() 92 static OpenACCDeclareDecl *Create(ASTContext &Ctx, DeclContext *DC, 121 OpenACCRoutineDecl(DeclContext *DC, SourceLocation StartLoc, in OpenACCRoutineDecl() argument 126 : OpenACCConstructDecl(OpenACCRoutine, DC, OpenACCDirectiveKind::Routine, in OpenACCRoutineDecl() 138 Create(ASTContext &Ctx, DeclContext *DC, SourceLocation StartLoc,
|
| /freebsd/sys/contrib/device-tree/Bindings/mfd/ |
| H A D | axp20x.txt | 47 - x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz 88 DCDC2 : DC-DC buck : vin2-supply 89 DCDC3 : DC-DC buck : vin3-supply 100 DCDC1 : DC-DC buck : vin1-supply 101 DCDC2 : DC-DC buck : vin2-supply 102 DCDC3 : DC-DC buck : vin3-supply 103 DCDC4 : DC-DC buck : vin4-supply 104 DCDC5 : DC-DC buck : vin5-supply 126 DCDC1 : DC-DC buck : vin1-supply 127 DCDC2 : DC-DC buck : vin2-supply : poly-phase capable [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTImporterLookupTable.cpp | 104 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) { in add() argument 105 DeclList &Decls = LookupTable[DC][ND->getDeclName()]; in add() 110 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) { in remove() argument 112 DeclList &Decls = LookupTable[DC][Name]; in remove() 120 Name.getAsString(), ND->getDeclKindName(), DC->getDeclKindName()) in remove() 129 DeclContext *DC = ND->getDeclContext(); in add() local 130 add(DC, ND); in add() 131 DeclContext *ReDC = DC->getRedeclContext(); in add() 132 if (DC != ReDC) in add() 138 DeclContext *DC = ND->getDeclContext(); in remove() local [all …]
|
| H A D | DeclBase.cpp | 296 auto *DC = getFriendObjectKind() || isLocalExternDecl() in isTemplated() local 298 return DC->isDependentContext() || isTemplateDecl() || in isTemplated() 303 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() local 304 if (DC->isFileContext()) in getTemplateDepth() 318 const DeclContext *DC = in getTemplateDepth() local 320 return cast<Decl>(DC)->getTemplateDepth(); in getTemplateDepth() 324 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() local 326 DC && !DC->isFileContext(); DC = DC->getParent()) in getParentFunctionOrMethod() 327 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod() 328 return DC; in getParentFunctionOrMethod() [all …]
|
| H A D | DeclOpenMP.cpp | 29 DeclContext *DC, in Create() argument 33 C, DC, {}, VL.size(), L); in Create() 57 OMPAllocateDecl *OMPAllocateDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument 61 C, DC, CL, VL.size(), L); in Create() 86 OMPRequiresDecl *OMPRequiresDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument 89 return OMPDeclarativeDirective::createDirective<OMPRequiresDecl>(C, DC, CL, 0, in Create() 105 Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in OMPDeclareReductionDecl() argument 107 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl() 115 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() argument 117 return new (C, DC) OMPDeclareReductionDecl(OMPDeclareReduction, DC, L, Name, in Create() [all …]
|
| H A D | ExternalASTMerger.cpp | 38 const DeclContext *CanonicalizeDC(const DeclContext *DC) { in CanonicalizeDC() argument 39 if (isa<LinkageSpecDecl>(DC)) in CanonicalizeDC() 40 return DC->getRedeclContext(); in CanonicalizeDC() 41 return DC; in CanonicalizeDC() 45 LookupSameContext(Source<TranslationUnitDecl *> SourceTU, const DeclContext *DC, in LookupSameContext() argument 47 DC = CanonicalizeDC(DC); in LookupSameContext() 48 if (DC->isTranslationUnit()) { in LookupSameContext() 52 LookupSameContext(SourceTU, DC->getParent(), ReverseImporter); in LookupSameContext() 57 auto *ND = cast<NamedDecl>(DC); in LookupSameContext() 80 SearchResultDecl->getKind() == DC->getDeclKind()) in LookupSameContext() [all …]
|
| H A D | DeclTemplate.cpp | 282 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() argument 285 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), TemplateParams(Params) {} in TemplateDecl() 444 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create() argument 448 auto *TD = new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create() 529 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument 535 auto *TD = new (C, DC) ClassTemplateDecl(C, DC, L, Name, Params, Decl); in Create() 681 const ASTContext &C, DeclContext *DC, SourceLocation KeyLoc, in Create() argument 686 new (C, DC, in Create() 688 TemplateTypeParmDecl(DC, KeyLoc, NameLoc, Id, Typename, in Create() 766 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument [all …]
|
| H A D | Decl.cpp | 304 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() local 305 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext() 306 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext() 307 Ret = cast<Decl>(DC); in getOutermostFuncOrBlockContext() 308 DC = DC->getParent(); in getOutermostFuncOrBlockContext() 706 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() local 707 !isa<TranslationUnitDecl>(DC); in getLVForNamespaceScopeDecl() 708 DC = DC->getParent()) { in getLVForNamespaceScopeDecl() 709 const auto *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl() 1154 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() local [all …]
|
| H A D | DeclOpenACC.cpp | 26 OpenACCDeclareDecl::Create(ASTContext &Ctx, DeclContext *DC, in Create() argument 30 return new (Ctx, DC, in Create() 32 OpenACCDeclareDecl(DC, StartLoc, DirLoc, EndLoc, Clauses); in Create() 43 OpenACCRoutineDecl::Create(ASTContext &Ctx, DeclContext *DC, in Create() argument 48 return new (Ctx, DC, in Create() 50 OpenACCRoutineDecl(DC, StartLoc, DirLoc, LParenLoc, FuncRef, RParenLoc, in Create()
|
| H A D | ASTDumper.cpp | 25 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext() argument 27 if (!DC) { in dumpInvalidDeclContext() 42 NodeDumper.dumpPointer(DC); in dumpInvalidDeclContext() 46 OS << "unrecognized Decl kind " << (unsigned)DC->getDeclKind(); in dumpInvalidDeclContext() 52 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() argument 55 NodeDumper.dumpBareDeclRef(cast<Decl>(DC)); in dumpLookups() 57 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups() 58 if (Primary != DC) { in dumpLookups() 275 const DeclContext *DC = this; in dumpLookups() local 276 while (!DC->isTranslationUnit()) in dumpLookups() [all …]
|
| H A D | DeclObjC.cpp | 65 ObjCContainerDecl::ObjCContainerDecl(Kind DK, DeclContext *DC, in ObjCContainerDecl() argument 69 : NamedDecl(DK, DC, nameLoc, Id), DeclContext(DK) { in ObjCContainerDecl() 176 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl() argument 181 if (const auto *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl() 189 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl() 197 DeclContext::lookup_result R = DC->lookup(propertyID); in findPropertyDecl() 890 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() local 891 if (isa<ObjCProtocolDecl>(DC)) in isDesignatedInitializerForTheInterface() 1540 const ASTContext &C, DeclContext *DC, SourceLocation atLoc, in Create() argument 1543 auto *Result = new (C, DC) in Create() [all …]
|
| H A D | DeclCXX.cpp | 125 DeclContext *DC, SourceLocation StartLoc, in CXXRecordDecl() argument 128 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl() 133 DeclContext *DC, SourceLocation StartLoc, in Create() argument 137 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, IdLoc, Id, in Create() 148 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda() argument 152 auto *R = new (C, DC) CXXRecordDecl(CXXRecord, TagTypeKind::Class, C, DC, Loc, in CreateLambda() 2169 static bool isDeclContextInNamespace(const DeclContext *DC) { in isDeclContextInNamespace() argument 2170 while (!DC->isTranslationUnit()) { in isDeclContextInNamespace() 2171 if (DC->isNamespace()) in isDeclContextInNamespace() 2173 DC = DC->getParent(); in isDeclContextInNamespace() [all …]
|
| H A D | DeclFriend.cpp | 34 FriendDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create() argument 48 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); in Create() 57 auto *FD = new (C, DC, Extra) in Create() 58 FriendDecl(DC, L, Friend, FriendL, EllipsisLoc, FriendTypeTPLists); in Create() 59 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); in Create()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 26 SourceLocation ImportLoc, DeclContext *DC, in checkModuleImportContext() argument 30 if (auto *LSD = dyn_cast<LinkageSpecDecl>(DC)) { in checkModuleImportContext() 39 DC = LSD->getParent(); in checkModuleImportContext() 42 while (isa<LinkageSpecDecl>(DC) || isa<ExportDecl>(DC)) in checkModuleImportContext() 43 DC = DC->getParent(); in checkModuleImportContext() 45 if (!isa<TranslationUnitDecl>(DC)) { in checkModuleImportContext() 49 << M->getFullModuleName() << DC; in checkModuleImportContext() 50 S.Diag(cast<Decl>(DC)->getBeginLoc(), in checkModuleImportContext() 52 << DC; in checkModuleImportContext() 639 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl() local [all …]
|
| H A D | SemaTemplateDeductionGuide.cpp | 90 static auto WalkUp = [](DeclContext *DC, DeclContext *TargetDC) { in mightReferToOuterTemplateParameters() argument 91 if (DC->Equals(TargetDC)) in mightReferToOuterTemplateParameters() 93 while (DC->isRecord()) { in mightReferToOuterTemplateParameters() 94 if (DC->Equals(TargetDC)) in mightReferToOuterTemplateParameters() 96 DC = DC->getParent(); in mightReferToOuterTemplateParameters() 204 DeclContext *DC = OriginalTemplate->getDeclContext(); local 215 SemaRef.Context, DC, LocStart, ES, Name, TInfo->getType(), TInfo, LocEnd, 224 if (isa<CXXRecordDecl>(DC)) 228 DC->addDecl(Guide); 233 SemaRef.Context, DC, Loc, DeductionGuideName, TemplateParams, Guide); [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexTypeSourceInfo.cpp | 33 const DeclContext *DC, bool isBase, bool isIBType) in TypeIndexer() argument 34 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer() 229 const DeclContext *DC, in indexTypeSourceInfo() argument 235 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase, isIBType); in indexTypeSourceInfo() 240 const DeclContext *DC, in indexTypeLoc() argument 246 if (!DC) in indexTypeLoc() 247 DC = Parent->getLexicalDeclContext(); in indexTypeLoc() 248 TypeIndexer(*this, Parent, DC, isBase, isIBType).TraverseTypeLoc(TL); in indexTypeLoc() 253 const DeclContext *DC) { in indexNestedNameSpecifierLoc() argument 258 indexNestedNameSpecifierLoc(Prefix, Parent, DC); in indexNestedNameSpecifierLoc() [all …]
|
| H A D | IndexingContext.h | 83 const DeclContext *DC = nullptr); 86 const NamedDecl *Parent, const DeclContext *DC, 107 const DeclContext *DC = nullptr, 112 const DeclContext *DC = nullptr, 118 const DeclContext *DC = nullptr); 120 bool indexDeclContext(const DeclContext *DC); 123 const DeclContext *DC = nullptr);
|
| /freebsd/contrib/llvm-project/llvm/lib/ProfileData/ |
| H A D | PGOCtxProfWriter.cpp | 196 const SerializableCtxRepresentation &DC, in createNode() argument 198 auto AllocSize = ctx_profile::ContextNode::getAllocSize(DC.Counters.size(), in createNode() 199 DC.Callsites.size()); in createNode() 202 auto *Ret = new (Mem) ctx_profile::ContextNode(DC.Guid, DC.Counters.size(), in createNode() 203 DC.Callsites.size(), Next); in createNode() 204 std::memcpy(Ret->counters(), DC.Counters.data(), in createNode() 205 sizeof(uint64_t) * DC.Counters.size()); in createNode() 206 for (const auto &[I, DCList] : llvm::enumerate(DC.Callsites)) in createNode() 217 for (const auto &DC : DCList) in createNode() local 218 List = createNode(Nodes, DC, List); in createNode() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/ |
| H A D | StandardLibrary.cpp | 253 NSSymbolMap *Recognizer::namespaceSymbols(const DeclContext *DC, Lang L) { in namespaceSymbols() argument 254 if (DC->isTranslationUnit()) // global scope. in namespaceSymbols() 257 auto It = NamespaceCache.find(DC); in namespaceSymbols() 260 const NamespaceDecl *D = llvm::cast<NamespaceDecl>(DC); in namespaceSymbols() 289 const DeclContext *DC = D->getDeclContext(); in operator ()() local 290 if (!DC) // The passed D is a TranslationUnitDecl! in operator ()() 292 while (!DC->isNamespace() && !DC->isTranslationUnit()) { in operator ()() 293 if (NamedDecl::classofKind(DC->getDeclKind())) in operator ()() 294 IntermediateDecl.push_back(DC); in operator ()() 295 DC = DC->getParent(); in operator ()() [all …]
|
| /freebsd/sys/netpfil/ipfw/ |
| H A D | ip_dn_io.c | 157 #define DC(x) (&(VNET_NAME(dn_cfg).x)) macro 175 CTLFLAG_RW | CTLFLAG_VNET, DC(io_fast), 0, "Enable fast dummynet io."); 177 CTLFLAG_RW | CTLFLAG_VNET, DC(debug), 0, "Dummynet debug level"); 181 CTLFLAG_RD | CTLFLAG_VNET, DC(red_lookup_depth), 0, "Depth of RED lookup table"); 183 CTLFLAG_RD | CTLFLAG_VNET, DC(red_avg_pkt_size), 0, "RED Medium packet size"); 185 CTLFLAG_RD | CTLFLAG_VNET, DC(red_max_pkt_size), 0, "RED Max packet size"); 189 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta), 0, "Last vs standard tick difference (usec)."); 191 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta_sum), 0, "Accumulated tick difference (usec)."); 193 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_adjustment), 0, "Tick adjustments done."); 195 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_diff), 0, [all …]
|