Home
last modified time | relevance | path

Searched refs:isAllOnesValue (Results 1 – 25 of 54) sorted by relevance

123

/external/llvm/include/llvm/IR/
DConstant.h58 bool isAllOnesValue() const;
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp205 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01()
206 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01()
531 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
543 if (C2->isAllOnesValue()) in visitSelectInstWithICmp()
783 if (FalseValC->isZero() && TrueValC->isAllOnesValue()) in visitSelectInst()
793 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) { in visitSelectInst()
DInstCombineSimplifyDemanded.cpp589 if ((I0 + 1).isPowerOf2() && (I0 | KnownZero).isAllOnesValue()) { in SimplifyDemandedUseBits()
719 if (Rem->isAllOnesValue()) in SimplifyDemandedUseBits()
936 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
DInstCombineCompares.cpp125 return RHS->isAllOnesValue(); in isSignBitCheck()
128 return RHS->isAllOnesValue(); in isSignBitCheck()
157 } else if (RHS->isAllOnesValue()) { in isSignTest()
823 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1082 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1381 if (RHSV.isAllOnesValue()) { in visitICmpInstWithInstAndIntCst()
DInstCombineAndOrXor.cpp511 if (C->isAllOnesValue()) { in decomposeBitTestICmp()
1770 if (!Xor.isAllOnesValue()) return 0; in FoldOrWithConstants()
2193 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor()
2204 if (RHS->isAllOnesValue()) { in visitXor()
DInstCombineAddSub.cpp974 if ((XorRHS->getValue() | LHSKnownZero).isAllOnesValue()) in visitAdd()
1046 if ((LHSKnownZero|RHSKnownZero).isAllOnesValue()) in visitAdd()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp230 else if (RHS.isAllOnesValue()) in MakeSymIntVal()
237 else if (RHS.isAllOnesValue()) { in MakeSymIntVal()
387 if (LHSValue.isAllOnesValue() && LHSValue.isSigned()) in evalBinOpNN()
/external/llvm/lib/IR/
DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
230 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
699 if (Cond->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
967 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1005 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1057 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1065 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
DConstants.cpp88 bool Constant::isAllOnesValue() const { in isAllOnesValue() function in Constant
95 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue(); in isAllOnesValue()
100 return Splat->isAllOnesValue(); in isAllOnesValue()
105 return Splat->isAllOnesValue(); in isAllOnesValue()
/external/llvm/lib/Analysis/
DLint.cpp384 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference()
514 return KnownZero.isAllOnesValue(); in isZero()
DConstantFolding.cpp53 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy()) in FoldBitCast()
559 if ((KnownOne1 | KnownZero0).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
563 if ((KnownOne0 | KnownZero1).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
570 if ((KnownZero | KnownOne).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
DBranchProbabilityInfo.cpp401 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) { in calcZeroHeuristics()
DValueTracking.cpp1197 if (CRHS->isAllOnesValue()) { in ComputeNumSignBits()
1203 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue()) in ComputeNumSignBits()
1227 if ((KnownZero | APInt(TyBits, 1)).isAllOnesValue()) in ComputeNumSignBits()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp1130 if (!ConstOpnd.isAllOnesValue()) { in createAndInstr()
1213 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
1230 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
1948 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) { in ReassociateExpression()
/external/llvm/include/llvm/ADT/
DAPInt.h340 bool isAllOnesValue() const { in isAllOnesValue() function
350 bool isMaxValue() const { return isAllOnesValue(); } in isMaxValue()
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp297 return C->isAllOnesValue(); in isHWTrueValue()
DSIISelLowering.cpp406 && True->isAllOnesValue() in PerformDAGCombine()
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUISelLowering.cpp297 return C->isAllOnesValue(); in isHWTrueValue()
DSIISelLowering.cpp406 && True->isAllOnesValue() in PerformDAGCombine()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h120 bool isAllOnesValue() const;
/external/llvm/include/llvm/Support/
DPatternMatch.h261 bool isValue(const APInt &C) { return C.isAllOnesValue(); } in isValue()
732 cast<Constant>(RHS)->isAllOnesValue() && in matchIfNot()
/external/llvm/lib/Target/R600/
DAMDGPUISelLowering.cpp454 return C->isAllOnesValue(); in isHWTrueValue()
/external/llvm/lib/Support/
DConstantRange.cpp661 if (umin.isAllOnesValue()) in binaryAnd()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp1667 if (N0C && N0C->isAllOnesValue()) in visitSUB()
1754 if (N0C && N0C->isAllOnesValue()) in visitSUBC()
1830 if (N1IsConst && ConstValue1.isAllOnesValue()) in visitMUL()
1924 if (N1C && N1C->isAllOnesValue()) in visitSDIV()
2516 if (N1C && N1C->isAllOnesValue()) in visitAND()
2621 if (B && Constant.isAllOnesValue()) { in visitAND()
2664 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETEQ) { in visitAND()
2671 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETGT) { in visitAND()
3135 if (N1C && N1C->isAllOnesValue()) in visitOR()
3182 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && in visitOR()
[all …]
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1233 bool isAllOnesValue() const { return Value->isAllOnesValue(); }

123