Home
last modified time | relevance | path

Searched refs:DC (Results 1 – 25 of 344) sorted by relevance

12345678910>>...14

/freebsd/contrib/llvm-project/llvm/lib/MC/MCDisassembler/
H A DDisassembler.cpp103 LLVMDisasmContext *DC = new LLVMDisasmContext( in LLVMCreateDisasmCPUFeatures() local
107 if (!DC) in LLVMCreateDisasmCPUFeatures()
110 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures()
111 return DC; in LLVMCreateDisasmCPUFeatures()
133 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); in LLVMDisasmDispose() local
134 delete DC; in LLVMDisasmDispose()
137 /// Emits the comments that are stored in \p DC comment stream.
139 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument
142 StringRef Comments = DC->CommentsToEmit.str(); in emitComments()
144 const MCAsmInfo *MAI = DC in emitComments()
169 getItineraryLatency(LLVMDisasmContext * DC,const MCInst & Inst) getItineraryLatency() argument
194 getLatency(LLVMDisasmContext * DC,const MCInst & Inst) getLatency() argument
230 emitLatency(LLVMDisasmContext * DC,const MCInst & Inst) emitLatency() argument
255 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMDisasmInstruction() local
304 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMSetDisasmOptions() local
311 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMSetDisasmOptions() local
318 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMSetDisasmOptions() local
334 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMSetDisasmOptions() local
341 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); LLVMSetDisasmOptions() local
[all...]
/freebsd/sys/contrib/device-tree/Bindings/mfd/
H A Daxp20x.txt47 - 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 DASTImporterLookupTable.cpp104 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()
119 Name.getAsString(), DC->getDeclKindName()) in remove()
128 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in add() local
129 add(DC, ND); in add()
130 DeclContext *ReDC = DC->getRedeclContext()->getPrimaryContext(); in add()
131 if (DC != ReDC) in add()
137 DeclContext *DC = ND->getDeclContext()->getPrimaryContext(); in remove() local
[all …]
H A DDeclBase.cpp290 auto *DC = getFriendObjectKind() || isLocalExternDecl() in isTemplated() local
292 return DC->isDependentContext() || isTemplateDecl() || in isTemplated()
297 if (auto *DC = dyn_cast<DeclContext>(this)) in getTemplateDepth() local
298 if (DC->isFileContext()) in getTemplateDepth()
312 const DeclContext *DC = in getTemplateDepth() local
314 return cast<Decl>(DC)->getTemplateDepth(); in getTemplateDepth()
318 for (const DeclContext *DC = LexicalParent ? getLexicalDeclContext() in getParentFunctionOrMethod() local
320 DC && !DC->isFileContext(); DC = DC->getParent()) in getParentFunctionOrMethod()
321 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
322 return DC; in getParentFunctionOrMethod()
[all …]
H A DDeclOpenMP.cpp29 DeclContext *DC, in Create() argument
33 C, DC, std::nullopt, 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 DDeclTemplate.cpp263 TemplateDecl::TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, in TemplateDecl() argument
266 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl), TemplateParams(Params) {} in TemplateDecl()
411 FunctionTemplateDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation L, in Create() argument
415 auto *TD = new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
494 ClassTemplateDecl *ClassTemplateDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
500 auto *TD = new (C, DC) ClassTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
642 const ASTContext &C, DeclContext *DC, SourceLocation KeyLoc, in Create() argument
647 new (C, DC, in Create()
649 TemplateTypeParmDecl(DC, KeyLoc, NameLoc, Id, Typename, in Create()
726 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument
[all …]
H A DExternalASTMerger.cpp38 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 DASTDumper.cpp26 void ASTDumper::dumpInvalidDeclContext(const DeclContext *DC) { in dumpInvalidDeclContext() argument
28 if (!DC) { in dumpInvalidDeclContext()
43 NodeDumper.dumpPointer(DC); in dumpInvalidDeclContext()
47 OS << "unrecognized Decl kind " << (unsigned)DC->getDeclKind(); in dumpInvalidDeclContext()
53 void ASTDumper::dumpLookups(const DeclContext *DC, bool DumpDecls) { in dumpLookups() argument
56 NodeDumper.dumpBareDeclRef(cast<Decl>(DC)); in dumpLookups()
58 const DeclContext *Primary = DC->getPrimaryContext(); in dumpLookups()
59 if (Primary != DC) { in dumpLookups()
276 const DeclContext *DC = this; in dumpLookups() local
277 while (!DC->isTranslationUnit()) in dumpLookups()
[all …]
H A DDeclCXX.cpp125 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()
2034 static bool isDeclContextInNamespace(const DeclContext *DC) { in isDeclContextInNamespace() argument
2035 while (!DC->isTranslationUnit()) { in isDeclContextInNamespace()
2036 if (DC->isNamespace()) in isDeclContextInNamespace()
2038 DC = DC->getParent(); in isDeclContextInNamespace()
[all …]
H A DDecl.cpp305 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() local
306 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
307 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
308 Ret = cast<Decl>(DC); in getOutermostFuncOrBlockContext()
309 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()
1148 const DeclContext *DC = getDeclContext()->getRedeclContext(); in isReserved() local
[all …]
H A DDeclObjC.cpp68 ObjCContainerDecl::ObjCContainerDecl(Kind DK, DeclContext *DC, in ObjCContainerDecl() argument
72 : NamedDecl(DK, DC, nameLoc, Id), DeclContext(DK) { in ObjCContainerDecl()
179 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl() argument
184 if (const auto *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl()
192 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl()
200 DeclContext::lookup_result R = DC->lookup(propertyID); in findPropertyDecl()
893 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() local
894 if (isa<ObjCProtocolDecl>(DC)) in isDesignatedInitializerForTheInterface()
1543 const ASTContext &C, DeclContext *DC, SourceLocation atLoc, in Create() argument
1546 auto *Result = new (C, DC) in Create()
[all …]
H A DDeclFriend.cpp34 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
50 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); in Create()
59 auto *FD = new (C, DC, Extra) FriendDecl(DC, L, Friend, FriendL, in Create()
61 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); in Create()
H A DMangle.cpp293 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() argument
295 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
299 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock()
302 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
304 for (; isa_and_nonnull<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
305 (void)getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
306 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
308 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock()
310 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock()
312 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp26 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()
634 for (auto *DC = D->getLexicalDeclContext(); DC; DC = DC->getLexicalParent()) in getEnclosingExportDecl() local
[all …]
H A DSemaTemplateDeductionGuide.cpp91 static auto WalkUp = [](DeclContext *DC, DeclContext *TargetDC) { in mightReferToOuterTemplateParameters() argument
92 if (DC->Equals(TargetDC)) in mightReferToOuterTemplateParameters()
94 while (DC->isRecord()) { in mightReferToOuterTemplateParameters()
95 if (DC->Equals(TargetDC)) in mightReferToOuterTemplateParameters()
97 DC = DC->getParent(); in mightReferToOuterTemplateParameters()
203 DeclContext *DC = OriginalTemplate->getDeclContext(); local
214 CXXDeductionGuideDecl::Create(SemaRef.Context, DC, LocStart, ES, Name,
223 if (isa<CXXRecordDecl>(DC))
227 DC->addDecl(Guide);
232 SemaRef.Context, DC, Loc, DeductionGuideName, TemplateParams, Guide);
[all …]
H A DSemaAccess.cpp64 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() local
68 if (isa<EnumDecl>(DC)) in FindDeclaringClass()
69 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass()
71 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC); in FindDeclaringClass()
81 explicit EffectiveContext(DeclContext *DC) in EffectiveContext()
82 : Inner(DC), in EffectiveContext()
83 Dependent(DC->isDependentContext()) { in EffectiveContext()
88 if (auto *DGD = dyn_cast<CXXDeductionGuideDecl>(DC)) { in EffectiveContext()
90 DC = DGD->getCorrespondingConstructor(); in EffectiveContext()
91 if (!DC) { in EffectiveContext()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DDeclOpenMP.h50 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 DDecl.h133 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
134 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
156 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC,
191 TranslationUnitDecl *DC,
239 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
240 return static_cast<ExternCContextDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
261 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() argument
262 : Decl(DK, DC, L), Name(N) {} in NamedDecl()
373 const DeclContext *DC = getDeclContext(); in isCXXClassMember() local
378 if (isa<EnumDecl>(DC)) in isCXXClassMember()
[all …]
H A DASTImporterLookupTable.h56 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 DDeclCXX.h90 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() argument
92 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl()
118 DeclContext *DC, SourceLocation ASLoc, in Create() argument
120 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create()
512 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
573 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
578 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
1963 CXXDeductionGuideDecl(ASTContext &C, DeclContext *DC, SourceLocation StartLoc, in CXXDeductionGuideDecl() argument
1968 : FunctionDecl(CXXDeductionGuide, C, DC, StartLoc, NameInfo, T, TInfo, in CXXDeductionGuideDecl()
1985 Create(ASTContext &C, DeclContext *DC, SourceLocation StartLoc,
[all …]
H A DDeclTemplate.h399 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name,
404 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() argument
406 : TemplateDecl(DK, DC, L, Name, Params, nullptr) {} in TemplateDecl()
823 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl() argument
826 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C) {} in RedeclarableTemplateDecl()
971 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
974 : RedeclarableTemplateDecl(FunctionTemplate, C, DC, L, Name, Params,
1082 static FunctionTemplateDecl *Create(ASTContext &C, DeclContext *DC,
1191 TemplateTypeParmDecl(DeclContext *DC, SourceLocation KeyLoc,
1195 : TypeDecl(TemplateTypeParm, DC, IdLoc, Id, KeyLoc), Typename(Typename),
[all …]
H A DExternalASTMerger.h53 DeclContext *DC; member
143 bool FindExternalVisibleDeclsByName(const DeclContext *DC,
148 FindExternalLexicalDecls(const DeclContext *DC,
159 bool CanComplete(DeclContext *DC);
191 void ForEachMatchingDC(const DeclContext *DC, CallbackType Callback);
/freebsd/contrib/llvm-project/clang/lib/Index/
H A DIndexTypeSourceInfo.cpp32 const DeclContext *DC, bool isBase, bool isIBType) in TypeIndexer() argument
33 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer()
247 const DeclContext *DC, in indexTypeSourceInfo() argument
253 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase, isIBType); in indexTypeSourceInfo()
258 const DeclContext *DC, in indexTypeLoc() argument
264 if (!DC) in indexTypeLoc()
265 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
266 TypeIndexer(*this, Parent, DC, isBase, isIBType).TraverseTypeLoc(TL); in indexTypeLoc()
271 const DeclContext *DC) { in indexNestedNameSpecifierLoc() argument
276 indexNestedNameSpecifierLoc(Prefix, Parent, DC); in indexNestedNameSpecifierLoc()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/Stdlib/
H A DStandardLibrary.cpp253 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 Dip_dn_io.c153 #define DC(x) (&(VNET_NAME(dn_cfg).x)) macro
171 CTLFLAG_RW | CTLFLAG_VNET, DC(io_fast), 0, "Enable fast dummynet io.");
173 CTLFLAG_RW | CTLFLAG_VNET, DC(debug), 0, "Dummynet debug level");
177 CTLFLAG_RD | CTLFLAG_VNET, DC(red_lookup_depth), 0, "Depth of RED lookup table");
179 CTLFLAG_RD | CTLFLAG_VNET, DC(red_avg_pkt_size), 0, "RED Medium packet size");
181 CTLFLAG_RD | CTLFLAG_VNET, DC(red_max_pkt_size), 0, "RED Max packet size");
185 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta), 0, "Last vs standard tick difference (usec).");
187 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_delta_sum), 0, "Accumulated tick difference (usec).");
189 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_adjustment), 0, "Tick adjustments done.");
191 CTLFLAG_RD | CTLFLAG_VNET, DC(tick_diff), 0,
[all …]

12345678910>>...14