Home
last modified time | relevance | path

Searched refs:getInc (Results 1 – 24 of 24) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cert/
H A DFloatLoopCounter.cpp28 diag(FS->getInc()->getExprLoc(), "loop induction expression should not have " in check()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DInfiniteLoopCheck.cpp34 return (ForLoop->getInc() && in isChanged()
35 ExprMutationAnalyzer(*ForLoop->getInc(), *Context) in isChanged()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/altera/
H A DUnrollLoopsCheck.cpp126 const Expr *Increment = ForLoop->getInc(); in hasKnownBounds()
176 const Expr *Increment = ForLoop->getInc(); in hasLargeNumIterations()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCodeGenPGO.cpp551 if (S->getInc()) { in VisitForStmt()
553 CountMap[S->getInc()] = IncCount; in VisitForStmt()
554 Visit(S->getInc()); in VisitForStmt()
590 CountMap[S->getInc()] = IncCount; in VisitCXXForRangeStmt()
591 Visit(S->getInc()); in VisitCXXForRangeStmt()
H A DCGStmt.cpp1053 if (!S.getInc()) in EmitForStmt()
1067 Continue = S.getInc() ? getJumpDestInCurrentScope("for.inc") : CondDest; in EmitForStmt()
1111 if (S.getInc()) { in EmitForStmt()
1113 EmitStmt(S.getInc()); in EmitForStmt()
1199 EmitStmt(S.getInc()); in EmitCXXForRangeStmt()
H A DCGStmtOpenMP.cpp2571 S, LoopScope.requiresCleanups(), S.getCond(), S.getInc(), in emitOMPSimdRegion()
2959 OuterLoopArgs.IncExpr = S.getInc(); in EmitOMPForOuterLoop()
2998 IncExpr = S.getInc(); in EmitOMPDistributeOuterLoop()
3165 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in EmitOMPDistributeSimdDirective()
3387 StaticChunkedOne ? S.getDistInc() : S.getInc(), in EmitOMPWorksharingLoop()
5733 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in EmitOMPDistributeDirective()
6768 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in emitTargetTeamsDistributeRegion()
6814 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in emitTargetTeamsDistributeSimdRegion()
6859 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in EmitOMPTeamsDistributeDirective()
6881 CGF.EmitOMPDistributeLoop(S, emitOMPLoopBodyWithStopPoint, S.getInc()); in EmitOMPTeamsDistributeSimdDirective()
[all …]
H A DCoverageMappingGen.cpp1162 if (S->getInc()) in VisitForStmt()
1177 if (const Stmt *Inc = S->getInc()) { in VisitForStmt()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmtCXX.h167 Expr *getInc() { return cast_or_null<Expr>(SubExprs[INC]); } in getInc() function
183 const Expr *getInc() const { in getInc() function
H A DStmt.h2599 Expr *getInc() { return reinterpret_cast<Expr*>(SubExprs[INC]); } in getInc() function
2604 const Expr *getInc() const { return reinterpret_cast<Expr*>(SubExprs[INC]); } in getInc() function
H A DStmtOpenMP.h1331 Expr *getInc() const { return cast<Expr>(Data->getChildren()[IncOffset]); } in getInc() function
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp385 if (!isIdenticalStmt(Ctx, ForStmt1->getInc(), ForStmt2->getInc(), in isIdenticalStmt()
H A DCheckSecuritySyntaxOnly.cpp273 const Expr *increment = FS->getInc(); in checkLoopConditionForFloat()
/llvm-project-15.0.7/clang/lib/ARCMigrate/
H A DTransforms.cpp279 mark(S->getInc()); in VisitForStmt()
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DBugReporter.cpp1052 if (isContainedByStmt(PM, FR->getInc(), S)) in isInLoopBody()
1061 if (isContainedByStmt(PM, FS->getInc(), S)) in isInLoopBody()
1408 return FS->getInc() == S || FS->getInit() == S; in isIncrementOrInitInForLoop()
1410 return FRS->getInc() == S || FRS->getRangeStmt() == S || in isIncrementOrInitInForLoop()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DReachableCode.cpp636 const Expr *Inc = FS->getInc(); in reportDeadCode()
H A DCFG.cpp3483 if (Stmt *I = F->getInc()) { in VisitForStmt()
4679 Succ = addStmt(S->getInc()); in VisitCXXForRangeStmt()
5480 if (F->getInc()) in VisitForStmt()
/llvm-project-15.0.7/clang/lib/AST/
H A DStmtPrinter.cpp405 if (Node->getInc()) { in VisitForStmt()
407 PrintExpr(Node->getInc()); in VisitForStmt()
H A DExprConstant.cpp5143 if (const auto *Inc = FS->getInc()) { in EvaluateStmt()
5362 if (const auto *Inc = FS->getInc()) { in EvaluateStmt()
5452 if (FS->getInc()->isValueDependent()) { in EvaluateStmt()
5453 if (!EvaluateDependentExpr(FS->getInc(), Info)) in EvaluateStmt()
5457 if (!EvaluateIgnoredValue(Info, FS->getInc())) in EvaluateStmt()
H A DASTImporter.cpp6531 auto ToInc = importChecked(Err, S->getInc()); in VisitForStmt()
6641 auto ToInc = importChecked(Err, S->getInc()); in VisitCXXForRangeStmt()
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTWriterStmt.cpp224 Record.AddStmt(S->getInc()); in VisitForStmt()
1554 Record.AddStmt(S->getInc()); in VisitCXXForRangeStmt()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchers.h2102 const Stmt *const Increment = Node.getInc(); in AST_MATCHER_P()
/llvm-project-15.0.7/clang/lib/Sema/
H A DTreeTransform.h7623 ExprResult Inc = getDerived().TransformExpr(S->getInc()); in TransformForStmt()
7628 if (S->getInc() && !FullInc.get()) in TransformForStmt()
7639 Inc.get() == S->getInc() && in TransformForStmt()
8305 ExprResult Inc = getDerived().TransformExpr(S->getInc()); in TransformCXXForRangeStmt()
8322 Inc.get() != S->getInc() || in TransformCXXForRangeStmt()
H A DSemaOpenMP.cpp5756 Inc = For->getInc(); in ActOnOpenMPCanonicalLoop()
5763 Inc = RangeFor->getInc(); in ActOnOpenMPCanonicalLoop()
9175 HasErrors |= ISC.checkAndSetInc(For ? For->getInc() : CXXFor->getInc()); in checkOpenMPIterationSpace()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndex.cpp2858 AddStmt(FS->getInc()); in VisitForStmt()