Searched refs:KnownVal (Results 1 – 5 of 5) sorted by relevance
| /freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | CFG.cpp | 2550 TryResult KnownVal = tryEvaluateBool(RHS); in VisitLogicalOperator() local 2551 if (!KnownVal.isKnown()) in VisitLogicalOperator() 2552 KnownVal = tryEvaluateBool(B); in VisitLogicalOperator() 2600 TryResult KnownVal = tryEvaluateBool(LHS); in VisitLogicalOperator() local 3179 TryResult KnownVal; in VisitIfStmt() local 3181 KnownVal = tryEvaluateBool(I->getCond()); in VisitIfStmt() 3617 TryResult KnownVal(true); in VisitForStmt() local 3646 KnownVal = tryEvaluateBool(C); in VisitForStmt() 4258 if (!KnownVal.isFalse()) in VisitDoStmt() 4731 TryResult KnownVal(true); in VisitCXXForRangeStmt() local [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
| H A D | CombinerHelper.cpp | 4213 std::optional<bool> KnownVal; in matchICmpToTrueFalseKnownBits() local 4218 KnownVal = KnownBits::eq(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4221 KnownVal = KnownBits::ne(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4224 KnownVal = KnownBits::sge(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4227 KnownVal = KnownBits::sgt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4230 KnownVal = KnownBits::sle(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4233 KnownVal = KnownBits::slt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4236 KnownVal = KnownBits::uge(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4239 KnownVal = KnownBits::ugt(KnownLHS, KnownRHS); in matchICmpToTrueFalseKnownBits() 4248 if (!KnownVal) in matchICmpToTrueFalseKnownBits() [all …]
|
| /freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | ValueTracking.cpp | 1093 auto KF = [NUW, NSW](const KnownBits &KnownVal, const KnownBits &KnownAmt, in computeKnownBitsFromOperator() 1095 return KnownBits::shl(KnownVal, KnownAmt, NUW, NSW, ShAmtNonZero); in computeKnownBitsFromOperator() 1106 auto KF = [](const KnownBits &KnownVal, const KnownBits &KnownAmt, in computeKnownBitsFromOperator() argument 1108 return KnownBits::lshr(KnownVal, KnownAmt, ShAmtNonZero); in computeKnownBitsFromOperator() 1119 auto KF = [](const KnownBits &KnownVal, const KnownBits &KnownAmt, in computeKnownBitsFromOperator() argument 1121 return KnownBits::ashr(KnownVal, KnownAmt, ShAmtNonZero); in computeKnownBitsFromOperator() 2352 const KnownBits &KnownVal) { in isNonZeroShift() argument 2378 if (KnownVal.isUnknown()) in isNonZeroShift() 2384 unsigned NumBits = KnownVal.getBitWidth(); in isNonZeroShift() 2388 if (!ShiftOp(KnownVal.One, MaxShift).isZero()) in isNonZeroShift() [all …]
|
| H A D | InstructionSimplify.cpp | 1383 KnownBits KnownVal = computeKnownBits(Op0, /* Depth */ 0, Q); in simplifyShift() local 1384 KnownBits KnownShl = KnownBits::shl(KnownVal, KnownAmt); in simplifyShift() 1386 if (KnownVal.Zero.isSignBitSet()) in simplifyShift() 1388 if (KnownVal.One.isSignBitSet()) in simplifyShift()
|
| /freebsd-14.2/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaExpr.cpp | 11922 Expr::EvalResult KnownVal; in CheckAdditionOperands() local 11925 (!IExp->EvaluateAsInt(KnownVal, Context) || in CheckAdditionOperands() 11926 KnownVal.Val.getInt() != 0))) { in CheckAdditionOperands() 12022 Expr::EvalResult KnownVal; in CheckSubtractionOperands() local 12025 (!RHS.get()->EvaluateAsInt(KnownVal, Context) || in CheckSubtractionOperands() 12026 KnownVal.Val.getInt() != 0))) { in CheckSubtractionOperands()
|