Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.cpp244 PrintExpr(If->getCond()); in PrintRawIfStmt()
286 PrintExpr(Node->getCond()); in VisitSwitchStmt()
296 PrintExpr(Node->getCond()); in VisitWhileStmt()
313 PrintExpr(Node->getCond()); in VisitDoStmt()
322 OS << (Node->getCond() ? "; " : ";"); in VisitForStmt()
323 if (Node->getCond()) in VisitForStmt()
324 PrintExpr(Node->getCond()); in VisitForStmt()
1470 PrintExpr(Node->getCond()); in VisitConditionalOperator()
1498 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.cpp989 return isa<ObjCAvailabilityCheckExpr>(getCond()); in isObjCAvailabilityCheck()
993 if (!isConstexpr() || getCond()->isValueDependent()) in getNondiscardedCase()
995 return !getCond()->EvaluateKnownConstInt(Ctx) ? getElse() : getThen(); in getNondiscardedCase()
/netbsd-src/external/apache2/llvm/dist/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.cpp317 HandleBranch(cast<AbstractConditionalOperator>(Term)->getCond(), in HandleBlockExit()
325 HandleBranch(cast<ChooseExpr>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
341 HandleBranch(cast<DoStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
345 HandleBranch(cast<CXXForRangeStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
349 HandleBranch(cast<ForStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
359 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
389 SwitchNodeBuilder builder(Pred, B, cast<SwitchStmt>(Term)->getCond(), in HandleBlockExit()
397 HandleBranch(cast<WhileStmt>(Term)->getCond(), Term, B, Pred); in HandleBlockExit()
H A DBugReporter.cpp660 if (allowNestedContexts || cast<ChooseExpr>(Parent)->getCond() == S) in getEnclosingStmtLocation()
669 cast<AbstractConditionalOperator>(Parent)->getCond() == S) in getEnclosingStmtLocation()
684 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()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
561 CountMap[S->getCond()] = CondCount; 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()
[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()
1334 createBranchRegion(S->getCond(), DefaultTrue, DefaultFalse); in VisitSwitchStmt()
1368 extendRegion(S->getCond()); in VisitIfStmt()
[all …]
H A DCGStmt.cpp711 LexicalScope ConditionScope(*this, S.getCond()->getSourceRange()); in EmitIfStmt()
722 if (ConstantFoldsToSimpleInteger(S.getCond(), CondConstant, in EmitIfStmt()
758 EmitBranchOnBoolExpr(S.getCond(), ThenBlock, ElseBlock, Count, LH); in EmitIfStmt()
820 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitWhileStmt()
840 createProfileWeightsForLoop(S.getCond(), getProfileCount(S.getBody())); in EmitWhileStmt()
916 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitDoStmt()
937 createProfileWeightsForLoop(S.getCond(), BackedgeCount)); in EmitDoStmt()
970 !S.getCond() || S.getCond()->EvaluateAsInt(Result, getContext()); in EmitForStmt()
995 if (S.getCond()) { in EmitForStmt()
1018 llvm::Value *BoolCondVal = EvaluateExprAsBool(S.getCond()); in EmitForStmt()
[all …]
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DCFG.cpp2700 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitChooseExpr()
2704 return addStmt(C->getCond()); in VisitChooseExpr()
2777 dyn_cast<BinaryOperator>(C->getCond()->IgnoreParens())) in VisitConditionalOperator()
2785 const TryResult& KnownVal = tryEvaluateBool(C->getCond()); in VisitConditionalOperator()
2789 Expr *condExpr = C->getCond(); in VisitConditionalOperator()
3045 : dyn_cast<BinaryOperator>(I->getCond()->IgnoreParens()); in VisitIfStmt()
3057 const TryResult &KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt()
3067 LastBlock = addStmt(I->getCond()); in VisitIfStmt()
3430 Expr *C = F->getCond(); in VisitForStmt()
3766 Expr *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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
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 DEvaluatedExprVisitor.h59 if (E->getCond()->isValueDependent()) in VisitChooseExpr()
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.h4045 Expr *getCond() const;
4090 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
4105 return getCond()->getBeginLoc(); in getBeginLoc()
4171 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
4207 inline Expr *AbstractConditionalOperator::getCond() const { in getCond() function
4209 return co->getCond(); in getCond()
4210 return cast<BinaryConditionalOperator>(this)->getCond(); in getCond()
4477 return getCond()->isTypeDependent() || getCond()->isValueDependent(); in isConditionDependent()
4486 Expr *getCond() const { return cast<Expr>(SubExprs[COND]); } in getCond() function
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/Interp/
H A DByteCodeStmtGen.cpp199 if (!this->visitBool(IS->getCond())) in visitIfStmt()
/netbsd-src/external/apache2/llvm/dist/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()
986 Record.AddStmt(E->getCond()); in VisitConditionalOperator()
999 Record.AddStmt(E->getCond()); in VisitBinaryConditionalOperator()
1176 Record.AddStmt(E->getCond()); in VisitChooseExpr()
1544 Record.AddStmt(S->getCond()); in VisitCXXForRangeStmt()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Frontend/OpenMP/
H A DOMPIRBuilder.h1135 BasicBlock *getCond() const { return Cond; } in getCond() function
/netbsd-src/external/apache2/llvm/dist/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