/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_handlers.cpp | 290 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local 293 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl() 335 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local 338 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl() 339 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl() 350 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 351 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl() 355 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl() 362 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | CheckerContext.cpp | 128 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument 140 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
H A D | ExprEngineC.cpp | 716 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local 718 if (RHSVal.isUndef()) { in VisitLogicalExpr() 719 X = RHSVal; in VisitLogicalExpr() 726 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
H A D | Transfer.cpp | 139 auto *RHSVal = Env.getValue(*RHS); in VisitBinaryOperator() local 140 if (RHSVal == nullptr) in VisitBinaryOperator() 144 Env.setValue(*LHSLoc, *RHSVal); in VisitBinaryOperator() 153 BoolValue &RHSVal = getLogicOperatorSubExprValue(*RHS); in VisitBinaryOperator() local 156 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 158 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombinePHI.cpp | 412 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() local 415 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI() 434 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 441 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 457 if (!RHSVal) { in foldPHIArgBinOpIntoPHI() 462 RHSVal = NewRHS; in foldPHIArgBinOpIntoPHI() 484 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 491 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUISelDAGToDAG.h | 55 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 57 getConstantValue(N->getOperand(1), RHSVal)) { in packConstantV2I16() 59 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
H A D | AMDGPUISelLowering.cpp | 3947 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local 3948 if (!RHSVal) in performShlCombine() 3962 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine() 3976 if (LZ < RHSVal) in performShlCombine() 3992 if (RHSVal < 32) in performShlCombine() 3995 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine() 4017 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local 4020 if (RHSVal == 32) { in performSraCombine() 4030 if (RHSVal == 63) { in performSraCombine()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | PointerArithChecker.cpp | 322 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local 323 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | Record.h | 2191 unsigned LHSVal, RHSVal; in operator() local 2195 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator() 2198 if (LHSVal != RHSVal) in operator() 2199 return LHSVal < RHSVal; in operator()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | JumpThreading.cpp | 694 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local 695 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl() 698 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl() 699 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
H A D | PPCAsmParser.cpp | 76 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local 79 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr() 84 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr() 85 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeIntegerTypes.cpp | 3122 const APInt *RHSVal = nullptr; in ExpandIntRes_MINMAX() local 3124 RHSVal = &RHSConst->getAPIntValue(); in ExpandIntRes_MINMAX() 3128 if (RHSVal && (N->getOpcode() == ISD::UMIN || N->getOpcode() == ISD::UMAX) && in ExpandIntRes_MINMAX() 3129 (RHSVal->countLeadingOnes() >= NumHalfBits || in ExpandIntRes_MINMAX() 3130 RHSVal->countLeadingZeros() >= NumHalfBits)) { in ExpandIntRes_MINMAX() 3163 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX() 3169 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX() 3175 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX() 3181 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX()
|
H A D | SelectionDAGBuilder.cpp | 3511 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local 3600 RHSVal = getValue(RHS); in visitSelect() 3624 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
|
H A D | SelectionDAG.cpp | 6321 APInt RHSVal; in FoldConstantArithmetic() local 6322 if (ISD::isConstantSplatVector(Ops[1].getNode(), RHSVal)) { in FoldConstantArithmetic() 6324 ? Ops[0].getConstantOperandAPInt(0) * RHSVal in FoldConstantArithmetic() 6325 : Ops[0].getConstantOperandAPInt(0) << RHSVal; in FoldConstantArithmetic()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaStmt.cpp | 512 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument 515 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt() 516 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt() 524 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 529 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyCFG.cpp | 571 Value *RHSVal; in matchInstruction() local 619 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 623 if (!setValueOnce(RHSVal)) in matchInstruction() 642 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 646 if (!setValueOnce(RHSVal)) in matchInstruction() 673 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 675 CandidateVal = RHSVal; in matchInstruction()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 13045 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local 13056 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 13057 Result = RHSVal; in VisitBinOp() 13065 !RHSVal.getLValueOffset().isZero()) in VisitBinOp() 13084 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 13093 RHSVal.getInt(), Value)) in VisitBinOp() 14284 llvm::APSInt RHSVal = RHSFX.getValue(); in VisitBinaryOperator() local 14288 unsigned Amt = RHSVal.getLimitedValue(ShiftBW - 1); in VisitBinaryOperator() 14292 if (RHSVal.isNegative()) in VisitBinaryOperator() 14294 else if (Amt != RHSVal) in VisitBinaryOperator() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 9639 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local 9640 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC() 9641 !RHSVal->isZero() && !RHSVal->isAllOnes()) { in LowerSELECT_CC() 9645 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC() 9647 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC() 9649 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC() 9654 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC() 9682 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local 9683 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
|