Home
last modified time | relevance | path

Searched refs:RHSVal (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cpp290 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 DCheckerContext.cpp141 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument
153 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp718 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
720 if (RHSVal.isUndef()) { in VisitLogicalExpr()
721 X = RHSVal; in VisitLogicalExpr()
728 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DTransfer.cpp163 auto *RHSVal = Env.getValue(*RHS); in VisitBinaryOperator() local
164 if (RHSVal == nullptr) in VisitBinaryOperator()
168 Env.setValue(*LHSLoc, *RHSVal); in VisitBinaryOperator()
177 BoolValue &RHSVal = getLogicOperatorSubExprValue(*RHS); in VisitBinaryOperator() local
180 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator()
182 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp412 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 DAMDGPUISelDAGToDAG.h51 uint32_t LHSVal, RHSVal; in packConstantV2I16() local
53 getConstantValue(N->getOperand(1), RHSVal)) { in packConstantV2I16()
55 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
H A DAMDGPUISelLowering.cpp3998 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
3999 if (!RHSVal) in performShlCombine()
4013 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine()
4027 if (LZ < RHSVal) in performShlCombine()
4043 if (RHSVal < 32) in performShlCombine()
4046 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
4068 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
4071 if (RHSVal == 32) { in performSraCombine()
4081 if (RHSVal == 63) { in performSraCombine()
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h2191 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 DJumpThreading.cpp691 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local
692 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl()
695 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl()
696 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp76 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 DLegalizeIntegerTypes.cpp3300 const APInt *RHSVal = nullptr; in ExpandIntRes_MINMAX() local
3302 RHSVal = &RHSConst->getAPIntValue(); in ExpandIntRes_MINMAX()
3306 if (RHSVal && (N->getOpcode() == ISD::UMIN || N->getOpcode() == ISD::UMAX) && in ExpandIntRes_MINMAX()
3307 (RHSVal->countLeadingOnes() >= NumHalfBits || in ExpandIntRes_MINMAX()
3308 RHSVal->countLeadingZeros() >= NumHalfBits)) { in ExpandIntRes_MINMAX()
3341 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX()
3347 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX()
3353 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX()
3359 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX()
H A DSelectionDAGBuilder.cpp3698 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
3787 RHSVal = getValue(RHS); in visitSelect()
3811 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
H A DSelectionDAG.cpp6650 APInt RHSVal; in FoldConstantArithmetic() local
6651 if (ISD::isConstantSplatVector(Ops[1].getNode(), RHSVal)) { in FoldConstantArithmetic()
6653 ? Ops[0].getConstantOperandAPInt(0) * RHSVal in FoldConstantArithmetic()
6654 : Ops[0].getConstantOperandAPInt(0) << RHSVal; in FoldConstantArithmetic()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp517 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument
520 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt()
521 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt()
529 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
541 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp572 Value *RHSVal; in matchInstruction() local
620 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
624 if (!setValueOnce(RHSVal)) in matchInstruction()
643 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
647 if (!setValueOnce(RHSVal)) in matchInstruction()
674 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
676 CandidateVal = RHSVal; in matchInstruction()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13412 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
13415 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
13417 addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub); in VisitBinOp()
13423 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
13424 Result = RHSVal; in VisitBinOp()
13429 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
13432 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
13435 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
13451 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
13460 RHSVal.getInt(), Value)) in VisitBinOp()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp10577 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
10578 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC()
10579 !RHSVal->isZero() && !RHSVal->isAllOnes()) { in LowerSELECT_CC()
10583 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC()
10585 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC()
10587 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC()
10592 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC()
10620 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local
10621 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp7748 SDValue RHSVal = in lowerSELECT() local
7753 return DAG.getNode(ISD::ADD, DL, VT, CMOV, RHSVal); in lowerSELECT()