Searched refs:NegOne (Results 1 – 9 of 9) sorted by relevance
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 25 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local 26 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST() 35 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST() 39 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST() 43 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST() 47 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST() 71 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST() 75 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST() 79 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST() 83 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 137 ConstantInt *NegOne = ConstantInt::getSigned(I32Ty, -1); in generateUnsignedDivisionCode() local 241 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode() 277 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 1985 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 1987 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst() 1999 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 2001 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
|
D | ScalarEvolution.cpp | 6357 const SCEV *NegOne = getConstant(Ty, (uint64_t)-1); in getBECount() local 6359 const SCEV *RoundUp = getAddExpr(Step, NegOne); in getBECount()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 313 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local 317 Good.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch() 320 Bad.push_back(SE.getMulExpr(NegOne, *I)); in DoInitialMatch()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 1872 Constant *NegOne = Constant::getAllOnesValue(SrcTy); in visitICmpInstWithCastAndCast() local 1873 Value *Result = Builder->CreateICmpSGT(LHSCIOp, NegOne, ICI.getName()); in visitICmpInstWithCastAndCast()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 2044 llvm::Value *NegOne = llvm::ConstantInt::get(Ty, -1ULL); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local 2047 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 951 SDValue NegOne = in getNOT() local 953 return getNode(ISD::XOR, DL, VT, Val, NegOne); in getNOT()
|
D | DAGCombiner.cpp | 4584 SDValue NegOne = in visitSIGN_EXTEND() local 4588 NegOne, DAG.getConstant(0, VT), in visitSIGN_EXTEND() 4599 NegOne, DAG.getConstant(0, VT)); in visitSIGN_EXTEND()
|