| /freebsd/contrib/llvm-project/clang/lib/CIR/Interfaces/ |
| H A D | CIRLoopOpInterface.cpp | 29 if (&op.getCond() == point.getRegionOrNull()) { in getLoopOpSuccessorRegions() 39 (op.maybeGetStep() ? op.maybeGetStep() : &op.getCond()); in getLoopOpSuccessorRegions() 46 regions.emplace_back(&op.getCond(), op.getCond().getArguments()); in getLoopOpSuccessorRegions()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ParentMap.cpp | 65 M[BCO->getCond()] = S; in BuildParentMap() 66 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap() 207 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr() 209 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr() 211 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr() 213 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr() 217 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
|
| H A D | StmtPrinter.cpp | 333 PrintExpr(If->getCond()); in PrintRawIfStmt() 375 PrintExpr(Node->getCond()); in VisitSwitchStmt() 385 PrintExpr(Node->getCond()); in VisitWhileStmt() 402 PrintExpr(Node->getCond()); in VisitDoStmt() 411 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt() 414 else if (Node->getCond()) in VisitForStmt() 415 PrintExpr(Node->getCond()); in VisitForStmt() 1841 PrintExpr(Node->getCond()); in VisitConditionalOperator() 1869 PrintExpr(Node->getCond()); in VisitChooseExpr()
|
| H A D | ComputeDependence.cpp | 169 return E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 205 E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 208 auto Cond = E->getCond()->getDependence(); in computeDependence()
|
| H A D | Stmt.cpp | 1048 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck() 1052 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase() 1054 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | ErrnoChecker.cpp | 82 CondFound = (S == cast<IfStmt>(ParentS)->getCond()); in isInCondition() 85 CondFound = (S == cast<ForStmt>(ParentS)->getCond()); in isInCondition() 88 CondFound = (S == cast<DoStmt>(ParentS)->getCond()); in isInCondition() 91 CondFound = (S == cast<WhileStmt>(ParentS)->getCond()); in isInCondition() 94 CondFound = (S == cast<SwitchStmt>(ParentS)->getCond()); in isInCondition() 97 CondFound = (S == cast<ConditionalOperator>(ParentS)->getCond()); in isInCondition()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelperCompares.cpp | 42 CmpInst::Predicate Pred = ICmp.getCond(); in constantFoldICmp() 73 CmpInst::Predicate Pred = FCmp.getCond(); in constantFoldFCmp() 99 CmpInst::Predicate Pred = Cmp->getCond(); in matchCanonicalizeICmp() 124 CmpInst::Predicate Pred = Cmp->getCond(); in matchCanonicalizeFCmp()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenPGO.cpp | 404 if (CS == While->getCond()) in TraverseWhileStmt() 405 CounterMap[While->getCond()] = NextCounter++; in TraverseWhileStmt() 423 if (CS == Do->getCond()) in TraverseDoStmt() 424 CounterMap[Do->getCond()] = NextCounter++; in TraverseDoStmt() 442 if (CS == For->getCond()) in TraverseForStmt() 443 CounterMap[For->getCond()] = NextCounter++; in TraverseForStmt() 723 CountMap[S->getCond()] = CondCount; in VisitWhileStmt() 724 Visit(S->getCond()); in VisitWhileStmt() 744 CountMap[S->getCond()] = CondCount; in VisitDoStmt() 745 Visit(S->getCond()); in VisitDoStmt() [all …]
|
| H A D | CGStmt.cpp | 894 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt() 895 ApplyDebugLocation DL(*this, S.getCond()); in EmitIfStmt() 906 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt() 961 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, ThenCount, LH, in EmitIfStmt() 965 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitIfStmt() 1108 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt() 1120 checkIfLoopMustProgress(S.getCond(), hasEmptyLoopBody(S))); in EmitWhileStmt() 1124 incrementProfileCounter(S.getCond()); in EmitWhileStmt() 1133 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt() 1231 incrementProfileCounter(S.getCond()); in EmitDoStmt() [all …]
|
| H A D | CoverageMappingGen.cpp | 1638 ? getRegionCounter(S->getCond()) in VisitWhileStmt() 1644 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt() 1665 createBranchRegion(S->getCond(), BodyCount, BranchCount.Skipped); in VisitWhileStmt() 1692 ? getRegionCounter(S->getCond()) in VisitDoStmt() 1698 propagateCounts(CondCount, S->getCond()); in VisitDoStmt() 1713 createBranchRegion(S->getCond(), BodyCount, BranchCount.Skipped); in VisitDoStmt() 1755 ? getRegionCounter(S->getCond()) in VisitForStmt() 1763 if (const Expr *Cond = S->getCond()) { in VisitForStmt() 1786 createBranchRegion(S->getCond(), BodyCount, BranchCount.Skipped); in VisitForStmt() 1833 createBranchRegion(S->getCond(), BodyCount, BranchCount.Skipped); in VisitCXXForRangeStmt() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | CoreEngine.cpp | 380 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit() 388 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 404 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 408 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 412 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 422 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit() 452 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit() 460 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
|
| H A D | BugReporter.cpp | 694 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation() 703 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation() 718 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 726 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation() 1403 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1405 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1407 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1409 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator() 1411 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator() 1415 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | TypeErasedDataflowAnalysis.cpp | 84 const Expr *VisitIfStmt(const IfStmt *S) { return S->getCond(); } in VisitIfStmt() 85 const Expr *VisitWhileStmt(const WhileStmt *S) { return S->getCond(); } in VisitWhileStmt() 86 const Expr *VisitDoStmt(const DoStmt *S) { return S->getCond(); } in VisitDoStmt() 87 const Expr *VisitForStmt(const ForStmt *S) { return S->getCond(); } in VisitForStmt() 98 return S->getCond(); in VisitConditionalOperator()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenStmt.cpp | 330 if (constantFoldsToBool(s.getCond(), condConstant, s.isConstexpr())) { in emitIfStmt() 346 return emitIfOnBoolExpr(s.getCond(), s.getThen(), s.getElse()); in emitIfStmt() 600 mlir::Value condVal = evaluateExprAsBool(s.getCond()); in emitCXXForRangeStmt() 669 if (s.getCond()) { in emitForStmt() 677 condVal = evaluateExprAsBool(s.getCond()); in emitForStmt() 739 mlir::Value condVal = evaluateExprAsBool(s.getCond()); in emitDoStmt() 795 condVal = evaluateExprAsBool(s.getCond()); in emitWhileStmt() 877 mlir::Value condV = emitScalarExpr(s.getCond()); in emitSwitchStmt()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Interfaces/ |
| H A D | CIRLoopOpInterface.td | 31 /*methodName=*/"getCond" 55 /*defaultImplementation=*/"return $_op.getCond();"
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2910 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr() 2914 return addStmt(C->getCond()); in VisitChooseExpr() 2987 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator() 2995 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator() 2999 Expr *condExpr = C->getCond(); in VisitConditionalOperator() 3273 : dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens()); in VisitIfStmt() 3287 KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 3300 LastBlock = addStmt(I->getCond()); in VisitIfStmt() 3708 Expr *C = F->getCond(); in VisitForStmt() 4039 Expr *C = W->getCond(); in VisitWhileStmt() [all …]
|
| H A D | LiveVariables.cpp | 309 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<IfStmt>(S)->getCond()); in Visit() 316 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit() 323 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<DoStmt>(S)->getCond()); in Visit() 330 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<ForStmt>(S)->getCond()); in Visit() 349 AddAllConditionalTerms(val.liveExprs, LV.ESetFact, CO->getCond()); in Visit()
|
| /freebsd/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | EvaluatedExprVisitor.h | 59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
|
| H A D | Stmt.h | 2339 Expr *getCond() { 2343 const Expr *getCond() const { 2575 Expr *getCond() { 2579 const Expr *getCond() const { 2679 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); 2752 Expr *getCond() { 2756 const Expr *getCond() const { 2853 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } 2854 const Expr *getCond() const { 2933 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } [all …]
|
| H A D | StmtCXX.h | 167 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function 181 const Expr *getCond() const { in getCond() function
|
| H A D | Expr.h | 4297 Expr *getCond() const; 4342 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4357 return getCond()->getBeginLoc(); in getBeginLoc() 4423 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function 4459 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function 4461 return co->getCond(); in getCond() 4462 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond() 4807 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent() 4816 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/ |
| H A D | FlattenCFG.cpp | 423 mlir::Block *cond = &op.getCond().front(); in matchAndRewrite() 474 rewriter.inlineRegionBefore(op.getCond(), exit); in matchAndRewrite() 526 rewriter.create<cir::BrCondOp>(loc, op.getCond(), trueBlock, falseBlock); in matchAndRewrite()
|
| H A D | CIRSimplify.cpp | 74 rewriter.replaceOpWithNewOp<cir::SelectOp>(op, op.getCond(), trueValue, in matchAndRewrite()
|
| /freebsd/contrib/llvm-project/clang/lib/Serialization/ |
| H A D | ASTWriterStmt.cpp | 213 Record.AddStmt(S->getCond()); in VisitIfStmt() 240 Record.AddStmt(S->getCond()); in VisitSwitchStmt() 263 Record.AddStmt(S->getCond()); in VisitWhileStmt() 276 Record.AddStmt(S->getCond()); in VisitDoStmt() 287 Record.AddStmt(S->getCond()); in VisitForStmt() 1112 Record.AddStmt(E->getCond()); in VisitConditionalOperator() 1125 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator() 1312 Record.AddStmt(E->getCond()); in VisitChooseExpr() 1685 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | AnalysisBasedWarnings.cpp | 1038 Range = IS->getCond()->getSourceRange(); in DiagUninitUse() 1048 Range = CO->getCond()->getSourceRange(); in DiagUninitUse() 1077 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1084 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1107 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse() 1501 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
|