Home
last modified time | relevance | path

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

12

/external/llvm/unittests/IR/
DConstantsTest.cpp29 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/
DPatternMatch.cpp74 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 …]
DConstantsTest.cpp28 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/
Dforeach-range-parse-errors2.td4 int NegOne = -1;
11 foreach Index = 0 - Constants.NegOne in {
/external/llvm-project/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp162 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/
DIntegerDivision.cpp162 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/
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/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Doptimize_patterns.td513 (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/
DMachineIRBuilder.h1342 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/
DAMDGPUISelLowering.cpp1536 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/
DMachineIRBuilder.h1513 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/
DInstCombineMulDivRem.cpp1164 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/
DInductiveRangeCheckElimination.cpp1673 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local
1674 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
DReassociate.cpp275 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
278 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
DLoopStrengthReduce.cpp428 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/
DInductiveRangeCheckElimination.cpp1688 const SCEV *NegOne = SE.getNegativeSCEV(One); in computeSafeIterationSpace() local
1689 return SE.getAddExpr(SE.getSMaxExpr(SE.getSMinExpr(X, Zero), NegOne), One); in computeSafeIterationSpace()
DReassociate.cpp276 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
279 BinaryOperator *Res = CreateMul(Neg->getOperand(OpNo), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
DLoopStrengthReduce.cpp432 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/
DAMDGPUISelLowering.cpp1972 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/
DReassociate.cpp255 Constant *NegOne = Ty->isIntOrIntVectorTy() ? in LowerNegateToMultiply() local
258 BinaryOperator *Res = CreateMul(Neg->getOperand(1), NegOne, "", Neg, Neg); in LowerNegateToMultiply()
DLoopStrengthReduce.cpp345 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/
DInstructionSimplify.cpp2318 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/
DAMDGPUISelLowering.cpp2041 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/
DAPFloatTest.cpp3175 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/
DCGExprScalar.cpp2244 llvm::Value *NegOne = llvm::ConstantInt::get(Ty, -1ULL); in EmitUndefinedBehaviorIntegerDivAndRemCheck() local
2247 llvm::Value *RHSCmp = Builder.CreateICmpNE(Ops.RHS, NegOne); in EmitUndefinedBehaviorIntegerDivAndRemCheck()

12