Searched refs:VD (Results 1 - 25 of 124) sorted by relevance

12345

/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DPseudoConstantAnalysis.h28 bool isPseudoConstant(const VarDecl *VD);
29 bool wasReferenced(const VarDecl *VD);
H A DThreadSafetyCommon.h105 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) {} argument
197 VarDecl *VD = const_cast<VarDecl*>(AD.getVarDecl()); local
198 V.handleDestructorCall(VD, DD);
449 void handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD);
460 til::SExpr *getCurrentLVarDefinition(const ValueDecl *VD);
463 const ValueDecl *VD = nullptr);
464 til::SExpr *lookupVarDecl(const ValueDecl *VD);
465 til::SExpr *addVarDecl(const ValueDecl *VD, til::SExpr *E);
466 til::SExpr *updateVarDecl(const ValueDecl *VD, til::SExpr *E);
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Analysis/
H A DPseudoConstantAnalysis.cpp41 bool PseudoConstantAnalysis::isPseudoConstant(const VarDecl *VD) { argument
43 if (!VD->hasLocalStorage() && !VD->isStaticLocal())
53 return !NonConstants->count(VD);
57 bool PseudoConstantAnalysis::wasReferenced(const VarDecl *VD) { argument
65 return UsedVars->count(VD);
124 const VarDecl *VD = dyn_cast<VarDecl>(LHSDecl); local
126 if (VD)
127 NonConstants->insert(VD);
158 const VarDecl *VD local
176 const VarDecl *VD = dyn_cast<VarDecl>(I); local
[all...]
H A DUninitializedValues.cpp296 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()))
297 if (isTrackedVar(VD, DC))
298 return FindVarResult(VD, DRE);
318 bool isTrackedVar(const VarDecl *VD) const {
319 return ::isTrackedVar(VD, DC);
341 const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl()); local
342 if (!VD || !isTrackedVar(VD))
350 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { argument
351 if (VD
410 VarDecl *VD = dyn_cast<VarDecl>(DI); local
686 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); local
755 VarDecl *VD = dyn_cast<VarDecl>(DI); local
[all...]
H A DThreadSafetyCommon.cpp268 const ValueDecl *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); local
271 if (const ParmVarDecl *PV = dyn_cast_or_null<ParmVarDecl>(VD)) {
283 VD = FD->getParamDecl(I);
287 return new (Arena) til::LiteralPtr(VD);
312 auto *VD = getValueDeclFromSExpr(E); local
313 if (VD && VD->getType()->isPointerType())
341 if (auto *VD = dyn_cast<CXXMethodDecl>(D))
342 D = getFirstVirtualDecl(VD);
474 const ValueDecl *VD local
611 addStatement(til::SExpr* E, const Stmt *S, const ValueDecl *VD) argument
624 lookupVarDecl(const ValueDecl *VD) argument
634 maybeUpdateVD(til::SExpr *E, const ValueDecl *VD) argument
644 addVarDecl(const ValueDecl *VD, til::SExpr *E) argument
653 updateVarDecl(const ValueDecl *VD, til::SExpr *E) argument
866 handleDestructorCall(const VarDecl *VD, const CXXDestructorDecl *DD) argument
[all...]
H A DLiveVariables.cpp291 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
292 for (const VariableArrayType* VA = FindVA(VD->getType());
341 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) {
343 if (VD->getType()->isReferenceType())
346 if (!isAlwaysAlive(VD)) {
348 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD);
358 for (const VarDecl *VD :
360 if (isAlwaysAlive(VD))
362 val.liveDecls = LV.DSetFact.add(val.liveDecls, VD);
374 if (const auto *VD
383 const VarDecl *VD = nullptr; local
[all...]
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DUndefCapturedBlockVarChecker.cpp38 const VarDecl *VD) {
40 if (BR->getDecl() == VD)
45 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD))
69 const VarDecl *VD = VR->getDecl(); local
71 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage())
74 // Get the VarRegion associated with VD in the local stack frame.
86 os << "Variable '" << VD->getName()
90 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
37 FindBlockDeclRefExpr(const Stmt *S, const VarDecl *VD) argument
H A DDeadStoresChecker.cpp208 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, argument
212 if (!VD->hasLocalStorage())
216 if (VD->getType()->getAs<ReferenceType>())
219 if (!isLive(Live, VD) &&
220 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() ||
221 VD->hasAttr<ObjCPreciseLifetimeAttr>())) {
225 Report(VD, dsk, ExLoc, Val->getSourceRange());
231 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
232 CheckVarDecl(VD, D
235 isIncrement(VarDecl *VD, const BinaryOperator* B) argument
432 VarDecl *VD = C.getCapturedVar(); local
[all...]
H A DUndefinedAssignmentChecker.cpp79 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local
80 ex = VD->getInit();
H A DLLVMConventionsChecker.cpp134 void VisitVarDecl(VarDecl *VD);
148 if (VarDecl *VD = dyn_cast<VarDecl>(I))
149 VisitVarDecl(VD);
152 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) { argument
153 Expr *Init = VD->getInit();
159 if (!IsLLVMStringRef(VD->getType()))
184 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
H A DVLASizeChecker.cpp86 const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); local
87 if (!VD)
91 const VariableArrayType *VLA = Ctx.getAsVariableArrayType(VD->getType());
170 state->getRegion(VD, LC)->getExtent(svalBuilder);
H A DPaddingChecker.cpp59 bool VisitVarDecl(const VarDecl *VD) { argument
60 Checker->visitVariable(VD);
98 void visitVariable(const VarDecl *VD) const {
99 const ArrayType *ArrTy = VD->getType()->getAsArrayTypeUnsafe();
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/AST/
H A DStmtIterator.cpp44 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
45 if (VD->hasInit())
71 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
72 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) {
77 if (VD->getInit())
112 VarDecl* VD = cast<VarDecl>(*DGI); local
113 return *VD->getInitAddress();
H A DItaniumCXXABI.cpp42 static const IdentifierInfo *findAnonymousUnionVarDeclName(const VarDecl& VD) { argument
43 const RecordType *RT = VD.getType()->getAs<RecordType>();
78 unsigned getStaticLocalNumber(const VarDecl *VD) override {
83 unsigned getManglingNumber(const VarDecl *VD, unsigned) override {
84 const IdentifierInfo *Identifier = VD->getIdentifier();
87 Identifier = findAnonymousUnionVarDeclName(*VD);
H A DAPValue.cpp404 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>())
405 Out << *VD; local
428 if (const ValueDecl *VD = Base.dyn_cast<const ValueDecl*>()) {
429 Out << *VD; local
430 ElemTy = VD->getType();
450 const ValueDecl *VD = cast<ValueDecl>(BaseOrMember); local
454 Out << *VD; local
455 ElemTy = VD->getType();
530 if (const ValueDecl *VD = getMemberPointerDecl()) {
531 Out << '&' << *cast<CXXRecordDecl>(VD
[all...]
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp52 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
53 if (VD->isStaticLocal())
78 const VarDecl *VD = 0; local
86 VD = dyn_cast_or_null<VarDecl>(DE->getDecl());
91 VD = dyn_cast_or_null<VarDecl>(PD->getSingleDecl());
92 RHS = VD->getAnyInitializer();
95 return std::make_pair(VD, RHS);
/freebsd-11.0-release/contrib/llvm/tools/clang/include/clang/AST/
H A DMangleNumberingContext.h46 virtual unsigned getStaticLocalNumber(const VarDecl *VD) = 0;
50 virtual unsigned getManglingNumber(const VarDecl *VD,
/freebsd-11.0-release/contrib/compiler-rt/lib/profile/
H A DInstrProfilingValue.c161 ValueProfData *VD = NULL; local
163 VD = (ValueProfData *)calloc(VS, sizeof(uint8_t));
164 if (!VD)
166 serializeValueProfDataFromRT(&R, VD);
167 ValueDataArray[I - DataBegin] = VD;
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Sema/
H A DSemaOpenMP.cpp341 MapInfo getMapInfoForVar(VarDecl *VD) { argument
344 if (Stack[Cnt].MappedDecls.count(VD)) {
345 VarMI = Stack[Cnt].MappedDecls[VD];
352 void addMapInfoForVar(VarDecl *VD, MapInfo MI) { argument
354 Stack.back().MappedDecls[VD] = MI;
358 MapInfo IsMappedInCurrentRegion(VarDecl *VD) { argument
361 if (Stack.size() > 1 && Stack.back().MappedDecls.count(VD)) {
362 VarMI = Stack.back().MappedDecls[VD];
775 bool Sema::IsOpenMPCapturedByRef(VarDecl *VD, argument
784 auto Ty = VD
863 IsOpenMPCapturedVar(VarDecl *VD) argument
908 isOpenMPPrivateVar(VarDecl *VD, unsigned Level) argument
[all...]
H A DScopeInfo.cpp222 void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD, argument
229 VD = dyn_cast<VarDecl>(DRE->getFoundDecl());
231 VD = dyn_cast<VarDecl>(ME->getMemberDecl());
235 assert(VD);
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/CodeGen/
H A DModuleBuilder.cpp110 void HandleCXXStaticMemberVarInstantiation(VarDecl *VD) override {
114 Builder->HandleCXXStaticMemberVarInstantiation(VD);
180 if (VarDecl *VD = dyn_cast<VarDecl>(Member)) {
181 if (Ctx->isMSStaticDataMemberInlineDefinition(VD) &&
182 Ctx->DeclMustBeEmitted(VD)) {
183 Builder->EmitGlobal(VD);
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransAutoreleasePool.cpp172 if (VarDecl *VD = dyn_cast<VarDecl>(DclS->getSingleDecl())) {
173 if (isNSAutoreleasePool(VD->getType())) {
174 PoolVarInfo &info = PoolVars[VD];
176 collectRefs(VD, S, info.Refs);
179 if (isPoolCreation(VD->getInit())) {
181 Scopes.back().PoolVar = VD;
190 if (VarDecl *VD = dyn_cast<VarDecl>(dref->getDecl())) {
193 if (isNSAutoreleasePool(VD->getType()) &&
196 Scopes.back().PoolVar = VD;
/freebsd-11.0-release/contrib/llvm/lib/ProfileData/
H A DInstrProfWriter.cpp207 std::unique_ptr<InstrProfValueData[]> VD = Func.getValueForSite(VK, S); local
210 OS << Symtab.getFuncName(VD[I].Value) << ":" << VD[I].Count << "\n";
212 OS << VD[I].Value << ":" << VD[I].Count << "\n";
/freebsd-11.0-release/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DRewriteObjC.cpp276 ValueDecl *VD, bool def=false);
285 void RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD);
288 void RewriteTypeOfDecl(VarDecl *VD);
315 void RewriteBlockPointerDecl(NamedDecl *VD);
316 void RewriteByRefVar(VarDecl *VD);
317 Stmt *RewriteBlockDeclRefExpr(DeclRefExpr *VD);
374 std::string SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag);
1503 ValueDecl *VD = cast<ValueDecl>(DR->getDecl()); local
1504 if (VD->getType()->isObjCQualifiedIdType() ||
1505 VD
2261 RewriteBlockPointerTypeVariable(std::string& Str, ValueDecl *VD) argument
3047 VarDecl *VD = VarDecl::Create(*Context, TUDecl, SourceLocation(), local
3243 RewriteByRefString(std::string &ResultStr, const std::string &Name, ValueDecl *VD, bool def) argument
3254 HasLocalVariableExternalStorage(ValueDecl *VD) argument
3562 ValueDecl *VD = Exp->getDecl(); local
3848 ValueDecl *VD = DeclRefExp->getDecl(); local
3884 ValueDecl *VD = DRE->getDecl(); local
4131 SynthesizeByrefCopyDestroyHelper(VarDecl *VD, int flag) argument
4383 ValueDecl *VD = Exp->getDecl(); local
4753 ValueDecl *VD = DRE->getDecl(); local
4868 VarDecl *VD = cast<VarDecl>(D); local
[all...]
/freebsd-11.0-release/contrib/binutils/opcodes/
H A Dppc-opc.c490 /* The VD or VS field in a VA, VX, VXR or X form instruction. */
491 #define VD VC + 1
492 #define VS VD
496 #define SIMM VD + 1
1805 { "mfvscr", VX(4, 1540), VX_MASK, PPCVEC, { VD } },
1842 { "vaddcuw", VX(4, 384), VX_MASK, PPCVEC, { VD, VA, VB } },
1843 { "vaddfp", VX(4, 10), VX_MASK, PPCVEC, { VD, VA, VB } },
1844 { "vaddsbs", VX(4, 768), VX_MASK, PPCVEC, { VD, VA, VB } },
1845 { "vaddshs", VX(4, 832), VX_MASK, PPCVEC, { VD, VA, VB } },
1846 { "vaddsws", VX(4, 896), VX_MASK, PPCVEC, { VD, V
489 #define VD macro
[all...]

Completed in 409 milliseconds

12345