Searched refs:KnownVal (Results 1 – 5 of 5) sorted by relevance
| /llvm-project-15.0.7/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2483 TryResult KnownVal = tryEvaluateBool(RHS); in VisitLogicalOperator() local 2484 if (!KnownVal.isKnown()) in VisitLogicalOperator() 2485 KnownVal = tryEvaluateBool(B); in VisitLogicalOperator() 2533 TryResult KnownVal = tryEvaluateBool(LHS); in VisitLogicalOperator() local 3112 TryResult KnownVal; in VisitIfStmt() local 3114 KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 3547 TryResult KnownVal(true); in VisitForStmt() local 3576 KnownVal = tryEvaluateBool(C); in VisitForStmt() 4188 if (!KnownVal.isFalse()) in VisitDoStmt() 4663 TryResult KnownVal(true); in VisitCXXForRangeStmt() local [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 4149 Optional<bool> KnownVal; in matchICmpToTrueFalseKnownBits() local 4154 KnownVal = KnownBits::eq(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4157 KnownVal = KnownBits::ne(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4160 KnownVal = KnownBits::sge(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4163 KnownVal = KnownBits::sgt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4166 KnownVal = KnownBits::sle(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4169 KnownVal = KnownBits::slt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4172 KnownVal = KnownBits::uge(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4175 KnownVal = KnownBits::ugt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4184 if (!KnownVal) in matchICmpToTrueFalseKnownBits() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 1287 auto KF = [NSW](const KnownBits &KnownVal, const KnownBits &KnownAmt) { in computeKnownBitsFromOperator() argument 1288 KnownBits Result = KnownBits::shl(KnownVal, KnownAmt); in computeKnownBitsFromOperator() 1292 if (KnownVal.Zero.isSignBitSet()) in computeKnownBitsFromOperator() 1294 if (KnownVal.One.isSignBitSet()) in computeKnownBitsFromOperator() 1308 auto KF = [](const KnownBits &KnownVal, const KnownBits &KnownAmt) { in computeKnownBitsFromOperator() argument 1309 return KnownBits::lshr(KnownVal, KnownAmt); in computeKnownBitsFromOperator() 1320 auto KF = [](const KnownBits &KnownVal, const KnownBits &KnownAmt) { in computeKnownBitsFromOperator() argument 1321 return KnownBits::ashr(KnownVal, KnownAmt); in computeKnownBitsFromOperator()
|
| H A D | InstructionSimplify.cpp | 1328 KnownBits KnownVal = computeKnownBits(Op0, Q.DL, 0, Q.AC, Q.CxtI, Q.DT); in simplifyShift() local 1329 KnownBits KnownShl = KnownBits::shl(KnownVal, KnownAmt); in simplifyShift() 1331 if (KnownVal.Zero.isSignBitSet()) in simplifyShift() 1333 if (KnownVal.One.isSignBitSet()) in simplifyShift()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 11227 Expr::EvalResult KnownVal; in CheckAdditionOperands() local 11230 (!IExp->EvaluateAsInt(KnownVal, Context) || in CheckAdditionOperands() 11231 KnownVal.Val.getInt() != 0))) { in CheckAdditionOperands() 11327 Expr::EvalResult KnownVal; in CheckSubtractionOperands() local 11330 (!RHS.get()->EvaluateAsInt(KnownVal, Context) || in CheckSubtractionOperands() 11331 KnownVal.Val.getInt() != 0))) { in CheckSubtractionOperands()
|