Home
last modified time | relevance | path

Searched defs:VD (Results 1 – 25 of 186) sorted by relevance

12345678

/freebsd-src/contrib/llvm-project/clang/lib/AST/
H A DStmtIterator.cpp48 if (VarDecl* VD = dyn_cast<VarDecl>(*DGI)) in NextVA() local
75 if (VarDecl* VD = dyn_cast<VarDecl>(D)) { in HandleDecl() local
116 VarDecl* VD = cast<VarDecl>(*DGI); in GetDeclExpr() local
H A DAttrImpl.cpp153 OMPDeclareTargetDeclAttr::getActiveAttr(const ValueDecl *VD) { in getActiveAttr()
172 OMPDeclareTargetDeclAttr::isDeclareTargetDeclaration(const ValueDecl *VD) { in isDeclareTargetDeclaration()
180 OMPDeclareTargetDeclAttr::getDeviceType(const ValueDecl *VD) { in getDeviceType()
188 OMPDeclareTargetDeclAttr::getLocation(const ValueDecl *VD) { in getLocation()
H A DItaniumCXXABI.cpp45 static const IdentifierInfo *findAnonymousUnionVarDeclName(const VarDecl& VD) { in findAnonymousUnionVarDeclName()
160 unsigned getStaticLocalNumber(const VarDecl *VD) override { in getStaticLocalNumber()
165 unsigned getManglingNumber(const VarDecl *VD, unsigned) override { in getManglingNumber()
/freebsd-src/contrib/llvm-project/clang/lib/Analysis/
H A DThreadSafetyCommon.cpp221 til::LiteralPtr *SExprBuilder::createVariable(const VarDecl *VD) { in createVariable() argument
310 const auto *VD = cast<ValueDecl>(DRE->getDecl()->getCanonicalDecl()); in translateDeclRefExpr() local
369 auto *VD = getValueDeclFromSExpr(E); in hasAnyPointerType() local
397 if (const auto *VD in translateMemberExpr() local
544 const ValueDecl *VD = nullptr; translateBinAssign() local
661 if (auto *VD = dyn_cast_or_null<VarDecl>(I)) { translateDeclStmt() local
682 addStatement(til::SExpr * E,const Stmt * S,const ValueDecl * VD) addStatement() argument
694 lookupVarDecl(const ValueDecl * VD) lookupVarDecl() argument
704 maybeUpdateVD(til::SExpr * E,const ValueDecl * VD) maybeUpdateVD() argument
714 addVarDecl(const ValueDecl * VD,til::SExpr * E) addVarDecl() argument
723 updateVarDecl(const ValueDecl * VD,til::SExpr * E) updateVarDecl() argument
934 handleDestructorCall(const VarDecl * VD,const CXXDestructorDecl * DD) handleDestructorCall() argument
[all...]
H A DLiveVariables.cpp255 if (const VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl())) { in Visit() local
328 static bool writeShouldKill(const VarDecl *VD) { in writeShouldKill()
358 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { in VisitBinaryOperator() local
372 for (const VarDecl *VD : in VisitBlockExpr() local
390 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { in VisitDeclRefExpr() local
409 } else if (const auto *VD = dyn_cast<VarDecl>(DI)) { in VisitDeclStmt() local
419 const VarDecl *VD = nullptr; in VisitObjCForCollectionStmt() local
H A DUninitializedValues.cpp269 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) in findVar() local
318 const auto *VD = dyn_cast<VarDecl>(DRE->getDecl()); in get() local
328 static const DeclRefExpr *getSelfInitExpr(VarDecl *VD) { in getSelfInitExpr() argument
360 if (const auto *VD = dyn_cast<VarDecl>(ME->getMemberDecl())) { classify() local
388 auto *VD = dyn_cast<VarDecl>(DI); VisitDeclStmt() local
685 const auto *VD = cast<VarDecl>(DS->getSingleDecl()); VisitObjCForCollectionStmt() local
760 if (const VarDecl *VD = Var.getDecl()) VisitBinaryOperator() local
767 auto *VD = dyn_cast<VarDecl>(DI); VisitDeclStmt() local
818 if (const VarDecl *VD = findVar(Ex).getDecl()) VisitGCCAsmStmt() local
[all...]
H A DUnsafeBufferUsage.cpp963 if (const auto *VD = dyn_cast<VarDecl>(D)) { discoverDecl() local
1007 set(const VarDecl * VD,Kind K) set() argument
1278 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { groupWarningGadgetsByVar() local
1307 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { groupFixablesByVar() local
1384 isNonNegativeIntegerExpr(const Expr * Expr,const VarDecl * VD,const ASTContext & Ctx) isNonNegativeIntegerExpr() argument
1398 if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) { getFixits() local
1427 const auto *VD = cast<VarDecl>(DREs.front()->getDecl()); getFixits() local
1519 getVarDeclIdentifierLoc(const VarDecl * VD) getVarDeclIdentifierLoc() argument
1527 getVarDeclIdentifierText(const VarDecl * VD,const SourceManager & SM,const LangOptions & LangOpts) getVarDeclIdentifierText() argument
1545 hasUnsupportedSpecifiers(const VarDecl * VD,const SourceManager & SM) hasUnsupportedSpecifiers() argument
1582 getPointeeTypeText(const VarDecl * VD,const SourceManager & SM,const LangOptions & LangOpts,std::optional<Qualifiers> * QualifiersToAppend) getPointeeTypeText() argument
1687 const VarDecl *VD = dyn_cast<VarDecl>(BaseDeclRefExpr->getDecl()); getFixits() local
1750 const VarDecl *VD = cast<VarDecl>(BaseDeclRefExpr->getDecl()); getFixits() local
1782 const auto VD = cast<VarDecl>(Node->getDecl()); getFixits() local
1851 if (const VarDecl *VD = dyn_cast<VarDecl>(DREs.front()->getDecl())) { getFixits() local
1892 if (const VarDecl *VD = dyn_cast<VarDecl>(DREs.front()->getDecl())) { getFixits() local
2017 createSpanTypeForVarDecl(const VarDecl * VD,const ASTContext & Ctx) createSpanTypeForVarDecl() argument
2355 fixVariableWithSpan(const VarDecl * VD,const DeclUseTracker & Tracker,ASTContext & Ctx,UnsafeBufferUsageHandler & Handler) fixVariableWithSpan() argument
2381 fixVariable(const VarDecl * VD,Strategy::Kind K,const Decl * D,const DeclUseTracker & Tracker,ASTContext & Ctx,UnsafeBufferUsageHandler & Handler) fixVariable() argument
2448 isParameterOf(const VarDecl * VD,const Decl * D) isParameterOf() argument
2610 for (const VarDecl *VD : UnsafeVars) { getNaiveStrategy() local
[all...]
H A DCFG.cpp67 if (VarDecl *VD = dyn_cast<VarDecl>(D)) in GetEndLoc() local
324 void addVar(VarDecl *VD) { in addVar() argument
640 void maybeAddScopeBeginForVarDecl(CFGBlock *B, const VarDecl *VD, in maybeAddScopeBeginForVarDecl() argument
880 void appendAutomaticObjDtor(CFGBlock *B, VarDecl *VD, Stmt *S) { in appendAutomaticObjDtor() argument
884 appendCleanupFunction(CFGBlock * B,VarDecl * VD) appendCleanupFunction() argument
888 appendLifetimeEnds(CFGBlock * B,VarDecl * VD,Stmt * S) appendLifetimeEnds() argument
912 appendScopeBegin(CFGBlock * B,const VarDecl * VD,const Stmt * S) appendScopeBegin() argument
917 appendScopeEnd(CFGBlock * B,const VarDecl * VD,const Stmt * S) appendScopeEnd() argument
2101 if (VarDecl *VD = dyn_cast<VarDecl>(DI)) addLocalScopeForDeclStmt() local
2153 addLocalScopeForVarDecl(VarDecl * VD,LocalScope * Scope) addLocalScopeForVarDecl() argument
2963 VarDecl *VD = dyn_cast<VarDecl>(DS->getSingleDecl()); VisitDeclSubExpr() local
3006 if (auto *VD = BD->getHoldingVar()) { VisitDeclSubExpr() local
3092 if (VarDecl *VD = I->getConditionVariable()) VisitIfStmt() local
3512 if (VarDecl *VD = F->getConditionVariable()) VisitForStmt() local
3628 if (VarDecl *VD = F->getConditionVariable()) { VisitForStmt() local
3870 if (VarDecl *VD = W->getConditionVariable()) { VisitWhileStmt() local
3953 if (VarDecl *VD = W->getConditionVariable()) { VisitWhileStmt() local
4347 if (VarDecl *VD = Terminator->getConditionVariable()) VisitSwitchStmt() local
4423 if (VarDecl *VD = Terminator->getConditionVariable()) { VisitSwitchStmt() local
4635 if (VarDecl *VD = CS->getExceptionDecl()) { VisitCXXCatchStmt() local
5547 VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); VisitDeclStmt() local
5833 const VarDecl *VD = DE.getVarDecl(); print_elem() local
5862 if (const VarDecl *VD = E.castAs<CFGScopeBegin>().getVarDecl()) print_elem() local
5869 if (const VarDecl *VD = E.castAs<CFGScopeEnd>().getVarDecl()) print_elem() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/
H A DInterfaceStubFunctionsConsumer.cpp56 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) { WriteNamedDecl() local
85 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) WriteNamedDecl() local
213 const auto *VD = cast<VarDecl>(ND); HandleNamedDecl() local
252 if (const auto *VD = dyn_cast<ValueDecl>(ND)) { HandleTranslationUnit() local
312 auto VD = cast<ValueDecl>(E.first)->getType(); HandleTranslationUnit() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp265 void CheckVarDecl(const VarDecl *VD, const Expr *Ex, const Expr *Val, in CheckVarDecl()
288 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in CheckDeclRef() local
292 bool isIncrement(VarDecl *VD, const BinaryOperator* B) { in isIncrement()
330 if (VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { in observeStmt() local
418 if (const VarDecl *VD = dyn_cast<VarDecl>(DRE->getDecl())) { in observeStmt() local
499 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) in operator ()() local
514 ValueDecl *VD = C.getCapturedVar(); in findLambdaReferenceCaptures() local
H A DUndefCapturedBlockVarChecker.cpp38 const VarDecl *VD) { in FindBlockDeclRefExpr()
64 const VarDecl *VD = VR->getDecl(); in checkPostStmt() local
H A DUndefinedAssignmentChecker.cpp82 const VarDecl *VD = cast<VarDecl>(DS->getSingleDecl()); in checkBind() local
H A DDereferenceChecker.cpp73 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) { AddDerefSource() local
108 const VarDecl *VD; getDereferenceExpr() local
/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DVarBypassDetector.cpp36 const VarDecl *VD = dyn_cast<VarDecl>(D); in BuildScopeInformation() local
42 if (const VarDecl *VD = dyn_cast<VarDecl>(D)) in BuildScopeInformation() local
H A DCGOpenMPRuntimeGPU.cpp134 const ValueDecl *VD = Pair.second; in buildRecordForGlobalizedVars() local
195 markAsEscaped(const ValueDecl * VD) markAsEscaped() argument
248 VisitValueDecl(const ValueDecl * VD) VisitValueDecl() argument
267 const ValueDecl *VD = C.getCapturedVar(); VisitOpenMPCapturedStmt() local
331 if (const auto *VD = dyn_cast_or_null<ValueDecl>(D)) VisitDeclStmt() local
360 const ValueDecl *VD = C.getCapturedVar(); VisitCapturedStmt() local
373 const ValueDecl *VD = C.getCapturedVar(); VisitLambdaExpr() local
386 const VarDecl *VD = C.getVariable(); VisitBlockExpr() local
413 const ValueDecl *VD = E->getDecl(); VisitDeclRefExpr() local
1072 const auto *VD = cast<VarDecl>(Rec.first); emitGenericVarsProlog() local
1113 const auto *VD = cast<VarDecl>(ValueD); emitGenericVarsProlog() local
1137 getKmpcAllocShared(CodeGenFunction & CGF,const VarDecl * VD) getKmpcAllocShared() argument
1187 const auto *VD = cast<VarDecl>(Rec.first); emitGenericVarsEpilog() local
2215 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); emitListToGlobalCopyFunction() local
2317 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); emitListToGlobalReduceFunction() local
2422 const ValueDecl *VD = cast<DeclRefExpr>(Private)->getDecl(); emitGlobalToListCopyFunction() local
2524 const ValueDecl *VD = cast<DeclRefExpr>(*IPriv)->getDecl(); emitGlobalToListReduceFunction() local
3233 for (const ValueDecl *VD : VarChecker.getEscapedDecls()) { emitFunctionProlog() local
3252 getAddressOfLocalVariable(CodeGenFunction & CGF,const VarDecl * VD) getAddressOfLocalVariable() argument
3364 const VarDecl *VD = C.getCapturedVar(); adjustTargetSpecificDataForLambdas() local
3390 const ValueDecl *VD = LC.getCapturedVar(); adjustTargetSpecificDataForLambdas() local
3408 hasAllocateAttributeForGlobalVar(const VarDecl * VD,LangAS & AS) hasAllocateAttributeForGlobalVar() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DInjectTLIMappings.cpp42 const VecDesc *VD) { in addVariantDeclaration()
95 const VecDesc *VD = TLI.getVectorMappingInfo(ScalarName, VF, Predicate); in addMappingsFromTLI() local
/freebsd-src/contrib/llvm-project/clang/lib/AST/Interp/
H A DProgram.cpp141 GlobalIndices[VD] = *Idx; in getOrCreateDummy() argument
105 getGlobal(const ValueDecl * VD) getGlobal() argument
129 getOrCreateGlobal(const ValueDecl * VD,const Expr * Init) getOrCreateGlobal() argument
160 createGlobal(const ValueDecl * VD,const Expr * Init) createGlobal() argument
[all...]
H A DEvaluationResult.cpp142 const auto *VD = cast<VarDecl>(SourceDecl); checkFullyInitialized() local
175 if (const auto *VD = dyn_cast<ValueDecl>(D)) dump() local
H A DInterp.cpp57 diagnoseNonConstVariable(InterpState & S,CodePtr OpPC,const ValueDecl * VD) diagnoseNonConstVariable() argument
192 const auto *VD = Ptr.getDeclDesc()->asValueDecl(); CheckExtern() local
239 __anon612b7af60102(const VarDecl *VD) CheckConstant() argument
260 if (const auto *VD = dyn_cast<VarDecl>(D); CheckConstant() local
572 } else if (const auto *VD = dyn_cast<VarDecl>(D)) { CheckDeclRef() local
[all...]
H A DContext.h85 shouldBeGloballyIndexed(const ValueDecl * VD) shouldBeGloballyIndexed() argument
H A DByteCodeExprGen.cpp
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaCUDA.cpp121 auto *VD = dyn_cast_or_null<VarDecl>(D); CUDATargetContextRAII() local
594 IsDependentVar(VarDecl * VD) IsDependentVar() argument
611 HasAllowedCUDADeviceStaticInitializer(Sema & S,VarDecl * VD,CUDAInitializerCheckKind CheckKind) HasAllowedCUDADeviceStaticInitializer() argument
631 __anon2f1cc7040b02(VarDecl *VD) HasAllowedCUDADeviceStaticInitializer() argument
643 checkAllowedCUDAInitializer(VarDecl * VD) checkAllowedCUDAInitializer() argument
787 MaybeAddCUDAConstantAttr(VarDecl * VD) MaybeAddCUDAConstantAttr() argument
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerHelpers.cpp57 if (const VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl())) containsStaticLocal() local
83 const VarDecl *VD = nullptr; parseAssignment() local
H A DLoopWidening.cpp76 const VarDecl *VD = Match.getNodeAs<VarDecl>(MatchRef); in getWidenedLoopState() local
/freebsd-src/contrib/llvm-project/clang/include/clang/Analysis/Analyses/
H A DUnsafeBufferUsage.h88 addDebugNoteForVar(const VarDecl * VD,SourceLocation Loc,std::string Text) addDebugNoteForVar() argument

12345678