Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cc248 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
251 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
293 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
296 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
297 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
308 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
309 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
313 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
320 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp103 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument
115 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
H A DExprEngineC.cpp679 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
681 if (RHSVal.isUndef()) { in VisitLogicalExpr()
682 X = RHSVal; in VisitLogicalExpr()
689 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp289 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() local
292 Type *RHSType = RHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
311 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
318 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
334 if (!RHSVal) { in FoldPHIArgBinOpIntoPHI()
339 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
359 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
366 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
H A DInstCombineAddSub.cpp1062 const APInt &RHSVal = CI->getValue(); in visitAdd() local
1066 if (XorRHS->getValue() == -RHSVal) { in visitAdd()
1067 if (RHSVal.isPowerOf2()) in visitAdd()
1068 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Checkers/
H A DPointerArithChecker.cpp329 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local
330 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
/freebsd-12.1/contrib/llvm/include/llvm/TableGen/
H A DRecord.h1752 unsigned LHSVal, RHSVal; in operator() local
1756 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1759 if (LHSVal != RHSVal) in operator()
1760 return LHSVal < RHSVal; in operator()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DJumpThreading.cpp702 for (const auto &RHSVal : RHSVals) in ComputeValueKnownInPredecessorsImpl() local
703 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in ComputeValueKnownInPredecessorsImpl()
706 if (!LHSKnownBBs.count(RHSVal.second)) in ComputeValueKnownInPredecessorsImpl()
707 Result.emplace_back(InterestingVal, RHSVal.second); in ComputeValueKnownInPredecessorsImpl()
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/AsmParser/
H A DPPCAsmParser.cpp77 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local
80 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
85 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
86 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaStmt.cpp447 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument
450 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt()
451 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt()
459 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt()
464 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp491 Value *RHSVal; in matchInstruction() local
539 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
543 if (!setValueOnce(RHSVal)) in matchInstruction()
562 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
566 if (!setValueOnce(RHSVal)) in matchInstruction()
593 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction()
595 CandidateVal = RHSVal; in matchInstruction()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUISelLowering.cpp2956 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local
2957 if (!RHSVal) in performShlCombine()
2971 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine()
2985 if (LZ < RHSVal) in performShlCombine()
3001 if (RHSVal < 32) in performShlCombine()
3004 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine()
3026 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local
3029 if (RHSVal == 32) { in performSraCombine()
3039 if (RHSVal == 63) { in performSraCombine()
H A DAMDGPUISelDAGToDAG.cpp514 uint32_t LHSVal, RHSVal; in Select() local
516 getConstantValue(N->getOperand(1), RHSVal)) { in Select()
517 uint32_t K = LHSVal | (RHSVal << 16); in Select()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4833 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local
4834 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC()
4835 !RHSVal->isNullValue() && !RHSVal->isAllOnesValue()) { in LowerSELECT_CC()
4839 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC()
4841 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC()
4843 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC()
4848 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC()
4876 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local
4877 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExprConstant.cpp8965 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
8968 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
8970 addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub); in VisitBinOp()
8976 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
8977 Result = RHSVal; in VisitBinOp()
8982 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
8985 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
8988 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
9004 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
9013 RHSVal.getInt(), Value)) in VisitBinOp()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp2961 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
3039 RHSVal = getValue(RHS); in visitSelect()
3047 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()