HomeSort by: relevance | last modified time | path
    Searched refs:VD (Results 1 - 25 of 207) sorted by relevancy

1 2 3 4 5 6 7 8 9

  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
UndefCapturedBlockVarChecker.cpp 37 const VarDecl *VD) {
39 if (BR->getDecl() == VD)
44 if (const DeclRefExpr *BR = FindBlockDeclRefExpr(Child, VD))
66 const VarDecl *VD = VR->getDecl();
68 if (VD->hasAttr<BlocksAttr>() || !VD->hasLocalStorage())
71 // Get the VarRegion associated with VD in the local stack frame.
83 os << "Variable '" << VD->getName()
87 if (const Expr *Ex = FindBlockDeclRefExpr(BE->getBody(), VD))
DeadStoresChecker.cpp 268 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val,
272 if (!VD->hasLocalStorage())
276 if (VD->getType()->getAs<ReferenceType>())
279 if (!isLive(Live, VD) &&
280 !(VD->hasAttr<UnusedAttr>() || VD->hasAttr<BlocksAttr>() ||
281 VD->hasAttr<ObjCPreciseLifetimeAttr>())) {
285 Report(VD, dsk, ExLoc, Val->getSourceRange());
291 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
292 CheckVarDecl(VD, DR, Val, dsk, Live)
    [all...]
CastToStructChecker.cpp 78 const ValueDecl *VD = nullptr;
80 VD = SE->getDecl();
82 VD = SE->getMemberDecl();
83 if (!VD || VD->getType()->isReferenceType())
MacOSXAPIChecker.cpp 97 const VarDecl *VD = VR->getDecl();
102 if (VD->isStaticLocal())
108 if (VD->hasAttr<BlocksAttr>())
LLVMConventionsChecker.cpp 132 void VisitVarDecl(VarDecl *VD);
146 if (VarDecl *VD = dyn_cast<VarDecl>(I))
147 VisitVarDecl(VD);
150 void StringRefCheckerVisitor::VisitVarDecl(VarDecl *VD) {
151 Expr *Init = VD->getInit();
157 if (!IsLLVMStringRef(VD->getType()))
182 PathDiagnosticLocation::createBegin(VD, BR.getSourceManager());
  /src/external/apache2/llvm/dist/clang/lib/AST/
StmtIterator.cpp 48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI))
49 if (VD->hasInit())
75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) {
76 if (const VariableArrayType* VAPtr = FindVA(VD->getType().getTypePtr())) {
81 if (VD->getInit())
116 VarDecl* VD = cast<VarDecl>(*DGI);
117 return *VD->getInitAddress();
AttrImpl.cpp 145 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) {
146 if (!VD->hasAttrs())
150 for (auto *Attr : VD->specific_attrs<OMPDeclareTargetDeclAttr>()) {
162 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) {
163 llvm::Optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD);
170 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) {
171 llvm::Optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD);
178 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) {
179 llvm::Optional<OMPDeclareTargetDeclAttr *> ActiveAttr = getActiveAttr(VD);
ItaniumCXXABI.cpp 44 static const IdentifierInfo *findAnonymousUnionVarDeclName(const VarDecl& VD) {
45 const RecordType *RT = VD.getType()->getAs<RecordType>();
159 unsigned getStaticLocalNumber(const VarDecl *VD) override {
164 unsigned getManglingNumber(const VarDecl *VD, unsigned) override {
165 if (auto *DD = dyn_cast<DecompositionDecl>(VD)) {
170 const IdentifierInfo *Identifier = VD->getIdentifier();
174 Identifier = findAnonymousUnionVarDeclName(*VD);
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
MangleNumberingContext.h 44 virtual unsigned getStaticLocalNumber(const VarDecl *VD) = 0;
48 virtual unsigned getManglingNumber(const VarDecl *VD,
  /src/external/gpl3/gcc.old/dist/gcc/config/aarch64/
aarch64-modes.def 90 #define ADV_SIMD_D_REG_STRUCT_MODES(NVECS, VB, VH, VS, VD) \
99 ADJUST_NUNITS (VD##DI, NVECS); \
103 ADJUST_NUNITS (VD##DF, NVECS); \
108 ADJUST_ALIGNMENT (VD##DI, 8); \
112 ADJUST_ALIGNMENT (VD##DF, 8);
119 #define ADV_SIMD_Q_REG_STRUCT_MODES(NVECS, VB, VH, VS, VD) \
126 ADJUST_NUNITS (VD##DI, NVECS * 2); \
130 ADJUST_NUNITS (VD##DF, NVECS * 2); \
135 ADJUST_ALIGNMENT (VD##DI, 16); \
139 ADJUST_ALIGNMENT (VD##DF, 16)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/AST/Interp/
ByteCodeExprGen.cpp 31 DeclScope(ByteCodeExprGen<Emitter> *Ctx, const VarDecl *VD)
32 : LocalScope<Emitter>(Ctx), Scope(Ctx->P, VD) {}
267 if (auto *VD = dyn_cast<VarDecl>(DE->getDecl()))
268 return dereferenceVar(LV, *T, VD, AK, Direct, Indirect);
325 const Expr *LV, PrimType T, const VarDecl *VD, DerefKind AK,
328 auto It = Locals.find(VD);
353 } else if (auto Idx = getGlobalIdx(VD)) {
382 if (VD->hasLocalStorage() && VD->hasInit() && !VD->isConstexpr())
    [all...]
ByteCodeStmtGen.cpp 147 if (auto *VD = dyn_cast<VarDecl>(D)) {
148 if (!visitVarDecl(VD))
228 bool ByteCodeStmtGen<Emitter>::visitVarDecl(const VarDecl *VD) {
229 auto DT = VD->getType();
231 if (!VD->hasLocalStorage()) {
238 auto Off = this->allocateLocalPrimitive(VD, *T, DT.isConstQualified());
242 if (!this->visit(VD->getInit()))
246 return this->emitSetLocal(*T, Off, VD);
249 if (auto Off = this->allocateLocal(VD)) {
250 return this->visitLocalInitializer(VD->getInit(), *Off)
    [all...]
Program.h 60 llvm::Optional<unsigned> getGlobal(const ValueDecl *VD);
63 llvm::Optional<unsigned> getOrCreateGlobal(const ValueDecl *VD);
69 llvm::Optional<unsigned> createGlobal(const ValueDecl *VD);
116 DeclScope(Program &P, const VarDecl *VD) : P(P) { P.startDeclaration(VD); }
Program.cpp 87 llvm::Optional<unsigned> Program::getGlobal(const ValueDecl *VD) {
88 auto It = GlobalIndices.find(VD);
94 for (const Decl *P = VD; P; P = P->getPreviousDecl()) {
104 GlobalIndices[VD] = *Index;
111 llvm::Optional<unsigned> Program::getOrCreateGlobal(const ValueDecl *VD) {
112 if (auto Idx = getGlobal(VD))
115 if (auto Idx = createGlobal(VD)) {
116 GlobalIndices[VD] = *Idx;
141 llvm::Optional<unsigned> Program::createGlobal(const ValueDecl *VD) {
143 if (auto *Var = dyn_cast<VarDecl>(VD)) {
    [all...]
  /src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
PredicateInfo.cpp 158 std::pair<BasicBlock *, BasicBlock *> getBlockEdge(const ValueDFS &VD) const {
159 if (!VD.Def && VD.U) {
160 auto *PHI = cast<PHINode>(VD.U->getUser());
161 return std::make_pair(PHI->getIncomingBlock(*VD.U), PHI->getParent());
164 return ::getBlockEdge(VD.PInfo);
201 Value *getMiddleDef(const ValueDFS &VD) const {
202 if (VD.Def)
203 return VD.Def;
210 if (!VD.U)
    [all...]
  /src/external/gpl3/gcc/dist/gcc/config/aarch64/
aarch64-modes.def 107 #define ADV_SIMD_D_REG_STRUCT_MODES(NVECS, VB, VH, VS, VD) \
116 ADJUST_NUNITS (VD##DI, NVECS); \
120 ADJUST_NUNITS (VD##DF, NVECS); \
125 ADJUST_ALIGNMENT (VD##DI, 8); \
129 ADJUST_ALIGNMENT (VD##DF, 8);
136 #define ADV_SIMD_Q_REG_STRUCT_MODES(NVECS, VB, VH, VS, VD) \
143 ADJUST_NUNITS (VD##DI, NVECS * 2); \
147 ADJUST_NUNITS (VD##DF, NVECS * 2); \
152 ADJUST_ALIGNMENT (VD##DI, 16); \
156 ADJUST_ALIGNMENT (VD##DF, 16)
    [all...]
  /src/external/apache2/llvm/dist/clang/tools/clang-extdef-mapping/
ClangExtDefMapGen.cpp 66 } else if (const auto *VD = dyn_cast<VarDecl>(D)) {
67 if (cross_tu::containsConst(VD, Ctx) && VD->hasInit())
68 if (const Expr *Init = VD->getInit())
69 addIfInMain(VD, Init->getBeginLoc());
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
CheckerHelpers.cpp 56 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()))
57 if (VD->isStaticLocal())
82 const VarDecl *VD = nullptr;
90 VD = dyn_cast_or_null<VarDecl>(DE->getDecl());
95 VD = cast<VarDecl>(PD->getSingleDecl());
96 RHS = VD->getAnyInitializer();
99 return std::make_pair(VD, RHS);
LoopWidening.cpp 75 const VarDecl *VD = Match.getNodeAs<VarDecl>(MatchRef);
76 assert(VD);
77 const VarRegion *VarMem = MRMgr.getVarRegion(VD, LCtx);
  /src/external/apache2/llvm/dist/clang/lib/CodeGen/
VarBypassDetector.cpp 36 const VarDecl *VD = dyn_cast<VarDecl>(D);
37 if (VD && VD->hasLocalStorage()) {
38 Scopes.push_back({ParentScope, VD});
42 if (const VarDecl *VD = dyn_cast<VarDecl>(D))
43 if (const Expr *Init = VD->getInit())
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
LiveVariables.cpp 249 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) {
250 for (const VariableArrayType* VA = FindVA(VD->getType());
322 static bool writeShouldKill(const VarDecl *VD) {
323 return VD && !VD->getType()->isReferenceType() &&
324 !isAlwaysAlive(VD);
348 } else if (const auto *VD = dyn_cast<VarDecl>(D)) {
349 Killed = writeShouldKill(VD);
351 val.liveDecls = LV.DSetFact.remove(val.liveDecls, VD);
362 for (const VarDecl *VD
    [all...]
UninitializedValues.cpp 44 static bool isTrackedVar(const VarDecl *vd, const DeclContext *dc) {
45 if (vd->isLocalVarDecl() && !vd->hasGlobalStorage() &&
46 !vd->isExceptionVariable() && !vd->isInitCapture() &&
47 !vd->isImplicit() && vd->getDeclContext() == dc) {
48 QualType ty = vd->getType();
83 const VarDecl *vd = *I; local
84 if (isTrackedVar(vd, &dc)
223 const VarDecl *vd; member in class:__anon420::FindVarResult
711 const VarDecl *vd = I.getVariable(); local
    [all...]
ThreadSafetyCommon.cpp 274 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl());
277 if (const auto *PV = dyn_cast<ParmVarDecl>(VD)) {
292 VD = isa<FunctionDecl>(D)
298 return new (Arena) til::LiteralPtr(VD);
323 auto *VD = getValueDeclFromSExpr(E);
324 if (VD && VD->getType()->isAnyPointerType())
351 if (const auto *VD = dyn_cast<CXXMethodDecl>(D))
352 D = getFirstVirtualDecl(VD);
498 const ValueDecl *VD = nullptr
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Frontend/
InterfaceStubFunctionsConsumer.cpp 56 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) {
57 if (const auto *Parent = VD->getParentFunctionOrMethod())
61 if ((VD->getStorageClass() == StorageClass::SC_Extern) ||
62 (VD->getStorageClass() == StorageClass::SC_Static &&
63 VD->getParentFunctionOrMethod() == nullptr))
85 if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
87 dyn_cast_or_null<FunctionDecl>(VD->getParentFunctionOrMethod()))
213 const auto *VD = cast<VarDecl>(ND);
215 if (VD->isTemplated() || VD->getType()->isDependentType()
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/profile/
InstrProfilingValue.c 161 ValueProfData *VD = NULL;
163 VD = (ValueProfData *)calloc(VS, sizeof(uint8_t));
164 if (!VD)
166 serializeValueProfDataFromRT(&R, VD);
167 ValueDataArray[I - DataBegin] = VD;

Completed in 50 milliseconds

1 2 3 4 5 6 7 8 9