Home
last modified time | relevance | path

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

/freebsd-13.1/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-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp106 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument
118 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp720 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
722 if (RHSVal.isUndef()) { in VisitLogicalExpr()
723 X = RHSVal; in VisitLogicalExpr()
730 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp386 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() local
389 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI()
408 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in foldPHIArgBinOpIntoPHI()
415 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI()
431 if (!RHSVal) { in foldPHIArgBinOpIntoPHI()
436 RHSVal = NewRHS; in foldPHIArgBinOpIntoPHI()
456 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
463 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local
329 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/TableGen/
H A DRecord.h1978 unsigned LHSVal, RHSVal; in operator() local
1982 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1985 if (LHSVal != RHSVal) in operator()
1986 return LHSVal < RHSVal; in operator()
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp769 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local
770 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl()
773 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl()
774 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp494 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument
497 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt()
498 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt()
506 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
511 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp522 Value *RHSVal; in matchInstruction() local
570 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
574 if (!setValueOnce(RHSVal)) in matchInstruction()
593 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
597 if (!setValueOnce(RHSVal)) in matchInstruction()
624 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
626 CandidateVal = RHSVal; in matchInstruction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp3155 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
3156 if (!RHSVal) in performShlCombine()
3170 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine()
3184 if (LZ < RHSVal) in performShlCombine()
3200 if (RHSVal < 32) in performShlCombine()
3203 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
3225 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
3228 if (RHSVal == 32) { in performSraCombine()
3238 if (RHSVal == 63) { in performSraCombine()
H A DAMDGPUISelDAGToDAG.cpp80 uint32_t LHSVal, RHSVal; in packConstantV2I16() local
82 getConstantValue(N->getOperand(1), RHSVal)) { in packConstantV2I16()
85 (-LHSVal & 0xffff) | (-RHSVal << 16) : in packConstantV2I16()
86 (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp12410 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
12421 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
12422 Result = RHSVal; in VisitBinOp()
12430 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
12449 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
12458 RHSVal.getInt(), Value)) in VisitBinOp()
13538 llvm::APSInt RHSVal = RHSFX.getValue(); in VisitBinaryOperator() local
13542 unsigned Amt = RHSVal.getLimitedValue(ShiftBW - 1); in VisitBinaryOperator()
13546 if (RHSVal.isNegative()) in VisitBinaryOperator()
13548 else if (Amt != RHSVal) in VisitBinaryOperator()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp7412 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
7413 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC()
7414 !RHSVal->isNullValue() && !RHSVal->isAllOnesValue()) { in LowerSELECT_CC()
7418 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC()
7420 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC()
7422 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC()
7427 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC()
7455 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local
7456 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3254 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
3345 RHSVal = getValue(RHS); in visitSelect()
3370 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()