Home
last modified time | relevance | path

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

/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc156 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
157 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
188 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
189 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
190 Diag(Loc, DL_Error, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
191 else if (RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
194 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
200 << LHSVal << RHSVal << Data->LHSType; in handleShiftOutOfBoundsImpl()
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp30 Value *RHSVal = FirstInst->getOperand(1); in FoldPHIArgBinOpIntoPHI() local
33 Type *RHSType = RHSVal->getType(); in FoldPHIArgBinOpIntoPHI()
68 if (I->getOperand(1) != RHSVal) RHSVal = nullptr; in FoldPHIArgBinOpIntoPHI()
75 if (!LHSVal && !RHSVal) in FoldPHIArgBinOpIntoPHI()
91 if (!RHSVal) { in FoldPHIArgBinOpIntoPHI()
96 RHSVal = NewRHS; in FoldPHIArgBinOpIntoPHI()
116 LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
123 BinaryOperator::Create(BinOp->getOpcode(), LHSVal, RHSVal); in FoldPHIArgBinOpIntoPHI()
DInstCombineSimplifyDemanded.cpp580 const APInt &RHSVal = RHS->getValue(); in SimplifyDemandedUseBits() local
581 APInt CarryBits((~LHSKnownZero + RHSVal) ^ (~LHSKnownZero ^ RHSVal)); in SimplifyDemandedUseBits()
587 KnownOne = ((LHSKnownZero & RHSVal) | in SimplifyDemandedUseBits()
588 (LHSKnownOne & ~RHSVal)) & ~CarryBits; in SimplifyDemandedUseBits()
592 KnownZero = LHSKnownZero & ~RHSVal & ~CarryBits; in SimplifyDemandedUseBits()
DInstCombineAddSub.cpp1084 const APInt &RHSVal = CI->getValue(); in visitAdd() local
1088 if (XorRHS->getValue() == -RHSVal) { in visitAdd()
1089 if (RHSVal.isPowerOf2()) in visitAdd()
1090 ExtendAmt = TySizeBits - RHSVal.logBase2() - 1; in visitAdd()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngineC.cpp558 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
560 if (RHSVal.isUndef()) { in VisitLogicalExpr()
561 X = RHSVal; in VisitLogicalExpr()
563 DefinedOrUnknownSVal DefinedRHS = RHSVal.castAs<DefinedOrUnknownSVal>(); in VisitLogicalExpr()
570 X = getSValBuilder().evalCast(RHSVal, B->getType(), RHS->getType()); in VisitLogicalExpr()
/external/clang/lib/Sema/
DSemaStmt.cpp366 SourceLocation DotDotDotLoc, Expr *RHSVal, in ActOnCaseStmt() argument
403 if (RHSVal && !RHSVal->isTypeDependent() && !RHSVal->isValueDependent()) { in ActOnCaseStmt()
404 RHSVal = VerifyIntegerConstantExpression(RHSVal).get(); in ActOnCaseStmt()
414 auto RHS = RHSVal ? ActOnFinishFullExpr(RHSVal, RHSVal->getExprLoc(), false, in ActOnCaseStmt()
/external/llvm/include/llvm/TableGen/
DRecord.h1807 unsigned LHSVal, RHSVal; in operator() local
1811 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1814 if (LHSVal != RHSVal) in operator()
1815 return LHSVal < RHSVal; in operator()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp202 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local
205 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
210 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
211 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/external/clang/lib/AST/
DExprConstant.cpp6732 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
6735 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
6738 CharUnits::fromQuantity(RHSVal.getInt().getZExtValue()); in VisitBinOp()
6748 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
6749 Result = RHSVal; in VisitBinOp()
6755 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
6758 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
6761 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
6777 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
6786 RHSVal.getInt(), Value)) in VisitBinOp()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp391 Value *RHSVal; in matchInstruction() local
399 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
403 if(!setValueOnce(RHSVal)) in matchInstruction()
430 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
432 CandidateVal = RHSVal; in matchInstruction()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3001 const APInt &RHSVal = CI->getValue(); in SimplifyICmpInst() local
3002 if (((LHSKnownZero & RHSVal) != 0) || ((LHSKnownOne & ~RHSVal) != 0)) in SimplifyICmpInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp5734 SDValue RHSVal = getMemCmpLoad(RHS, LoadVT, LoadTy, *this); in visitMemCmpCall() local
5736 SDValue Res = DAG.getSetCC(getCurSDLoc(), MVT::i1, LHSVal, RHSVal, in visitMemCmpCall()
/external/clang/include/clang/Sema/
DSema.h3073 SourceLocation DotDotDotLoc, Expr *RHSVal,