Home
last modified time | relevance | path

Searched refs:NegOne (Results 1 – 11 of 11) sorted by relevance

/external/llvm/unittests/IR/
DConstantsTest.cpp27 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/
DIntegerDivision.cpp163 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/
DAMDGPUISelLowering.cpp1843 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/
DReassociate.cpp389 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
392 BinaryOperator *Res = CreateMul(Neg->getOperand(1), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
DLoopStrengthReduce.cpp327 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/
DInstructionSimplify.cpp2262 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/
DCGExprScalar.cpp2249 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/
DInstCombineCompares.cpp2013 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() local
2014 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICI.getName()); in visitICmpInstWithCastAndCast()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1070 SDValue NegOne = in getNOT() local
1072 return getNode(ISD::XOR, DL, VT, Val, NegOne); in getNOT()
DDAGCombiner.cpp5723 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/
DPPCISelLowering.cpp6573 Constant *NegOne = in LowerBUILD_VECTOR() local
6576 SmallVector<Constant*, 4> CV(4, NegOne); in LowerBUILD_VECTOR()