Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstant.h56 bool isOneValue() const;
H A DConstants.h200 bool isOne() const { return Val.isOneValue(); } in isOne()
H A DPatternMatch.h509 bool isValue(const APInt &C) { return C.isOneValue(); } in isValue()
2484 if (C->isOneValue() && L.match(SI->getCondition()) &&
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroInstr.h459 return cast<Constant>(getArgOperand(FromArg))->isOneValue(); in isFromPromise()
506 return cast<Constant>(getArgOperand(FinalArg))->isOneValue(); in isFinal()
608 return cast<Constant>(getArgOperand(UnwindArg))->isOneValue(); in isUnwind()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp425 return C1I.isOneValue() || C1I.isAllOnesValue() || in isSelect01()
426 C2I.isOneValue() || C2I.isAllOnesValue(); in isSelect01()
1820 return C.isNullValue() || C.isOneValue(); in foldOverflowingAddSubSelect()
1990 if (Elt->isOneValue()) { in canonicalizeSelectToShuffle()
3191 if (Known.One.isOneValue()) in visitSelectInst()
3193 if (Known.Zero.isOneValue()) in visitSelectInst()
H A DInstCombineSimplifyDemanded.cpp520 DemandedFromOps.isOneValue()) && in SimplifyDemandedUseBits()
618 if (DemandedMask.isOneValue()) { in SimplifyDemandedUseBits()
H A DInstCombineCompares.cpp84 if (C.isOneValue()) { in isSignTest()
1547 if (C.isOneValue() && C.getBitWidth() > 1) { in foldICmpTruncConstant()
1923 if (C.isOneValue()) { in foldICmpOrConstant()
2438 if (C2->isNullValue() || C2->isOneValue() || in foldICmpDivConstant()
2619 if (Pred == ICmpInst::ICMP_SLT && C.isOneValue()) in foldICmpSubConstant()
4150 !C->isOneValue()) { in foldICmpBinOp()
5283 if (Op0KnownZeroInverted.isOneValue() && in foldICmpUsingKnownBits()
H A DInstCombineAddSub.cpp966 if (C->isOneValue() && Op0->hasOneUse()) { in foldAddWithConstant()
H A DInstCombineCalls.cpp920 bool IntMinIsPoison = cast<Constant>(II->getArgOperand(1))->isOneValue(); in visitCallInst()
H A DInstructionCombining.cpp1061 return match(Cmp, m_APIntAllowUndef(C)) && C->isOneValue(); in FoldOpIntoSelect()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp880 if (Info->KnownValue->isOneValue()) in processCurrentLoop()
1497 if (CC->isOneValue()) { in unswitchNontrivialCondition()
H A DSimpleLoopUnswitch.cpp2068 (PartiallyInvariant && !PartialIVInfo.KnownValue->isOneValue())) { in unswitchNontrivialInvariants()
2883 } else if ((PartialIVInfo.KnownValue->isOneValue() && in unswitchBestCondition()
2885 (!PartialIVInfo.KnownValue->isOneValue() && in unswitchBestCondition()
H A DCorrelatedValuePropagation.cpp234 if (C->isOneValue()) { in processPHI()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1608 if (DemandedBits.isOneValue()) in SimplifyDemandedBits()
1784 if (DemandedBits.isOneValue() && !TLO.LegalOps && !VT.isVector()) in SimplifyDemandedBits()
3114 return CVal.isOneValue(); in isConstTrueVal()
5163 if (Divisor.isOneValue() || Divisor.isAllOnesValue()) { in BuildSDIV()
5320 if (magics.a == 0 || Divisor.isOneValue()) { in BuildUDIV()
5532 bool TautologicalLane = D.isOneValue() || TautologicalInvertedLane; in prepareUREMEqFold()
5551 AllDivisorsArePowerOfTwo &= D0.isOneValue(); in prepareUREMEqFold()
5781 HadOneDivisor |= D.isOneValue(); in prepareSREMEqFold()
5782 AllDivisorsAreOnes &= D.isOneValue(); in prepareSREMEqFold()
5797 AllDivisorsArePowerOfTwo &= D0.isOneValue(); in prepareSREMEqFold()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp108 bool Constant::isOneValue() const { in isOneValue() function in Constant
115 return CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isOneValue()
120 return SplatVal->isOneValue(); in isOneValue()
128 return !CI->isOneValue(); in isNotOneValue()
132 return !CFP->getValueAPF().bitcastToAPInt().isOneValue(); in isNotOneValue()
H A DConstantRange.cpp207 if (V == 0 || V.isOneValue()) in makeExactMulNSWRegion()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp311 if (C.isOneValue()) { in mul()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp2674 if (C1->isOneValue() && (!C0 || C0->isNullValue())) in ConstantFoldScalarCall2()
2686 if (C1->isOneValue() && (!C0 || C0->isMinSignedValue())) in ConstantFoldScalarCall2()
3039 } else if (MaskElt->isOneValue()) { in ConstantFoldFixedVectorCall()
H A DBranchProbabilityInfo.cpp588 (Result->isOneValue() && B == BI->getSuccessor(1)))) in computeUnlikelySuccessors()
H A DInstructionSimplify.cpp4422 !BasePtrOffset.isOneValue()) { in SimplifyGEPInst()
H A DValueTracking.cpp2697 !C->isNullValue() && !C->isOneValue() && in isNonEqualMul()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h416 bool isOneValue() const {
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGException.cpp2176 C->isOneValue()) { in EnterSEHTryStmt()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DOpenMPOpt.cpp3004 ExecMode->getInitializer()->isOneValue() && in changeToSPMDMode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp892 SplatVal.isOneValue()) { in PreprocessISelDAG()

12