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

12

/external/llvm/include/llvm/
H A DConstant.h56 /// isAllOnesValue - Return true if this is the value that would be returned by
58 bool isAllOnesValue() const;
H A DConstants.h178 return Val.isAllOnesValue();
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp198 return C1I->isOne() || C1I->isAllOnesValue() ||
199 C2I->isOne() || C2I->isAllOnesValue();
458 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
470 if (C2->isAllOnesValue())
701 if (FalseValC->isZero() && TrueValC->isAllOnesValue())
711 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) {
H A DInstCombineSimplifyDemanded.cpp575 if ((I0 + 1).isPowerOf2() && (I0 | KnownZero).isAllOnesValue()) {
694 if (Rem->isAllOnesValue())
836 if (DemandedElts.isAllOnesValue())
H A DInstCombineAddSub.cpp147 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue())
213 if ((LHSKnownZero|RHSKnownZero).isAllOnesValue())
H A DInstCombineAndOrXor.cpp518 if (C->isAllOnesValue()) {
1705 if (!Xor.isAllOnesValue()) return 0;
2115 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue())
2126 if (RHS->isAllOnesValue()) {
H A DInstCombineCalls.cpp350 if (Power->isAllOnesValue())
788 if (SizeCI->isAllOnesValue())
H A DInstCombineCasts.cpp512 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) {
892 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) {
H A DInstCombineCompares.cpp124 return RHS->isAllOnesValue();
127 return RHS->isAllOnesValue();
790 if (DivIsSigned && DivRHS->isAllOnesValue())
1050 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) {
H A DInstCombineMulDivRem.cpp515 if (RHS->isAllOnesValue())
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp254 else if (RHS.isAllOnesValue())
261 else if (RHS.isAllOnesValue()) {
384 if (lhsValue.isAllOnesValue() && lhsValue.isSigned())
/external/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp914 if (CstVal->isAllOnesValue()) // X & -1 -> X
927 if (CstVal->isAllOnesValue()) // X | -1 -> -1
1072 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) {
H A DCodeGenPrepare.cpp532 return SizeCI->isAllOnesValue();
/external/llvm/lib/VMCore/
H A DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
226 if (RHSC->isAllOnesValue())
694 if (Cond->isAllOnesValue()) return V1;
961 if (CI2->isAllOnesValue())
999 if (CI2->isAllOnesValue())
1051 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
1059 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
H A DConstants.cpp67 bool Constant::isAllOnesValue() const { function in class:Constant
74 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue();
79 return Splat->isAllOnesValue();
84 return Splat->isAllOnesValue();
/external/llvm/lib/Analysis/
H A DBranchProbabilityInfo.cpp317 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) {
H A DLint.cpp384 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(),
480 return KnownZero.isAllOnesValue();
H A DValueTracking.cpp1080 if (CRHS->isAllOnesValue()) {
1086 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue())
1110 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue())
H A DScalarEvolution.cpp279 bool SCEV::isAllOnesValue() const { function in class:SCEV
281 return SC->getValue()->isAllOnesValue();
1930 } else if (Ops[0]->isAllOnesValue()) {
3651 if (CI->isAllOnesValue())
3708 if (CI->isAllOnesValue())
5498 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) {
/external/llvm/include/llvm/Support/
H A DPatternMatch.h208 bool isValue(const APInt &C) { return C.isAllOnesValue(); }
638 cast<Constant>(RHS)->isAllOnesValue() &&
/external/llvm/include/llvm/Analysis/
H A DScalarEvolution.h117 /// isAllOnesValue - Return true if the expression is a constant
120 bool isAllOnesValue() const;
/external/llvm/lib/Support/
H A DConstantRange.cpp608 if (umin.isAllOnesValue())
/external/llvm/include/llvm/CodeGen/
H A DSelectionDAGNodes.h1163 bool isAllOnesValue() const { return Value->isAllOnesValue(); } function in class:llvm::SDNode::ConstantSDNode
/external/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp1628 if (N0C && N0C->isAllOnesValue())
1714 if (N0C && N0C->isAllOnesValue())
1760 if (N1C && N1C->isAllOnesValue())
1848 if (N1C && N1C->isAllOnesValue())
2425 if (N1C && N1C->isAllOnesValue())
2520 if (B && Constant.isAllOnesValue()) {
2556 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETEQ) {
2563 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETGT) {
2984 if (N1C && N1C->isAllOnesValue())
3031 if (cast<ConstantSDNode>(LR)->isAllOnesValue()
[all...]
/external/llvm/include/llvm/ADT/
H A DAPInt.h316 bool isAllOnesValue() const { function in class:llvm::APInt

Completed in 317 milliseconds

12