| /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 | 141 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument 153 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
| H A D | ExprEngineC.cpp | 757 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local 759 if (RHSVal.isUndef()) { in VisitLogicalExpr() 760 X = RHSVal; in VisitLogicalExpr() 767 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
|
| /freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/ |
| H A D | Transfer.cpp | 168 auto *RHSVal = Env.getValue(*RHS); in VisitBinaryOperator() local 169 if (RHSVal == nullptr) in VisitBinaryOperator() 173 Env.setValue(*LHSLoc, *RHSVal); in VisitBinaryOperator() 182 BoolValue &RHSVal = getLogicOperatorSubExprValue(*RHS); in VisitBinaryOperator() local 185 Env.setValue(*S, Env.makeAnd(LHSVal, RHSVal)); in VisitBinaryOperator() 187 Env.setValue(*S, Env.makeOr(LHSVal, RHSVal)); in VisitBinaryOperator()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 444 Value *RHSVal = FirstInst->getOperand(1); in foldPHIArgBinOpIntoPHI() local 447 Type *RHSType = RHSVal->getType(); in foldPHIArgBinOpIntoPHI() 466 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in foldPHIArgBinOpIntoPHI() 473 if (!LHSVal && !RHSVal) in foldPHIArgBinOpIntoPHI() 489 if (!RHSVal) { in foldPHIArgBinOpIntoPHI() 494 RHSVal = NewRHS; in foldPHIArgBinOpIntoPHI() 516 LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI() 523 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in foldPHIArgBinOpIntoPHI()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelDAGToDAG.h | 50 uint32_t LHSVal, RHSVal; in packConstantV2I16() local 52 getConstantValue(N->getOperand(1), RHSVal)) { in packConstantV2I16() 54 uint32_t K = (LHSVal & 0xffff) | (RHSVal << 16); in packConstantV2I16()
|
| H A D | AMDGPUISelLowering.cpp | 4067 unsigned RHSVal; in performShlCombine() local 4069 RHSVal = CRHS->getZExtValue(); in performShlCombine() 4070 if (!RHSVal) in performShlCombine() 4081 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine() 4096 if (LZ < RHSVal) in performShlCombine() 4125 ShiftAmt = DAG.getConstant(RHSVal - TargetScalarType.getSizeInBits(), SL, in performShlCombine() 4192 unsigned RHSVal = CRHS->getZExtValue(); in performSraCombine() local 4193 ShiftAmt = DAG.getConstant(RHSVal - TargetScalarType.getSizeInBits(), SL, in performSraCombine() 4269 unsigned RHSVal; in performSrlCombine() local 4272 RHSVal = CRHS->getZExtValue(); in performSrlCombine() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 543 SourceLocation DotDotDotLoc, ExprResult RHSVal, in ActOnCaseStmt() argument 546 assert((DotDotDotLoc.isInvalid() ? RHSVal.isUnset() in ActOnCaseStmt() 547 : RHSVal.isInvalid() || RHSVal.get()) && in ActOnCaseStmt() 555 if (LHSVal.isInvalid() || RHSVal.isInvalid()) { in ActOnCaseStmt() 567 auto *CS = CaseStmt::Create(Context, LHSVal.get(), RHSVal.get(), in ActOnCaseStmt() 1758 std::optional<llvm::APSInt> RHSVal = SrcExpr->getIntegerConstantExpr(Context); in DiagnoseAssignmentEnum() local 1759 if (!RHSVal) in DiagnoseAssignmentEnum() 1765 AdjustAPSInt(*RHSVal, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum() 1768 if (!IsValueInFlagEnum(ED, *RHSVal, /*AllowMask=*/true)) in DiagnoseAssignmentEnum() 1792 while (EI != EIend && EI->first < *RHSVal) in DiagnoseAssignmentEnum() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/AsmParser/ |
| H A D | PPCAsmParser.cpp | 74 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local 77 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr() 82 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr() 83 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 2172 unsigned LHSVal, RHSVal; in operator() local 2176 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator() 2179 if (LHSVal != RHSVal) in operator() 2180 return LHSVal < RHSVal; in operator()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 688 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local 689 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl() 692 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl() 693 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeIntegerTypes.cpp | 3497 const APInt *RHSVal = nullptr; in ExpandIntRes_MINMAX() local 3499 RHSVal = &RHSConst->getAPIntValue(); in ExpandIntRes_MINMAX() 3503 if (RHSVal && (N->getOpcode() == ISD::UMIN || N->getOpcode() == ISD::UMAX) && in ExpandIntRes_MINMAX() 3504 (RHSVal->countLeadingOnes() >= NumHalfBits || in ExpandIntRes_MINMAX() 3505 RHSVal->countLeadingZeros() >= NumHalfBits)) { in ExpandIntRes_MINMAX() 3538 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX() 3544 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX() 3550 if (RHSVal && RHSVal->countTrailingZeros() >= NumHalfBits) in ExpandIntRes_MINMAX() 3556 if (RHSVal && RHSVal->countTrailingOnes() >= NumHalfBits) in ExpandIntRes_MINMAX()
|
| H A D | SelectionDAGBuilder.cpp | 3754 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local 3843 RHSVal = getValue(RHS); in visitSelect() 3867 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
|
| H A D | SelectionDAG.cpp | 7101 APInt RHSVal; in FoldConstantArithmetic() local 7102 if (ISD::isConstantSplatVector(Ops[1].getNode(), RHSVal)) { in FoldConstantArithmetic() 7104 ? Ops[0].getConstantOperandAPInt(0) * RHSVal in FoldConstantArithmetic() 7105 : Ops[0].getConstantOperandAPInt(0) << RHSVal; in FoldConstantArithmetic()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 597 Value *RHSVal; in matchInstruction() local 645 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 649 if (!setValueOnce(RHSVal)) in matchInstruction() 668 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 672 if (!setValueOnce(RHSVal)) in matchInstruction() 699 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 701 CandidateVal = RHSVal; in matchInstruction()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 14234 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local 14237 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 14239 addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub); in VisitBinOp() 14245 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 14246 Result = RHSVal; in VisitBinOp() 14251 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 14254 !RHSVal.getLValueOffset().isZero()) in VisitBinOp() 14257 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 14273 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 14282 RHSVal.getInt(), Value)) in VisitBinOp() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 11384 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local 11385 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC() 11386 !RHSVal->isZero() && !RHSVal->isAllOnes()) { in LowerSELECT_CC() 11390 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC() 11392 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC() 11394 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC() 11399 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC() 11448 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local 11449 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 2368 static Value *EmitHLSLElementwiseCast(CodeGenFunction &CGF, Address RHSVal, in EmitHLSLElementwiseCast() argument 2373 CGF.FlattenAccessAndType(RHSVal, RHSTy, LoadGEPList, SrcTypes); in EmitHLSLElementwiseCast()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/ |
| H A D | RISCVISelLowering.cpp | 9181 SDValue RHSVal = in lowerSELECT() local 9186 return DAG.getNode(ISD::ADD, DL, VT, CMOV, RHSVal); in lowerSELECT()
|