/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 27 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local 28 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST() 37 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST() 41 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST() 45 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST() 49 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST() 73 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST() 77 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST() 81 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST() 85 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 163 ConstantInt *NegOne; in generateUnsignedDivisionCode() local 169 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 175 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 284 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode() 320 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
|
/external/llvm/lib/Target/R600/ |
D | AMDGPUISelLowering.cpp | 1843 SDValue NegOne = DAG.getConstant(-1, VT); in LowerSDIVREM() local 1867 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 1868 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 2059 const SDValue NegOne = DAG.getConstant(-1, MVT::i32); in LowerFROUND64() local 2091 SDValue ExpEqNegOne = DAG.getSetCC(SL, SetCCVT, NegOne, Exp, ISD::SETEQ); in LowerFROUND64() 2129 const SDValue NegOne = DAG.getConstantFP(-1.0, MVT::f64); in LowerFFLOOR() local 2137 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 389 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local 392 BinaryOperator *Res = CreateMul(Neg->getOperand(1), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
|
D | LoopStrengthReduce.cpp | 327 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local 331 Good.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch() 334 Bad.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 2262 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 2264 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst() 2312 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 2314 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 2249 llvm::Value *NegOne = llvm::ConstantInt::get(Ty, -1ULL); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local 2252 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 2013 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() local 2014 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICI.getName()); in visitICmpInstWithCastAndCast()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 1070 SDValue NegOne = in getNOT() local 1072 return getNode(ISD::XOR, DL, VT, Val, NegOne); in getNOT()
|
D | DAGCombiner.cpp | 5723 SDValue NegOne = in visitSIGN_EXTEND() local 5727 NegOne, DAG.getConstant(0, VT), in visitSIGN_EXTEND() 5739 NegOne, DAG.getConstant(0, VT)); in visitSIGN_EXTEND()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.cpp | 6573 Constant *NegOne = in LowerBUILD_VECTOR() local 6576 SmallVector<Constant*, 4> CV(4, NegOne); in LowerBUILD_VECTOR()
|