| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | InfiniteLoopCheck.cpp | 31 static bool isChanged(const Stmt *LoopStmt, const VarDecl *Var, in isChanged() argument 33 if (const auto *ForLoop = dyn_cast<ForStmt>(LoopStmt)) in isChanged() 43 return ExprMutationAnalyzer(*LoopStmt, *Context).isMutated(Var); in isChanged() 61 isChanged(LoopStmt, Var, Context); in isVarThatIsPossiblyChanged() 87 if (isVarThatIsPossiblyChanged(Func, LoopStmt, Cond, Context)) in isAtLeastOneCondVarChanged() 94 if (isAtLeastOneCondVarChanged(Func, LoopStmt, Child, Context)) in isAtLeastOneCondVarChanged() 164 const auto *LoopStmt = Result.Nodes.getNodeAs<Stmt>("loop-stmt"); in check() local 171 if (const auto *While = dyn_cast<WhileStmt>(LoopStmt)) { in check() 180 if (ExprMutationAnalyzer::isUnevaluated(LoopStmt, *LoopStmt, *Result.Context)) in check() 191 diag(LoopStmt->getBeginLoc(), in check() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | LoopUnrolling.cpp | 30 const Stmt *LoopStmt; member 34 : K(InK), LoopStmt(S), LCtx(L), maxStep(N) {} in LoopState() 47 const Stmt *getLoopStmt() const { return LoopStmt; } in getLoopStmt() 50 return K == X.K && LoopStmt == X.LoopStmt; in operator ==() 54 ID.AddPointer(LoopStmt); in Profile() 77 if (!LS.isEmpty() && LS.getHead().getLoopStmt() == LoopStmt) in processLoopEnd() 251 if (!isLoopStmt(LoopStmt)) in shouldCompletelyUnroll() 256 auto Matches = match(forLoopMatcher(), *LoopStmt, ASTCtx); in shouldCompletelyUnroll() 280 bool madeNewBranch(ExplodedNode *N, const Stmt *LoopStmt) { in madeNewBranch() argument 290 if (S == LoopStmt) in madeNewBranch() [all …]
|
| H A D | LoopWidening.cpp | 28 static const Expr *getLoopCondition(const Stmt *LoopStmt) { in getLoopCondition() argument 29 switch (LoopStmt->getStmtClass()) { in getLoopCondition() 33 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition() 35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition() 37 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition() 46 unsigned BlockCount, const Stmt *LoopStmt) { in getWidenedLoopState() argument 48 assert((isa<ForStmt, WhileStmt, DoStmt>(LoopStmt))); in getWidenedLoopState() 94 return PrevState->invalidateRegions(Regions, getLoopCondition(LoopStmt), in getWidenedLoopState()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/ |
| H A D | InefficientVectorOperationCheck.cpp | 206 const Stmt *LoopStmt = ForLoop; in check() local 207 if (!LoopStmt) in check() 208 LoopStmt = RangeLoop; in check() 226 LoopStmt->getBeginLoc())) { in check() 272 Diag << FixItHint::CreateInsertion(LoopStmt->getBeginLoc(), ReserveStmt); in check()
|
| /llvm-project-15.0.7/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | LoopUnrolling.h | 37 ProgramStateRef updateLoopStack(const Stmt *LoopStmt, ASTContext &ASTCtx, 42 ProgramStateRef processLoopEnd(const Stmt *LoopStmt, ProgramStateRef State);
|
| H A D | LoopWidening.h | 30 unsigned BlockCount, const Stmt *LoopStmt);
|
| /llvm-project-15.0.7/clang/include/clang/Analysis/ |
| H A D | ProgramPoint.h | 714 LoopExit(const Stmt *LoopStmt, const LocationContext *LC) in LoopExit() argument 715 : ProgramPoint(LoopStmt, nullptr, LoopExitKind, LC) {} in LoopExit()
|
| H A D | CFG.h | 1159 void appendLoopExit(const Stmt *LoopStmt, BumpVectorContext &C) { in appendLoopExit() argument 1160 Elements.push_back(CFGLoopExit(LoopStmt), C); in appendLoopExit()
|
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFG.cpp | 754 void addLoopExit(const Stmt *LoopStmt); 869 void appendLoopExit(CFGBlock *B, const Stmt *LoopStmt) { in appendLoopExit() argument 870 B->appendLoopExit(LoopStmt, cfg->getBumpVectorContext()); in appendLoopExit() 1735 void CFGBuilder::addLoopExit(const Stmt *LoopStmt){ in addLoopExit() argument 1739 appendLoopExit(Block, LoopStmt); in addLoopExit()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | StmtOpenMP.h | 163 static OMPCanonicalLoop *create(const ASTContext &Ctx, Stmt *LoopStmt, in create() argument 168 S->setLoopStmt(LoopStmt); in create()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | TreeTransform.h | 1577 StmtResult RebuildOMPCanonicalLoop(Stmt *LoopStmt) { in RebuildOMPCanonicalLoop() argument 1578 return getSema().ActOnOpenMPCanonicalLoop(LoopStmt); in RebuildOMPCanonicalLoop()
|