Home
last modified time | relevance | path

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

/external/compiler-rt/lib/ubsan/
Dubsan_handlers.cc180 Value RHSVal(Data->Type, RHS); in handleDivremOverflowImpl() local
183 if (RHSVal.isMinusOne()) in handleDivremOverflowImpl()
224 Value RHSVal(Data->RHSType, RHS); in handleShiftOutOfBoundsImpl() local
227 if (RHSVal.isNegative() || in handleShiftOutOfBoundsImpl()
228 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
239 if (RHSVal.isNegative()) in handleShiftOutOfBoundsImpl()
240 Diag(Loc, DL_Error, "shift exponent %0 is negative") << RHSVal; in handleShiftOutOfBoundsImpl()
243 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
250 << 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()
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.cpp583 SVal RHSVal = N->getState()->getSVal(RHS, Pred->getLocationContext()); in VisitLogicalExpr() local
585 if (RHSVal.isUndef()) { in VisitLogicalExpr()
586 X = RHSVal; in VisitLogicalExpr()
588 DefinedOrUnknownSVal DefinedRHS = RHSVal.castAs<DefinedOrUnknownSVal>(); in VisitLogicalExpr()
595 X = getSValBuilder().evalCast(RHSVal, B->getType(), RHS->getType()); in VisitLogicalExpr()
/external/llvm/include/llvm/TableGen/
DRecord.h1564 unsigned LHSVal, RHSVal; in operator() local
1568 bool RHSFailed = RHSPart.second.getAsInteger(10, RHSVal); (void)RHSFailed; in operator()
1571 if (LHSVal != RHSVal) in operator()
1572 return LHSVal < RHSVal; in operator()
/external/clang/lib/Sema/
DSemaStmt.cpp376 SourceLocation DotDotDotLoc, Expr *RHSVal, in ActOnCaseStmt() argument
413 if (RHSVal && !RHSVal->isTypeDependent() && !RHSVal->isValueDependent()) { in ActOnCaseStmt()
414 RHSVal = VerifyIntegerConstantExpression(RHSVal).get(); in ActOnCaseStmt()
424 auto RHS = RHSVal ? ActOnFinishFullExpr(RHSVal, RHSVal->getExprLoc(), false, in ActOnCaseStmt()
/external/llvm/lib/Target/PowerPC/AsmParser/
DPPCAsmParser.cpp222 int64_t RHSVal = EvaluateCRExpr(BE->getRHS()); in EvaluateCRExpr() local
225 if (LHSVal < 0 || RHSVal < 0) in EvaluateCRExpr()
230 case MCBinaryExpr::Add: Res = LHSVal + RHSVal; break; in EvaluateCRExpr()
231 case MCBinaryExpr::Mul: Res = LHSVal * RHSVal; break; in EvaluateCRExpr()
/external/clang/lib/AST/
DExprConstant.cpp7083 const APValue &RHSVal = RHSResult.Val; in VisitBinOp() local
7086 if (E->isAdditiveOp() && LHSVal.isLValue() && RHSVal.isInt()) { in VisitBinOp()
7089 CharUnits::fromQuantity(RHSVal.getInt().getZExtValue()); in VisitBinOp()
7099 RHSVal.isLValue() && LHSVal.isInt()) { in VisitBinOp()
7100 Result = RHSVal; in VisitBinOp()
7106 if (E->getOpcode() == BO_Sub && LHSVal.isLValue() && RHSVal.isLValue()) { in VisitBinOp()
7109 !RHSVal.getLValueOffset().isZero()) in VisitBinOp()
7112 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp()
7128 if (!LHSVal.isInt() || !RHSVal.isInt()) in VisitBinOp()
7137 RHSVal.getInt(), Value)) in VisitBinOp()
/external/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp416 Value *RHSVal; in matchInstruction() local
424 m_And(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
428 if(!setValueOnce(RHSVal)) in matchInstruction()
455 if(match(I->getOperand(0), m_Add(m_Value(RHSVal), m_ConstantInt(RHSC)))) { in matchInstruction()
457 CandidateVal = RHSVal; in matchInstruction()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3073 const APInt &RHSVal = CI->getValue(); in SimplifyICmpInst() local
3074 if (((LHSKnownZero & RHSVal) != 0) || ((LHSKnownOne & ~RHSVal) != 0)) in SimplifyICmpInst()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2446 SDValue RHSVal = getValue(I.getOperand(2)); in visitSelect() local
2524 RHSVal = getValue(RHS); in visitSelect()
2532 Ops.push_back(SDValue(RHSVal.getNode(), RHSVal.getResNo() + i)); in visitSelect()
5550 SDValue RHSVal = getMemCmpLoad(RHS, LoadVT, LoadTy, *this); in visitMemCmpCall() local
5552 SDValue Res = DAG.getSetCC(getCurSDLoc(), MVT::i1, LHSVal, RHSVal, in visitMemCmpCall()
/external/clang/include/clang/Sema/
DSema.h3302 SourceLocation DotDotDotLoc, Expr *RHSVal,