Home
last modified time | relevance | path

Searched refs:isOneValue (Results 1 – 25 of 58) sorted by relevance

123

/external/llvm-project/llvm/unittests/Analysis/
DValueLatticeTest.cpp109 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_EQ, I1Ty, LV1)->isOneValue()); in TEST_F()
110 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SGE, I1Ty, LV1)->isOneValue()); in TEST_F()
111 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SLE, I1Ty, LV1)->isOneValue()); in TEST_F()
119 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SLT, I1Ty, LV2)->isOneValue()); in TEST_F()
120 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_SLE, I1Ty, LV2)->isOneValue()); in TEST_F()
121 EXPECT_TRUE(LV1.getCompare(CmpInst::ICMP_NE, I1Ty, LV2)->isOneValue()); in TEST_F()
155 EXPECT_TRUE(LV1.getCompare(CmpInst::FCMP_OEQ, I1Ty, LV2)->isOneValue()); in TEST_F()
156 EXPECT_TRUE(LV1.getCompare(CmpInst::FCMP_OGE, I1Ty, LV2)->isOneValue()); in TEST_F()
157 EXPECT_TRUE(LV1.getCompare(CmpInst::FCMP_OLE, I1Ty, LV2)->isOneValue()); in TEST_F()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DConstant.h57 bool isOneValue() const;
/external/llvm/include/llvm/IR/
DConstant.h55 bool isOneValue() const;
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/
DCoroInstr.h342 return cast<Constant>(getArgOperand(FromArg))->isOneValue(); in isFromPromise()
385 return cast<Constant>(getArgOperand(FinalArg))->isOneValue(); in isFinal()
447 return cast<Constant>(getArgOperand(UnwindArg))->isOneValue(); in isUnwind()
/external/llvm-project/llvm/include/llvm/IR/
DConstant.h56 bool isOneValue() const;
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DConstant.h54 bool isOneValue() const;
/external/llvm-project/llvm/lib/Transforms/Coroutines/
DCoroInstr.h447 return cast<Constant>(getArgOperand(FromArg))->isOneValue(); in isFromPromise()
494 return cast<Constant>(getArgOperand(FinalArg))->isOneValue(); in isFinal()
587 return cast<Constant>(getArgOperand(UnwindArg))->isOneValue(); in isUnwind()
/external/llvm-project/mlir/lib/Conversion/LinalgToSPIRV/
DLinalgToSPIRV.cpp131 [](const APInt &size) { return !size.isOneValue(); })) in matchAndRewrite()
/external/llvm-project/llvm/unittests/Transforms/Utils/
DLocalTest.cpp531 else if (CI.isOneValue()) in doesDebugValueDescribeX()
542 else if (CI.isOneValue()) in doesDebugValueDescribeY()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp418 return C1I.isOneValue() || C1I.isAllOnesValue() || in isSelect01()
419 C2I.isOneValue() || C2I.isAllOnesValue(); in isSelect01()
1779 return C.isNullValue() || C.isOneValue(); in foldOverflowingAddSubSelect()
1949 if (Elt->isOneValue()) { in canonicalizeSelectToShuffle()
2775 if (Known.One.isOneValue()) in visitSelectInst()
2777 if (Known.Zero.isOneValue()) in visitSelectInst()
DInstCombineSimplifyDemanded.cpp485 DemandedFromOps.isOneValue()) && in SimplifyDemandedUseBits()
554 if (DemandedMask.isOneValue()) { in SimplifyDemandedUseBits()
DInstCombineCompares.cpp83 if (C.isOneValue()) { in isSignTest()
1533 if (C.isOneValue() && C.getBitWidth() > 1) { in foldICmpTruncConstant()
1882 if (C.isOneValue()) { in foldICmpOrConstant()
2353 if (C2->isNullValue() || C2->isOneValue() || in foldICmpDivConstant()
2534 if (Pred == ICmpInst::ICMP_SLT && C.isOneValue()) in foldICmpSubConstant()
3997 !C->isOneValue()) { in foldICmpBinOp()
5053 if (Op0KnownZeroInverted.isOneValue() && in foldICmpUsingKnownBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DConstants.cpp127 bool Constant::isOneValue() const { in isOneValue() function in Constant
134 return CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isOneValue()
139 return Splat->isOneValue(); in isOneValue()
145 return CV->getElementAsAPFloat(0).bitcastToAPInt().isOneValue(); in isOneValue()
146 return CV->getElementAsAPInt(0).isOneValue(); in isOneValue()
156 return !CI->isOneValue(); in isNotOneValue()
160 return !CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isNotOneValue()
/external/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp116 if (C->isOneValue()) { in processPHI()
/external/llvm-project/llvm/lib/IR/
DConstants.cpp127 bool Constant::isOneValue() const { in isOneValue() function in Constant
134 return CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isOneValue()
139 return Splat->isOneValue(); in isOneValue()
145 return CV->getElementAsAPFloat(0).bitcastToAPInt().isOneValue(); in isOneValue()
146 return CV->getElementAsAPInt(0).isOneValue(); in isOneValue()
156 return !CI->isOneValue(); in isNotOneValue()
160 return !CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isNotOneValue()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp396 return C1I.isOneValue() || C1I.isAllOnesValue() || in isSelect01()
397 C2I.isOneValue() || C2I.isAllOnesValue(); in isSelect01()
1831 return C.isNullValue() || C.isOneValue(); in foldOverflowingAddSubSelect()
2001 if (Elt->isOneValue()) { in canonicalizeSelectToShuffle()
3021 if (Known.One.isOneValue()) in visitSelectInst()
3023 if (Known.Zero.isOneValue()) in visitSelectInst()
DInstCombineSimplifyDemanded.cpp505 DemandedFromOps.isOneValue()) && in SimplifyDemandedUseBits()
592 if (DemandedMask.isOneValue()) { in SimplifyDemandedUseBits()
DInstCombineCompares.cpp84 if (C.isOneValue()) { in isSignTest()
1557 if (C.isOneValue() && C.getBitWidth() > 1) { in foldICmpTruncConstant()
1905 if (C.isOneValue()) { in foldICmpOrConstant()
2396 if (C2->isNullValue() || C2->isOneValue() || in foldICmpDivConstant()
2577 if (Pred == ICmpInst::ICMP_SLT && C.isOneValue()) in foldICmpSubConstant()
4073 !C->isOneValue()) { in foldICmpBinOp()
5118 if (Op0KnownZeroInverted.isOneValue() && in foldICmpUsingKnownBits()
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1612 if (DemandedBits.isOneValue()) in SimplifyDemandedBits()
1762 if (DemandedBits.isOneValue() && !TLO.LegalOps && !VT.isVector()) in SimplifyDemandedBits()
3059 return CVal.isOneValue(); in isConstTrueVal()
3498 if (N0.getOpcode() == ISD::SRL && (C1.isNullValue() || C1.isOneValue()) && in SimplifySetCC()
5032 if (Divisor.isOneValue() || Divisor.isAllOnesValue()) { in BuildSDIV()
5150 if (magics.a == 0 || Divisor.isOneValue()) { in BuildUDIV()
5342 bool TautologicalLane = D.isOneValue() || TautologicalInvertedLane; in prepareUREMEqFold()
5354 assert((!D.isOneValue() || (K == 0)) && "For divisor '1' we won't rotate."); in prepareUREMEqFold()
5361 AllDivisorsArePowerOfTwo &= D0.isOneValue(); in prepareUREMEqFold()
5370 assert((D0 * P).isOneValue() && "Multiplicative inverse sanity check."); in prepareUREMEqFold()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1484 if (DemandedBits.isOneValue()) in SimplifyDemandedBits()
2793 return CVal.isOneValue(); in isConstTrueVal()
3155 if (N0.getOpcode() == ISD::SRL && (C1.isNullValue() || C1.isOneValue()) && in SimplifySetCC()
4738 if (Divisor.isOneValue() || Divisor.isAllOnesValue()) { in BuildSDIV()
4856 if (magics.a == 0 || Divisor.isOneValue()) { in BuildUDIV()
5048 bool TautologicalLane = D.isOneValue() || TautologicalInvertedLane; in prepareUREMEqFold()
5060 assert((!D.isOneValue() || (K == 0)) && "For divisor '1' we won't rotate."); in prepareUREMEqFold()
5067 AllDivisorsArePowerOfTwo &= D0.isOneValue(); in prepareUREMEqFold()
5076 assert((D0 * P).isOneValue() && "Multiplicative inverse sanity check."); in prepareUREMEqFold()
5287 HadOneDivisor |= D.isOneValue(); in prepareSREMEqFold()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DInterleavedLoadCombinePass.cpp310 if (C.isOneValue()) { in mul()
/external/llvm-project/llvm/lib/CodeGen/
DInterleavedLoadCombinePass.cpp310 if (C.isOneValue()) { in mul()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp589 (Result->isOneValue() && B == BI->getSuccessor(1)))) in computeUnlikelySuccessors()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DCorrelatedValuePropagation.cpp235 if (C->isOneValue()) { in processPHI()
/external/llvm-project/llvm/lib/Analysis/
DConstantFolding.cpp2577 if (C1->isOneValue() && (!C0 || C0->isNullValue())) in ConstantFoldScalarCall2()
2589 if (C1->isOneValue() && (!C0 || C0->isMinSignedValue())) in ConstantFoldScalarCall2()
2892 } else if (MaskElt->isOneValue()) { in ConstantFoldVectorCall()

123