Searched refs:isAllOnesValue (Results 1 - 25 of 56) sorted by relevance

123

/external/llvm/include/llvm/IR/
H A DConstant.h58 /// isAllOnesValue - Return true if this is the value that would be returned by
60 bool isAllOnesValue() const;
H A DPatternMatch.h248 bool isValue(const APInt &C) { return C.isAllOnesValue(); }
850 cast<Constant>(RHS)->isAllOnesValue() && L.match(LHS);
H A DConstants.h178 return Val.isAllOnesValue();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp202 return C1I->isOne() || C1I->isAllOnesValue() ||
203 C2I->isOne() || C2I->isAllOnesValue();
509 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
521 if (C2->isAllOnesValue())
878 if (FalseValC->isZero() && TrueValC->isAllOnesValue())
888 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) {
H A DInstCombineAndOrXor.cpp560 if (!C->isAllOnesValue())
1044 if (LHSCst->getValue() == 0 && RHSCst->getValue().isAllOnesValue())
2189 if (!Xor.isAllOnesValue()) return nullptr;
2220 if (!Xor.isAllOnesValue())
2680 if (RHS->isAllOnesValue() && Op0->hasOneUse())
2706 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue())
2717 if (RHS->isAllOnesValue()) {
H A DInstCombineCompares.cpp128 return RHS->isAllOnesValue();
131 return RHS->isAllOnesValue();
160 } else if (RHS->isAllOnesValue()) {
878 if (DivIsSigned && DivRHS->isAllOnesValue())
1129 if (AP2.isAllOnesValue())
1155 if (AP1.isAllOnesValue() && !AP2.isPowerOf2())
1252 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) {
1630 if (RHSV.isAllOnesValue()) {
2865 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() &&
H A DInstCombineSimplifyDemanded.cpp678 if (Rem->isAllOnesValue())
900 if (DemandedElts.isAllOnesValue())
H A DInstCombineAddSub.cpp1114 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue())
1585 if ((IntVal | KnownZero).isAllOnesValue()) {
H A DInstCombineCalls.cpp810 if (Power->isAllOnesValue())
1741 if (KnownOne.isAllOnesValue())
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp256 else if (RHS.isAllOnesValue())
263 else if (RHS.isAllOnesValue()) {
413 if (LHSValue.isAllOnesValue() && LHSValue.isSigned())
/external/llvm/lib/Analysis/
H A DLint.cpp386 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(),
519 return KnownZero.isAllOnesValue();
540 if (KnownZero.isAllOnesValue())
H A DBranchProbabilityInfo.cpp439 } else if (CV->isAllOnesValue()) {
H A DConstantFolding.cpp57 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() &&
638 if ((KnownOne1 | KnownZero0).isAllOnesValue()) {
642 if ((KnownOne0 | KnownZero1).isAllOnesValue()) {
649 if ((KnownZero | KnownOne).isAllOnesValue()) {
H A DValueTracking.cpp154 return (LHSKnownZero | RHSKnownZero).isAllOnesValue();
571 if (KnownOneTemp.isAllOnesValue() || KnownZeroTemp.isNegative()) {
924 if (RHSKnownOne.isAllOnesValue() || RHSKnownZero.isNegative()) {
944 if (RHSKnownZero.isAllOnesValue() || RHSKnownOne.isNegative()) {
2268 if (CRHS->isAllOnesValue()) {
2275 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue())
2300 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue())
H A DScalarEvolution.cpp280 bool SCEV::isAllOnesValue() const { function in class:SCEV
282 return SC->getValue()->isAllOnesValue();
2446 } else if (Ops[0]->isAllOnesValue()) {
4583 if (CI->isAllOnesValue())
4648 if (CI->isAllOnesValue())
6635 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) {
6849 ME->getOperand(0)->isAllOnesValue()) {
7931 !Add->getOperand(0)->isAllOnesValue())
7936 !AddRHS->getOperand(0)->isAllOnesValue())
/external/llvm/lib/IR/
H A DConstantFold.cpp48 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
244 if (RHSC->isAllOnesValue())
730 if (Cond->isAllOnesValue()) return V1;
1034 if (CI2->isAllOnesValue())
1072 if (CI2->isAllOnesValue())
1124 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
1132 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
H A DConstantRange.cpp753 if (umin.isAllOnesValue())
H A DConstants.cpp106 bool Constant::isAllOnesValue() const { function in class:Constant
113 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue();
118 return Splat->isAllOnesValue();
123 return Splat->isAllOnesValue();
/external/mesa3d/src/gallium/drivers/radeon/
H A DAMDGPUISelLowering.cpp297 return C->isAllOnesValue();
H A DSIISelLowering.cpp406 && True->isAllOnesValue()
/external/llvm/include/llvm/ADT/
H A DAPInt.h338 bool isAllOnesValue() const { function in class:llvm::APInt
348 bool isMaxValue() const { return isAllOnesValue(); }
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1240 if (!ConstOpnd.isAllOnesValue()) {
1323 if (C3 != 0 && !C3.isAllOnesValue()) {
1340 if (C3 != 0 && !C3.isAllOnesValue()) {
2205 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) {
H A DLoopIdiomRecognize.cpp817 Dec->isAllOnesValue()))) {
/external/llvm/include/llvm/Analysis/
H A DScalarEvolution.h127 bool isAllOnesValue() const;
/external/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1438 bool isAllOnesValue() const { return Value->isAllOnesValue(); }

Completed in 516 milliseconds

123