Home
last modified time | relevance | path

Searched refs:getCond (Results 1 – 25 of 64) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp118 …if (InnerIf && isIdenticalStmt(AC->getASTContext(), I->getCond(), InnerIf->getCond(), /*IgnoreSide… in VisitIfStmt()
119 PathDiagnosticLocation ELoc(InnerIf->getCond(), BR.getSourceManager(), AC); in VisitIfStmt()
136 const Expr *Cond1 = I->getCond(); in VisitIfStmt()
139 const Expr *Cond2 = I2->getCond(); in VisitIfStmt()
382 if (!isIdenticalStmt(Ctx, ForStmt1->getCond(), ForStmt2->getCond(), in isIdenticalStmt()
397 if (!isIdenticalStmt(Ctx, DStmt1->getCond(), DStmt2->getCond(), in isIdenticalStmt()
409 if (!isIdenticalStmt(Ctx, WStmt1->getCond(), WStmt2->getCond(), in isIdenticalStmt()
421 if (!isIdenticalStmt(Ctx, IStmt1->getCond(), IStmt2->getCond(), in isIdenticalStmt()
H A DLocalizationChecker.cpp1342 const Expr *Condition = I->getCond()->IgnoreParenImpCasts(); in VisitIfStmt()
1372 const Expr *Condition = C->getCond()->IgnoreParenImpCasts(); in VisitConditionalOperator()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DParentMap.cpp62 M[BCO->getCond()] = S; in BuildParentMap()
63 BuildParentMap(M, BCO->getCond(), OV_Opaque); in BuildParentMap()
197 return DirectChild == cast<ForStmt>(P)->getCond(); in isConsumedExpr()
199 return DirectChild == cast<WhileStmt>(P)->getCond(); in isConsumedExpr()
201 return DirectChild == cast<DoStmt>(P)->getCond(); in isConsumedExpr()
203 return DirectChild == cast<IfStmt>(P)->getCond(); in isConsumedExpr()
207 return DirectChild == cast<SwitchStmt>(P)->getCond(); in isConsumedExpr()
H A DStmtPrinter.cpp245 PrintExpr(If->getCond()); in PrintRawIfStmt()
287 PrintExpr(Node->getCond()); in VisitSwitchStmt()
297 PrintExpr(Node->getCond()); in VisitWhileStmt()
314 PrintExpr(Node->getCond()); in VisitDoStmt()
323 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt()
324 if (Node->getCond()) in VisitForStmt()
325 PrintExpr(Node->getCond()); in VisitForStmt()
1483 PrintExpr(Node->getCond()); in VisitConditionalOperator()
1511 PrintExpr(Node->getCond()); in VisitChooseExpr()
H A DComputeDependence.cpp152 return E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence()
187 E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence()
190 auto Cond = E->getCond()->getDependence(); in computeDependence()
H A DStmt.cpp995 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck()
999 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase()
1001 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DLoopWidening.cpp33 return cast<ForStmt>(LoopStmt)->getCond(); in getLoopCondition()
35 return cast<WhileStmt>(LoopStmt)->getCond(); in getLoopCondition()
37 return cast<DoStmt>(LoopStmt)->getCond(); in getLoopCondition()
H A DCoreEngine.cpp318 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
326 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
342 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
346 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
350 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
360 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
390 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
398 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
H A DBugReporter.cpp684 if (cast<IfStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
692 if (cast<WhileStmt>(Parent)->getCond() != S) in getEnclosingStmtLocation()
1365 return cast<IfStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1367 return cast<ForStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1369 return cast<WhileStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1371 return cast<DoStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1373 return cast<ChooseExpr>(S)->getCond() == Cond; in isConditionForTerminator()
1377 return cast<SwitchStmt>(S)->getCond() == Cond; in isConditionForTerminator()
1379 return cast<BinaryConditionalOperator>(S)->getCond() == Cond; in isConditionForTerminator()
1382 return CO->getCond() == Cond || in isConditionForTerminator()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenPGO.cpp506 CountMap[S->getCond()] = CondCount; in VisitWhileStmt()
507 Visit(S->getCond()); in VisitWhileStmt()
527 CountMap[S->getCond()] = CondCount; in VisitDoStmt()
528 Visit(S->getCond()); in VisitDoStmt()
560 if (S->getCond()) { in VisitForStmt()
562 Visit(S->getCond()); in VisitForStmt()
596 CountMap[S->getCond()] = CondCount; in VisitCXXForRangeStmt()
597 Visit(S->getCond()); in VisitCXXForRangeStmt()
623 Visit(S->getCond()); in VisitSwitchStmt()
655 Visit(S->getCond()); in VisitIfStmt()
[all …]
H A DCoverageMappingGen.cpp1091 propagateCounts(CondCount, S->getCond()); in VisitWhileStmt()
1109 createBranchRegion(S->getCond(), BodyCount, in VisitWhileStmt()
1129 propagateCounts(CondCount, S->getCond()); in VisitDoStmt()
1139 createBranchRegion(S->getCond(), BodyCount, in VisitDoStmt()
1179 if (const Expr *Cond = S->getCond()) { in VisitForStmt()
1199 createBranchRegion(S->getCond(), BodyCount, in VisitForStmt()
1238 createBranchRegion(S->getCond(), BodyCount, in VisitCXXForRangeStmt()
1273 Visit(S->getCond()); in VisitSwitchStmt()
1368 extendRegion(S->getCond()); in VisitIfStmt()
1375 propagateCounts(ParentCount, S->getCond()); in VisitIfStmt()
[all …]
H A DCGStmt.cpp714 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
725 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt()
823 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
919 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
940 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt()
973 !S.getCond() || S.getCond()->EvaluateAsInt(Result, getContext()); in EmitForStmt()
998 if (S.getCond()) { in EmitForStmt()
1021 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
1106 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitCXXForRangeStmt()
1890 llvm::Value *CondV = EmitScalarExpr(S.getCond()); in EmitSwitchStmt()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp98 Expr *condE = S->getCond(); in VisitIfStmt()
110 Expr *condE = S->getCond(); in VisitWhileStmt()
120 Expr *condE = S->getCond(); in VisitDoStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp2711 return addStmt(C->getCond()); in VisitChooseExpr()
2796 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
3437 Expr *C = F->getCond(); in VisitForStmt()
3773 Expr *C = W->getCond(); in VisitWhileStmt()
3918 if (Stmt *C = D->getCond()) { in VisitDoStmt()
4436 if (Expr *C = S->getCond()) { in VisitCXXForRangeStmt()
4453 if (S->getCond()) in VisitCXXForRangeStmt()
5246 if (Stmt *C = I->getCond()) in VisitIfStmt()
5265 if (Stmt *C = F->getCond()) in VisitForStmt()
5275 if (Stmt *C = W->getCond()) in VisitWhileStmt()
[all …]
H A DLiveVariables.cpp286 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<IfStmt>(S)->getCond()); in Visit()
293 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<WhileStmt>(S)->getCond()); in Visit()
300 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<DoStmt>(S)->getCond()); in Visit()
307 AddLiveExpr(val.liveExprs, LV.ESetFact, cast<ForStmt>(S)->getCond()); in Visit()
H A DCalledOnceCheck.cpp415 return If->getCond(); in getCondition()
418 return Ternary->getCond(); in getCondition()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DEvaluatedExprVisitor.h59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
H A DStmt.h1982 Expr *getCond() { in getCond() function
1986 const Expr *getCond() const { in getCond() function
2185 Expr *getCond() { in getCond() function
2189 const Expr *getCond() const { in getCond() function
2290 : reinterpret_cast<const Stmt *>(getCond())->getEndLoc(); in getEndLoc()
2365 Expr *getCond() { in getCond() function
2369 const Expr *getCond() const { in getCond() function
2467 Expr *getCond() { return reinterpret_cast<Expr *>(SubExprs[COND]); } in getCond() function
2468 const Expr *getCond() const { in getCond() function
2537 Expr *getCond() { return reinterpret_cast<Expr*>(SubExprs[COND]); } in getCond() function
[all …]
H A DStmtCXX.h166 Expr *getCond() { return cast_or_null<Expr>(SubExprs[COND]); } in getCond() function
180 const Expr *getCond() const { in getCond() function
H A DExpr.h4112 Expr *getCond() const;
4157 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
4172 return getCond()->getBeginLoc(); in getBeginLoc()
4238 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
4274 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
4276 return co->getCond(); in getCond()
4277 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
4544 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent()
4553 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp199 if (!this->visitBool(IS->getCond())) in visitIfStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Serialization/
H A DASTWriterStmt.cpp146 Record.AddStmt(S->getCond()); in VisitIfStmt()
173 Record.AddStmt(S->getCond()); in VisitSwitchStmt()
196 Record.AddStmt(S->getCond()); in VisitWhileStmt()
209 Record.AddStmt(S->getCond()); in VisitDoStmt()
220 Record.AddStmt(S->getCond()); in VisitForStmt()
997 Record.AddStmt(E->getCond()); in VisitConditionalOperator()
1010 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
1187 Record.AddStmt(E->getCond()); in VisitChooseExpr()
1555 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp874 Range = IS->getCond()->getSourceRange(); in DiagUninitUse()
884 Range = CO->getCond()->getSourceRange(); in DiagUninitUse()
913 Range = cast<WhileStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
920 Range = cast<ForStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
943 Range = cast<DoStmt>(Term)->getCond()->getSourceRange(); in DiagUninitUse()
1341 if (!cast<DoStmt>(S)->getCond()->EvaluateAsInt(Result, Ctx)) in isInLoop()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h1185 BasicBlock *getCond() const { return Cond; } in getCond() function
/freebsd-13.1/contrib/llvm-project/clang/lib/Tooling/Syntax/
H A DBuildTree.cpp815 } else if (S->getCond() && !TraverseStmt(S->getCond())) in TraverseIfStmt()
1459 Stmt *ConditionStatement = S->getCond(); in WalkUpFromIfStmt()

123