/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 29 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local 30 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST() 39 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST() 43 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST() 47 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST() 51 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST() 75 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST() 79 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST() 83 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST() 87 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST() [all …]
|
/external/llvm-project/llvm/unittests/IR/ |
D | PatternMatch.cpp | 74 Value *NegOne = ConstantInt::get(IntTy, -1); in TEST_F() local 84 .match(NegOne)); in TEST_F() 94 .match(NegOne)); in TEST_F() 104 .match(NegOne)); in TEST_F() 113 Value *NegOne = ConstantInt::get(IntTy, -1); in TEST_F() local 123 .match(NegOne)); in TEST_F() 133 .match(NegOne)); in TEST_F() 143 .match(NegOne)); in TEST_F() 152 Value *NegOne = ConstantInt::get(IntTy, -1); in TEST_F() local 162 .match(NegOne)); in TEST_F() [all …]
|
D | ConstantsTest.cpp | 28 Constant* NegOne = ConstantInt::get(Int1, static_cast<uint64_t>(-1), true); in TEST() local 29 EXPECT_EQ(NegOne, ConstantInt::getSigned(Int1, -1)); in TEST() 38 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, One)); in TEST() 42 EXPECT_EQ(Zero, ConstantExpr::getAdd(NegOne, NegOne)); in TEST() 46 EXPECT_EQ(Zero, ConstantExpr::getSub(NegOne, One)); in TEST() 50 EXPECT_EQ(Zero, ConstantExpr::getSub(One, NegOne)); in TEST() 74 EXPECT_EQ(One, ConstantExpr::getMul(NegOne, One)); in TEST() 78 EXPECT_EQ(One, ConstantExpr::getSDiv(NegOne, One)); in TEST() 82 EXPECT_EQ(One, ConstantExpr::getSDiv(One, NegOne)); in TEST() 86 EXPECT_EQ(One, ConstantExpr::getUDiv(NegOne, One)); in TEST() [all …]
|
/external/llvm-project/llvm/test/TableGen/ |
D | foreach-range-parse-errors2.td | 4 int NegOne = -1; 11 foreach Index = 0 - Constants.NegOne in {
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 162 ConstantInt *NegOne; in generateUnsignedDivisionCode() local 168 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 174 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 283 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode() 319 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | IntegerDivision.cpp | 162 ConstantInt *NegOne; in generateUnsignedDivisionCode() local 168 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 174 NegOne = ConstantInt::getSigned(DivTy, -1); in generateUnsignedDivisionCode() 283 Value *Tmp4 = Builder.CreateAdd(Divisor, NegOne); in generateUnsignedDivisionCode() 319 Value *SR_2 = Builder.CreateAdd(SR_3, NegOne); in generateUnsignedDivisionCode()
|
/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/tensorflow/tensorflow/compiler/mlir/lite/transforms/ |
D | optimize_patterns.td | 513 (TFL_MinimumOp (TFL_MaximumOp $input, (ConstantOp $NegOne)), 516 [(FloatValueEquals<"-1"> $NegOne), (FloatValueEquals<"1"> $One)]>; 520 (ConstantOp $NegOne)), 522 [(FloatValueEquals<"-1"> $NegOne), (FloatValueEquals<"1"> $One)]>;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MachineIRBuilder.h | 1342 auto NegOne = buildConstant(Dst.getLLTTy(*getMRI()), -1); in buildNot() local 1343 return buildInstr(TargetOpcode::G_XOR, {Dst}, {Src0, NegOne}); in buildNot()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 1536 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() local 1560 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 1561 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 1763 const SDValue NegOne = DAG.getConstant(-1, SL, MVT::i32); in LowerFROUND64() local 1797 SDValue ExpEqNegOne = DAG.getSetCC(SL, SetCCVT, NegOne, Exp, ISD::SETEQ); in LowerFROUND64() 1835 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local 1844 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MachineIRBuilder.h | 1513 auto NegOne = buildConstant(Dst.getLLTTy(*getMRI()), -1); in buildNot() local 1514 return buildInstr(TargetOpcode::G_XOR, {Dst}, {Src0, NegOne}); in buildNot()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineMulDivRem.cpp | 1164 Constant *NegOne = ConstantInt::getAllOnesValue(Ty); in visitSDiv() local 1165 Value *Cond = Builder.CreateICmpSGT(X, NegOne); in visitSDiv() 1166 return SelectInst::Create(Cond, ConstantInt::get(Ty, 1), NegOne); in visitSDiv()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | InductiveRangeCheckElimination.cpp | 1673 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local 1674 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
|
D | Reassociate.cpp | 275 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local 278 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
|
D | LoopStrengthReduce.cpp | 428 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local 431 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch() 433 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | InductiveRangeCheckElimination.cpp | 1688 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local 1689 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
|
D | Reassociate.cpp | 276 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local 279 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
|
D | LoopStrengthReduce.cpp | 432 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local 435 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch() 437 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 1972 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() local 1996 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 1997 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 2205 const SDValue NegOne = DAG.getConstant(-1, SL, MVT::i32); in LowerFROUND64() local 2239 SDValue ExpEqNegOne = DAG.getSetCC(SL, SetCCVT, NegOne, Exp, ISD::SETEQ); in LowerFROUND64() 2277 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local 2286 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 255 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local 258 BinaryOperator *Res = CreateMul(Neg->getOperand(1), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
|
D | LoopStrengthReduce.cpp | 345 const SCEV *NegOne = SE.getSCEV(ConstantInt::getAllOnesValue( in DoInitialMatch() local 348 Good.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch() 350 Bad.push_back(SE.getMulExpr(NegOne, S)); in DoInitialMatch()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 2318 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 2320 Upper = NegOne.udiv(CI2->getValue()) + 1; in SimplifyICmpInst() 2368 APInt NegOne = APInt::getAllOnesValue(Width); in SimplifyICmpInst() local 2370 Upper = NegOne.lshr(CI2->getValue()) + 1; in SimplifyICmpInst()
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2041 SDValue NegOne = DAG.getConstant(-1, DL, VT); in LowerSDIVREM() local 2065 SDValue LHSign = DAG.getSelectCC(DL, LHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 2066 SDValue RHSign = DAG.getSelectCC(DL, RHS, Zero, NegOne, Zero, ISD::SETLT); in LowerSDIVREM() 2275 const SDValue NegOne = DAG.getConstantFP(-1.0, SL, MVT::f64); in LowerFFLOOR() local 2284 SDValue Add = DAG.getNode(ISD::SELECT, SL, MVT::f64, And, NegOne, Zero); in LowerFFLOOR()
|
/external/llvm-project/llvm/unittests/ADT/ |
D | APFloatTest.cpp | 3175 APFloat NegOne = APFloat(APFloat::IEEEsingle(), "-1.0"); in TEST() local 3183 EXPECT_TRUE(NegOne.bitwiseIsEqual(neg(One))); in TEST() 3184 EXPECT_TRUE(One.bitwiseIsEqual(neg(NegOne))); in TEST() 3194 EXPECT_TRUE(NegOne.bitwiseIsEqual(-One)); in TEST() 3195 EXPECT_TRUE(One.bitwiseIsEqual(-NegOne)); in TEST()
|
/external/clang/lib/CodeGen/ |
D | CGExprScalar.cpp | 2244 llvm::Value *NegOne = llvm::ConstantInt::get(Ty, -1ULL); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local 2247 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()
|