Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstant.h56 bool isOneValue() const;
H A DConstants.h198 bool isOne() const { return Val.isOneValue(); } in isOne()
H A DPatternMatch.h509 bool isValue(const APInt &C) { return C.isOneValue(); } in isValue()
2480 if (C->isOneValue() && L.match(SI->getCondition()) &&
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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()
3148 if (Known.One.isOneValue()) in visitSelectInst()
3150 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()
1524 if (C.isOneValue() && C.getBitWidth() > 1) { in foldICmpTruncConstant()
1887 if (C.isOneValue()) { in foldICmpOrConstant()
2402 if (C2->isNullValue() || C2->isOneValue() || in foldICmpDivConstant()
2583 if (Pred == ICmpInst::ICMP_SLT && C.isOneValue()) in foldICmpSubConstant()
4082 !C->isOneValue()) { in foldICmpBinOp()
5128 if (Op0KnownZeroInverted.isOneValue() && in foldICmpUsingKnownBits()
H A DInstCombineAddSub.cpp966 if (C->isOneValue() && Op0->hasOneUse()) { in foldAddWithConstant()
H A DInstCombineCalls.cpp899 bool IntMinIsPoison = cast<Constant>(II->getArgOperand(1))->isOneValue(); in visitCallInst()
H A DInstructionCombining.cpp1020 return match(Cmp, m_APIntAllowUndef(C)) && C->isOneValue(); in FoldOpIntoSelect()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A 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()
H A DConstantRange.cpp207 if (V == 0 || V.isOneValue()) in makeExactMulNSWRegion()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1617 if (DemandedBits.isOneValue()) in SimplifyDemandedBits()
1793 if (DemandedBits.isOneValue() && !TLO.LegalOps && !VT.isVector()) in SimplifyDemandedBits()
3089 return CVal.isOneValue(); in isConstTrueVal()
3526 if (N0.getOpcode() == ISD::SRL && (C1.isNullValue() || C1.isOneValue()) && in SimplifySetCC()
5137 if (Divisor.isOneValue() || Divisor.isAllOnesValue()) { in BuildSDIV()
5294 if (magics.a == 0 || Divisor.isOneValue()) { in BuildUDIV()
5506 bool TautologicalLane = D.isOneValue() || TautologicalInvertedLane; in prepareUREMEqFold()
5518 assert((!D.isOneValue() || (K == 0)) && "For divisor '1' we won't rotate."); in prepareUREMEqFold()
5525 AllDivisorsArePowerOfTwo &= D0.isOneValue(); in prepareUREMEqFold()
5534 assert((D0 * P).isOneValue() && "Multiplicative inverse sanity check."); in prepareUREMEqFold()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DLoopUnswitch.cpp880 if (Info->KnownValue->isOneValue()) in processCurrentLoop()
1497 if (CC->isOneValue()) { in unswitchNontrivialCondition()
H A DCorrelatedValuePropagation.cpp234 if (C->isOneValue()) { in processPHI()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DInterleavedLoadCombinePass.cpp310 if (C.isOneValue()) { in mul()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp2540 if (C1->isOneValue() && (!C0 || C0->isNullValue())) in ConstantFoldScalarCall2()
2552 if (C1->isOneValue() && (!C0 || C0->isMinSignedValue())) in ConstantFoldScalarCall2()
2886 } else if (MaskElt->isOneValue()) { in ConstantFoldFixedVectorCall()
H A DBranchProbabilityInfo.cpp588 (Result->isOneValue() && B == BI->getSuccessor(1)))) in computeUnlikelySuccessors()
H A DValueTracking.cpp2655 !C->isNullValue() && !C->isOneValue() && in isNonEqualMul()
H A DInstructionSimplify.cpp4350 !BasePtrOffset.isOneValue()) { in SimplifyGEPInst()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPInt.h416 bool isOneValue() const {
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGException.cpp2176 C->isOneValue()) { in EnterSEHTryStmt()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp892 SplatVal.isOneValue()) { in PreprocessISelDAG()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaOpenMP.cpp18412 !ResultR.Val.getInt().isOneValue()) { in VisitOMPArraySectionExpr()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp15413 SplatLHSVal.isOneValue() && ISD::isConstantSplatVectorAllOnes(CmpRHS) && in performVSelectCombine()

12