| /netbsd-src/sys/external/bsd/compiler_rt/dist/lib/ubsan/ |
| H A D | ubsan_handlers.cc | 192 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local 195 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl() 237 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local 240 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl() 241 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl() 252 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 253 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl() 257 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl() 264 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/ubsan/ |
| H A D | ubsan_handlers.cc | 188 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local 191 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl() 233 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local 236 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl() 237 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl() 248 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl() 249 Diag(Loc, DL_Error, ET, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl() 253 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl() 260 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/ |
| H A D | CheckerContext.cpp | 102 SVal RHSVal, ProgramStateRef State) { in evalComparison() argument 114 SVal Eval = Bldr.evalBinOp(State, ComparisonOp, LHSVal, RHSVal, in evalComparison()
|
| H A D | ExprEngineC.cpp | 732 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local 734 if (RHSVal.isUndef()) { in VisitLogicalExpr() 735 X = RHSVal; in VisitLogicalExpr() 742 svalBuilder.evalCast(RHSVal, B->getType(), RHS->getType()), in VisitLogicalExpr()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombinePHI.cpp | 386 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()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 328 SVal RHSVal = C.getSVal(Rhs); in checkPreStmt() local 329 if (State->isNull(RHSVal).isConstrainedTrue()) in checkPreStmt()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/TableGen/ |
| H A D | Record.h | 1978 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()
|
| /netbsd-src/external/apache2/llvm/dist/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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
| H A D | JumpThreading.cpp | 770 for (const auto &RHSVal : RHSVals) in computeValueKnownInPredecessorsImpl() local 771 if (RHSVal.first == InterestingVal || isa<UndefValue>(RHSVal.first)) { in computeValueKnownInPredecessorsImpl() 774 if (!LHSKnownBBs.count(RHSVal.second)) in computeValueKnownInPredecessorsImpl() 775 Result.emplace_back(InterestingVal, RHSVal.second); in computeValueKnownInPredecessorsImpl()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/ |
| H A D | SemaStmt.cpp | 494 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUISelLowering.cpp | 3056 unsigned RHSVal = RHS->getZExtValue(); in performShlCombine() local 3057 if (!RHSVal) in performShlCombine() 3071 if (VT == MVT::i32 && RHSVal == 16 && X.getValueType() == MVT::i16 && in performShlCombine() 3085 if (LZ < RHSVal) in performShlCombine() 3101 if (RHSVal < 32) in performShlCombine() 3104 SDValue ShiftAmt = DAG.getConstant(RHSVal - 32, SL, MVT::i32); in performShlCombine() 3126 unsigned RHSVal = RHS->getZExtValue(); in performSraCombine() local 3129 if (RHSVal == 32) { in performSraCombine() 3139 if (RHSVal == 63) { in performSraCombine()
|
| H A D | AMDGPUISelDAGToDAG.cpp | 80 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()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyCFG.cpp | 528 Value *RHSVal; in matchInstruction() local 576 m_And(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 580 if (!setValueOnce(RHSVal)) in matchInstruction() 599 m_Or(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 603 if (!setValueOnce(RHSVal)) in matchInstruction() 630 if (match(I->getOperand(0), m_Add(m_Value(RHSVal), m_APInt(RHSC)))) { in matchInstruction() 632 CandidateVal = RHSVal; in matchInstruction()
|
| /netbsd-src/external/apache2/llvm/dist/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 12375 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local 12378 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp() 12380 addOrSubLValueAsInteger(Result, RHSVal.getInt(), E->getOpcode() == BO_Sub); in VisitBinOp() 12386 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp() 12387 Result = RHSVal; in VisitBinOp() 12392 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp() 12395 !RHSVal.getLValueOffset().isZero()) in VisitBinOp() 12398 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() 12414 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp() 12423 RHSVal.getInt(), Value)) in VisitBinOp() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 7093 ConstantSDNode *RHSVal = dyn_cast<ConstantSDNode>(RHS); in LowerSELECT_CC() local 7094 if (Opcode == AArch64ISD::CSEL && RHSVal && !RHSVal->isOne() && in LowerSELECT_CC() 7095 !RHSVal->isNullValue() && !RHSVal->isAllOnesValue()) { in LowerSELECT_CC() 7099 if (CTVal && CTVal == RHSVal && AArch64CC == AArch64CC::EQ) in LowerSELECT_CC() 7101 else if (CFVal && CFVal == RHSVal && AArch64CC == AArch64CC::NE) in LowerSELECT_CC() 7103 } else if (Opcode == AArch64ISD::CSNEG && RHSVal && RHSVal->isOne()) { in LowerSELECT_CC() 7108 if (CTVal == RHSVal && AArch64CC == AArch64CC::EQ) { in LowerSELECT_CC() 7136 ConstantFPSDNode *RHSVal = dyn_cast<ConstantFPSDNode>(RHS); in LowerSELECT_CC() local 7137 if (RHSVal && RHSVal->isZero()) { in LowerSELECT_CC()
|
| /netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3253 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local 3344 RHSVal = getValue(RHS); in visitSelect() 3369 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
|