Home
last modified time | relevance | path

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

12345678910>>...26

/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/MCDisassembler/
DDisassembler.cpp100 LLVMDisasmContext *DC = in LLVMCreateDisasmCPUFeatures() local
103 if (!DC) in LLVMCreateDisasmCPUFeatures()
106 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures()
107 return DC; in LLVMCreateDisasmCPUFeatures()
129 LLVMDisasmContext *DC = static_cast<LLVMDisasmContext *>(DCR); in LLVMDisasmDispose() local
130 delete DC; in LLVMDisasmDispose()
135 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument
138 StringRef Comments = DC->CommentsToEmit.str(); in emitComments()
140 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments()
158 DC->CommentsToEmit.clear(); in emitComments()
[all …]
/external/llvm/lib/MC/MCDisassembler/
DDisassembler.cpp90 LLVMDisasmContext *DC = in LLVMCreateDisasmCPUFeatures() local
93 if (!DC) in LLVMCreateDisasmCPUFeatures()
96 DC->setCPU(CPU); in LLVMCreateDisasmCPUFeatures()
97 return DC; in LLVMCreateDisasmCPUFeatures()
119 LLVMDisasmContext *DC = (LLVMDisasmContext *)DCR; in LLVMDisasmDispose() local
120 delete DC; in LLVMDisasmDispose()
125 static void emitComments(LLVMDisasmContext *DC, in emitComments() argument
128 StringRef Comments = DC->CommentsToEmit.str(); in emitComments()
130 const MCAsmInfo *MAI = DC->getAsmInfo(); in emitComments()
148 DC->CommentsToEmit.clear(); in emitComments()
[all …]
/external/clang/include/clang/AST/
DASTLambda.h34 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()
63 inline bool isGenericLambdaCallOperatorSpecialization(DeclContext *DC) { in isGenericLambdaCallOperatorSpecialization() argument
65 dyn_cast<CXXMethodDecl>(DC)); in isGenericLambdaCallOperatorSpecialization()
71 inline DeclContext *getLambdaAwareParentOfDeclContext(DeclContext *DC) { in getLambdaAwareParentOfDeclContext() argument
72 if (isLambdaCallOperator(DC)) in getLambdaAwareParentOfDeclContext()
73 return DC->getParent()->getParent(); in getLambdaAwareParentOfDeclContext()
75 return DC->getParent(); in getLambdaAwareParentOfDeclContext()
DDecl.h102 static TranslationUnitDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
103 return static_cast<TranslationUnitDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
125 static PragmaCommentDecl *Create(const ASTContext &C, TranslationUnitDecl *DC,
160 TranslationUnitDecl *DC,
206 static ExternCContextDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
207 return static_cast<ExternCContextDecl *>(const_cast<DeclContext*>(DC)); in castFromDeclContext()
224 NamedDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName N) in NamedDecl() argument
225 : Decl(DK, DC, L), Name(N) { } in NamedDecl()
316 const DeclContext *DC = getDeclContext(); in isCXXClassMember() local
321 if (isa<EnumDecl>(DC)) in isCXXClassMember()
[all …]
DDeclOpenMP.h49 OMPThreadPrivateDecl(Kind DK, DeclContext *DC, SourceLocation L) : in OMPThreadPrivateDecl() argument
50 Decl(DK, DC, L), NumVars(0) { } in OMPThreadPrivateDecl()
63 static OMPThreadPrivateDecl *Create(ASTContext &C, DeclContext *DC,
116 OMPDeclareReductionDecl(Kind DK, DeclContext *DC, SourceLocation L, in OMPDeclareReductionDecl() argument
119 : ValueDecl(DK, DC, L, Name, Ty), DeclContext(DK), Combiner(nullptr), in OMPDeclareReductionDecl()
129 Create(ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name,
158 static OMPDeclareReductionDecl *castFromDeclContext(const DeclContext *DC) { in castFromDeclContext() argument
160 const_cast<DeclContext *>(DC)); in castFromDeclContext()
175 OMPCapturedExprDecl(ASTContext &C, DeclContext *DC, IdentifierInfo *Id, in OMPCapturedExprDecl() argument
177 : VarDecl(OMPCapturedExpr, C, DC, SourceLocation(), SourceLocation(), Id, in OMPCapturedExprDecl()
[all …]
DDeclTemplate.h334 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name) in TemplateDecl() argument
335 : NamedDecl(DK, DC, L, Name), TemplatedDecl(nullptr, false), in TemplateDecl()
340 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() argument
342 : NamedDecl(DK, DC, L, Name), TemplatedDecl(nullptr, false), in TemplateDecl()
346 TemplateDecl(Kind DK, DeclContext *DC, SourceLocation L, DeclarationName Name, in TemplateDecl() argument
348 : NamedDecl(DK, DC, L, Name), TemplatedDecl(Decl, false), in TemplateDecl()
713 RedeclarableTemplateDecl(Kind DK, ASTContext &C, DeclContext *DC, in RedeclarableTemplateDecl() argument
716 : TemplateDecl(DK, DC, L, Name, Params, Decl), redeclarable_base(C), in RedeclarableTemplateDecl()
868 FunctionTemplateDecl(ASTContext &C, DeclContext *DC, SourceLocation L,
871 : RedeclarableTemplateDecl(FunctionTemplate, C, DC, L, Name, Params,
[all …]
DDeclCXX.h108 AccessSpecDecl(AccessSpecifier AS, DeclContext *DC, in AccessSpecDecl() argument
110 : Decl(AccessSpec, DC, ASLoc), ColonLoc(ColonLoc) { in AccessSpecDecl()
131 DeclContext *DC, SourceLocation ASLoc, in Create() argument
133 return new (C, DC) AccessSpecDecl(AS, DC, ASLoc, ColonLoc); in Create()
643 CXXRecordDecl(Kind K, TagKind TK, const ASTContext &C, DeclContext *DC,
687 static CXXRecordDecl *Create(const ASTContext &C, TagKind TK, DeclContext *DC,
692 static CXXRecordDecl *CreateLambda(const ASTContext &C, DeclContext *DC,
2550 LinkageSpecDecl(DeclContext *DC, SourceLocation ExternLoc, in LinkageSpecDecl() argument
2552 : Decl(LinkageSpec, DC, LangLoc), DeclContext(LinkageSpec), in LinkageSpecDecl()
2557 static LinkageSpecDecl *Create(ASTContext &C, DeclContext *DC,
[all …]
/external/clang/lib/AST/
DDeclTemplate.cpp247 DeclContext *DC, in Create() argument
253 return new (C, DC) FunctionTemplateDecl(C, DC, L, Name, Params, Decl); in Create()
324 DeclContext *DC, in Create() argument
331 ClassTemplateDecl *New = new (C, DC) ClassTemplateDecl(C, DC, L, Name, in Create()
473 TemplateTypeParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() argument
478 new (C, DC) TemplateTypeParmDecl(DC, KeyLoc, NameLoc, Id, Typename); in Create()
521 DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, unsigned D, in NonTypeTemplateParmDecl() argument
524 : DeclaratorDecl(NonTypeTemplateParm, DC, IdLoc, Id, T, TInfo, StartLoc), in NonTypeTemplateParmDecl()
538 NonTypeTemplateParmDecl::Create(const ASTContext &C, DeclContext *DC, in Create() argument
543 return new (C, DC) NonTypeTemplateParmDecl(DC, StartLoc, IdLoc, D, P, Id, in Create()
[all …]
DDeclBase.cpp212 for (const DeclContext *DC = getDeclContext(); in getParentFunctionOrMethod() local
213 DC && !DC->isTranslationUnit() && !DC->isNamespace(); in getParentFunctionOrMethod()
214 DC = DC->getParent()) in getParentFunctionOrMethod()
215 if (DC->isFunctionOrMethod()) in getParentFunctionOrMethod()
216 return DC; in getParentFunctionOrMethod()
253 void Decl::setDeclContext(DeclContext *DC) { in setDeclContext() argument
254 DeclCtx = DC; in setDeclContext()
257 void Decl::setLexicalDeclContext(DeclContext *DC) { in setLexicalDeclContext() argument
258 if (DC == getLexicalDeclContext()) in setLexicalDeclContext()
262 setDeclContextsImpl(getDeclContext(), DC, getASTContext()); in setLexicalDeclContext()
[all …]
DMangle.cpp221 void MangleContext::mangleBlock(const DeclContext *DC, const BlockDecl *BD, in mangleBlock() argument
223 assert(!isa<CXXConstructorDecl>(DC) && !isa<CXXDestructorDecl>(DC)); in mangleBlock()
227 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(DC)) { in mangleBlock()
230 assert((isa<NamedDecl>(DC) || isa<BlockDecl>(DC)) && in mangleBlock()
232 if (isa<BlockDecl>(DC)) in mangleBlock()
233 for (; DC && isa<BlockDecl>(DC); DC = DC->getParent()) in mangleBlock()
234 (void) getBlockId(cast<BlockDecl>(DC), true); in mangleBlock()
235 assert((isa<TranslationUnitDecl>(DC) || isa<NamedDecl>(DC)) && in mangleBlock()
237 if (const auto *CD = dyn_cast<CXXConstructorDecl>(DC)) in mangleBlock()
239 else if (const auto *DD = dyn_cast<CXXDestructorDecl>(DC)) in mangleBlock()
[all …]
DDeclOpenMP.cpp30 DeclContext *DC, in Create() argument
34 new (C, DC, additionalSizeToAlloc<Expr *>(VL.size())) in Create()
35 OMPThreadPrivateDecl(OMPThreadPrivate, DC, L); in Create()
63 ASTContext &C, DeclContext *DC, SourceLocation L, DeclarationName Name, in Create() argument
65 return new (C, DC) OMPDeclareReductionDecl(OMPDeclareReduction, DC, L, Name, in Create()
92 OMPCapturedExprDecl *OMPCapturedExprDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
95 return new (C, DC) OMPCapturedExprDecl(C, DC, Id, T); in Create()
DDecl.cpp302 const DeclContext *DC = D->getDeclContext(); in getOutermostFuncOrBlockContext() local
303 while (DC->getDeclKind() != Decl::TranslationUnit) { in getOutermostFuncOrBlockContext()
304 if (isa<FunctionDecl>(DC) || isa<BlockDecl>(DC)) in getOutermostFuncOrBlockContext()
305 Ret = cast<Decl>(DC); in getOutermostFuncOrBlockContext()
306 DC = DC->getParent(); in getOutermostFuncOrBlockContext()
662 for (const DeclContext *DC = D->getDeclContext(); in getLVForNamespaceScopeDecl() local
663 !isa<TranslationUnitDecl>(DC); in getLVForNamespaceScopeDecl()
664 DC = DC->getParent()) { in getLVForNamespaceScopeDecl()
665 const auto *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl()
1117 static LinkageInfo getLVForClosure(const DeclContext *DC, Decl *ContextDecl, in getLVForClosure() argument
[all …]
DDeclObjC.cpp154 ObjCPropertyDecl::findPropertyDecl(const DeclContext *DC, in findPropertyDecl() argument
159 if (const ObjCProtocolDecl *Proto = dyn_cast<ObjCProtocolDecl>(DC)) { in findPropertyDecl()
167 if (auto *IDecl = dyn_cast<ObjCInterfaceDecl>(DC)) { in findPropertyDecl()
175 DeclContext::lookup_result R = DC->lookup(propertyID); in findPropertyDecl()
776 const DeclContext *DC = getDeclContext(); in isDesignatedInitializerForTheInterface() local
777 if (isa<ObjCProtocolDecl>(DC)) in isDesignatedInitializerForTheInterface()
1385 DeclContext *DC, in Create() argument
1392 ObjCInterfaceDecl *Result = new (C, DC) in Create()
1393 ObjCInterfaceDecl(C, DC, atLoc, Id, typeParamList, ClassLoc, PrevDecl, in Create()
1412 ObjCInterfaceDecl::ObjCInterfaceDecl(const ASTContext &C, DeclContext *DC, in ObjCInterfaceDecl() argument
[all …]
DDeclFriend.cpp27 FriendDecl *FriendDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
43 (cast<CXXRecordDecl>(DC)->getTemplateSpecializationKind())); in Create()
52 FriendDecl *FD = new (C, DC, Extra) FriendDecl(DC, L, Friend, FriendL, in Create()
54 cast<CXXRecordDecl>(DC)->pushFriendDecl(FD); in Create()
DDeclCXX.cpp86 DeclContext *DC, SourceLocation StartLoc, in CXXRecordDecl() argument
89 : RecordDecl(K, TK, C, DC, StartLoc, IdLoc, Id, PrevDecl), in CXXRecordDecl()
95 DeclContext *DC, SourceLocation StartLoc, in Create() argument
99 CXXRecordDecl *R = new (C, DC) CXXRecordDecl(CXXRecord, TK, C, DC, StartLoc, in Create()
110 CXXRecordDecl::CreateLambda(const ASTContext &C, DeclContext *DC, in CreateLambda() argument
115 new (C, DC) CXXRecordDecl(CXXRecord, TTK_Class, C, DC, Loc, Loc, in CreateLambda()
2015 DeclContext *DC, in Create() argument
2020 return new (C, DC) LinkageSpecDecl(DC, ExternLoc, LangLoc, Lang, HasBraces); in Create()
2031 UsingDirectiveDecl *UsingDirectiveDecl::Create(ASTContext &C, DeclContext *DC, in Create() argument
2040 return new (C, DC) UsingDirectiveDecl(DC, L, NamespaceLoc, QualifierLoc, in Create()
[all …]
DItaniumMangle.cpp69 const DeclContext *DC = D->getDeclContext(); in getEffectiveDeclContext() local
70 if (isa<CapturedDecl>(DC) || isa<OMPDeclareReductionDecl>(DC)) { in getEffectiveDeclContext()
71 return getEffectiveDeclContext(cast<Decl>(DC)); in getEffectiveDeclContext()
82 return DC->getRedeclContext(); in getEffectiveDeclContext()
85 static const DeclContext *getEffectiveParentContext(const DeclContext *DC) { in getEffectiveParentContext() argument
86 return getEffectiveDeclContext(cast<Decl>(DC)); in getEffectiveParentContext()
89 static bool isLocalContainerContext(const DeclContext *DC) { in isLocalContainerContext() argument
90 return isa<FunctionDecl>(DC) || isa<ObjCMethodDecl>(DC) || isa<BlockDecl>(DC); in isLocalContainerContext()
94 const DeclContext *DC = getEffectiveDeclContext(D); in GetLocalClassDecl() local
95 while (!DC->isNamespace() && !DC->isTranslationUnit()) { in GetLocalClassDecl()
[all …]
/external/clang/lib/Index/
DIndexTypeSourceInfo.cpp29 const DeclContext *DC, bool isBase) in TypeIndexer() argument
30 : IndexCtx(indexCtx), Parent(parent), ParentDC(DC), IsBase(isBase) { in TypeIndexer()
132 const DeclContext *DC, in indexTypeSourceInfo() argument
137 indexTypeLoc(TInfo->getTypeLoc(), Parent, DC, isBase); in indexTypeSourceInfo()
142 const DeclContext *DC, in indexTypeLoc() argument
147 if (!DC) in indexTypeLoc()
148 DC = Parent->getLexicalDeclContext(); in indexTypeLoc()
149 TypeIndexer(*this, Parent, DC, isBase).TraverseTypeLoc(TL); in indexTypeLoc()
154 const DeclContext *DC) { in indexNestedNameSpecifierLoc() argument
159 indexNestedNameSpecifierLoc(Prefix, Parent, DC); in indexNestedNameSpecifierLoc()
[all …]
DIndexingContext.h70 const DeclContext *DC = nullptr);
74 const DeclContext *DC,
87 const DeclContext *DC = nullptr,
91 const DeclContext *DC = nullptr,
96 const DeclContext *DC = nullptr);
98 bool indexDeclContext(const DeclContext *DC);
101 const DeclContext *DC = nullptr);
/external/swiftshader/third_party/LLVM/lib/MC/MCDisassembler/
DDisassembler.cpp79 LLVMDisasmContext *DC = new LLVMDisasmContext(TripleName, DisInfo, TagType, in LLVMCreateDisasm() local
83 assert(DC && "Allocation failure!"); in LLVMCreateDisasm()
85 return DC; in LLVMCreateDisasm()
92 LLVMDisasmContext *DC = (LLVMDisasmContext *)DCR; in LLVMDisasmDispose() local
93 delete DC; in LLVMDisasmDispose()
135 LLVMDisasmContext *DC = (LLVMDisasmContext *)DCR; in LLVMDisasmInstruction() local
141 const MCDisassembler *DisAsm = DC->getDisAsm(); in LLVMDisasmInstruction()
142 MCInstPrinter *IP = DC->getIP(); in LLVMDisasmInstruction()
145 /*REMOVE*/ nulls(), DC->CommentStream); in LLVMDisasmInstruction()
153 DC->CommentStream.flush(); in LLVMDisasmInstruction()
[all …]
/external/clang/lib/Frontend/
DASTConsumers.cpp82 if (DeclContext *DC = dyn_cast<DeclContext>(D)) { in print() local
83 if (DC == DC->getPrimaryContext()) in print()
84 DC->dumpLookups(Out, Dump); in print()
87 << DC->getPrimaryContext() << "\n"; in print()
193 void PrintDeclContext(const DeclContext* DC, unsigned Indentation);
197 void DeclContextPrinter::PrintDeclContext(const DeclContext* DC, in PrintDeclContext() argument
200 switch (DC->getDeclKind()) { in PrintDeclContext()
202 Out << "[translation unit] " << DC; in PrintDeclContext()
206 const NamespaceDecl* ND = cast<NamespaceDecl>(DC); in PrintDeclContext()
211 const EnumDecl* ED = cast<EnumDecl>(DC); in PrintDeclContext()
[all …]
/external/clang/lib/Sema/
DCodeCompleteConsumer.cpp266 StringRef CodeCompletionTUInfo::getParentName(const DeclContext *DC) { in getParentName() argument
267 const NamedDecl *ND = dyn_cast<NamedDecl>(DC); in getParentName()
272 StringRef &CachedParentName = ParentNames[DC]; in getParentName()
283 while (DC && !DC->isFunctionOrMethod()) { in getParentName()
284 if (const NamedDecl *ND = dyn_cast<NamedDecl>(DC)) { in getParentName()
286 Contexts.push_back(DC); in getParentName()
289 DC = DC->getParent(); in getParentName()
376 void CodeCompletionBuilder::addParentContext(const DeclContext *DC) { in addParentContext() argument
377 if (DC->isTranslationUnit()) { in addParentContext()
381 if (DC->isFunctionOrMethod()) in addParentContext()
[all …]
DSemaAccess.cpp66 DeclContext *DC = D->getDeclContext(); in FindDeclaringClass() local
70 if (isa<EnumDecl>(DC)) in FindDeclaringClass()
71 DC = cast<EnumDecl>(DC)->getDeclContext(); in FindDeclaringClass()
73 CXXRecordDecl *DeclaringClass = cast<CXXRecordDecl>(DC); in FindDeclaringClass()
83 explicit EffectiveContext(DeclContext *DC) in EffectiveContext()
84 : Inner(DC), in EffectiveContext()
85 Dependent(DC->isDependentContext()) { in EffectiveContext()
106 if (isa<CXXRecordDecl>(DC)) { in EffectiveContext()
107 CXXRecordDecl *Record = cast<CXXRecordDecl>(DC); in EffectiveContext()
109 DC = Record->getDeclContext(); in EffectiveContext()
[all …]
/external/u-boot/drivers/power/pmic/
DKconfig38 This PMIC includes 4 DC/DC step-down buck regulators and 8 low-dropout
46 The AS3722 includes 7 DC/DC buck convertors, 11 low-noise LDOs, a
114 The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs,
171 The RN5T567 is a PMIC with 4 step-down DC/DC converters, 5 LDO
179 The TPS65090 is a PMIC containing several LDOs, DC to DC convertors,
209 SoC. It provides 4 buck DC-DC convertors and 5 LDOs, and it is accessed
216 The TPS65910 is a PMIC containing 3 buck DC-DC converters, one boost
217 DC-DC converter, 8 LDOs and a RTC. This driver binds the SMPS and LDO
/external/clang/lib/Tooling/Core/
DQualTypeNames.cpp205 const DeclContext *DC = D->getDeclContext(); in createOuterNNS() local
206 if (const auto *NS = dyn_cast<NamespaceDecl>(DC)) { in createOuterNNS()
215 } else if (const auto *TD = dyn_cast<TagDecl>(DC)) { in createOuterNNS()
217 } else if (const auto *TDD = dyn_cast<TypedefNameDecl>(DC)) { in createOuterNNS()
220 } else if (WithGlobalNsPrefix && DC->isTranslationUnit()) { in createOuterNNS()
285 const DeclContext *DC = Decl->getDeclContext()->getRedeclContext(); in createNestedNameSpecifierForScopeOf() local
286 const auto *Outer = dyn_cast_or_null<NamedDecl>(DC); in createNestedNameSpecifierForScopeOf()
287 const auto *OuterNS = dyn_cast_or_null<NamespaceDecl>(DC); in createNestedNameSpecifierForScopeOf()
289 if (const auto *CxxDecl = dyn_cast<CXXRecordDecl>(DC)) { in createNestedNameSpecifierForScopeOf()
324 } else if (WithGlobalNsPrefix && DC->isTranslationUnit()) { in createNestedNameSpecifierForScopeOf()
/external/eigen/Eigen/src/LU/arch/
DInverse_SSE.h78 DC, AB;
87 DC = _mm_mul_ps(_mm_shuffle_ps(D,D,0x0F), C);
88 DC = _mm_sub_ps(DC,_mm_mul_ps(_mm_shuffle_ps(D,D,0xA5), _mm_shuffle_ps(C,C,0x4E)));
105 d = _mm_mul_ps(_mm_shuffle_ps(DC,DC,0xD8),AB);
111 iA = _mm_mul_ps(_mm_shuffle_ps(B,B,0xA0), _mm_movelh_ps(DC,DC));
112 iA = _mm_add_ps(iA,_mm_mul_ps(_mm_shuffle_ps(B,B,0xF5), _mm_movehl_ps(DC,DC)));
138 iC = _mm_mul_ps(A, _mm_shuffle_ps(DC,DC,0x33));
139 iC = _mm_sub_ps(iC, _mm_mul_ps(_mm_shuffle_ps(A,A,0xB1), _mm_shuffle_ps(DC,DC,0x66)));

12345678910>>...26