/external/llvm-project/llvm/unittests/Analysis/ |
D | ValueLatticeTest.cpp | 109 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/ |
D | Constant.h | 57 bool isOneValue() const;
|
/external/llvm/include/llvm/IR/ |
D | Constant.h | 55 bool isOneValue() const;
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroInstr.h | 342 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/ |
D | Constant.h | 56 bool isOneValue() const;
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Constant.h | 54 bool isOneValue() const;
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroInstr.h | 447 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/ |
D | LinalgToSPIRV.cpp | 131 [](const APInt &size) { return !size.isOneValue(); })) in matchAndRewrite()
|
/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | LocalTest.cpp | 531 else if (CI.isOneValue()) in doesDebugValueDescribeX() 542 else if (CI.isOneValue()) in doesDebugValueDescribeY()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 418 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()
|
D | InstCombineSimplifyDemanded.cpp | 485 DemandedFromOps.isOneValue()) && in SimplifyDemandedUseBits() 554 if (DemandedMask.isOneValue()) { in SimplifyDemandedUseBits()
|
D | InstCombineCompares.cpp | 83 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/ |
D | Constants.cpp | 127 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/ |
D | CorrelatedValuePropagation.cpp | 116 if (C->isOneValue()) { in processPHI()
|
/external/llvm-project/llvm/lib/IR/ |
D | Constants.cpp | 127 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/ |
D | InstCombineSelect.cpp | 396 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()
|
D | InstCombineSimplifyDemanded.cpp | 505 DemandedFromOps.isOneValue()) && in SimplifyDemandedUseBits() 592 if (DemandedMask.isOneValue()) { in SimplifyDemandedUseBits()
|
D | InstCombineCompares.cpp | 84 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/ |
D | TargetLowering.cpp | 1612 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/ |
D | TargetLowering.cpp | 1484 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/ |
D | InterleavedLoadCombinePass.cpp | 310 if (C.isOneValue()) { in mul()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | InterleavedLoadCombinePass.cpp | 310 if (C.isOneValue()) { in mul()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | BranchProbabilityInfo.cpp | 589 (Result->isOneValue() && B == BI->getSuccessor(1)))) in computeUnlikelySuccessors()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | CorrelatedValuePropagation.cpp | 235 if (C->isOneValue()) { in processPHI()
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 2577 if (C1->isOneValue() && (!C0 || C0->isNullValue())) in ConstantFoldScalarCall2() 2589 if (C1->isOneValue() && (!C0 || C0->isMinSignedValue())) in ConstantFoldScalarCall2() 2892 } else if (MaskElt->isOneValue()) { in ConstantFoldVectorCall()
|