/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSelect.cpp | 198 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01() 199 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01() 450 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp() 462 if (C2->isAllOnesValue()) in visitSelectInstWithICmp() 680 if (FalseValC->isZero() && TrueValC->isAllOnesValue()) in visitSelectInst() 690 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) { in visitSelectInst()
|
D | InstCombineAndOrXor.cpp | 767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldAndOfICmps() 1500 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldOrOfICmps() 1742 if (!Xor.isAllOnesValue()) return 0; in FoldOrWithConstants() 2146 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor() 2157 if (RHS->isAllOnesValue()) { in visitXor()
|
D | InstCombineSimplifyDemanded.cpp | 689 if (Rem->isAllOnesValue()) in SimplifyDemandedUseBits() 855 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
|
D | InstCombineCalls.cpp | 349 if (Power->isAllOnesValue()) in visitCallInst() 789 if (SizeCI->isAllOnesValue()) in isFoldable()
|
D | InstCombineCompares.cpp | 123 return RHS->isAllOnesValue(); in isSignBitCheck() 126 return RHS->isAllOnesValue(); in isSignBitCheck() 762 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst() 1023 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
|
D | InstCombineAddSub.cpp | 202 if ((LHSKnownZero|RHSKnownZero).isAllOnesValue()) in visitAdd()
|
D | InstCombineMulDivRem.cpp | 516 if (RHS->isAllOnesValue()) in visitSDiv()
|
D | InstCombineCasts.cpp | 513 (ICI->getPredicate() == ICmpInst::ICMP_SGT &&Op1CV.isAllOnesValue())) { in transformZExtICmp() 897 (Pred == ICmpInst::ICMP_SGT && Op1C->isAllOnesValue())) { in transformSExtICmp()
|
/external/llvm/include/llvm/ |
D | Constants.h | 173 bool isAllOnesValue() const { in isAllOnesValue() function 174 return Val.isAllOnesValue(); in isAllOnesValue() 483 bool isAllOnesValue() const;
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | SimpleSValBuilder.cpp | 245 else if (RHS.isAllOnesValue()) in MakeSymIntVal() 252 else if (RHS.isAllOnesValue()) { in MakeSymIntVal() 465 if (lhsValue.isAllOnesValue() && lhsValue.isSigned()) in evalBinOpNN()
|
/external/llvm/include/llvm/Support/ |
D | PatternMatch.h | 186 bool isValue(const APInt &C) { return C.isAllOnesValue(); } in isValue() 599 return CI->isAllOnesValue() && L.match(LHS); in matchIfNot() 601 return CV->isAllOnesValue() && L.match(LHS); in matchIfNot()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reassociate.cpp | 914 if (CstVal->isAllOnesValue()) // X & -1 -> X in OptimizeExpression() 927 if (CstVal->isAllOnesValue()) // X | -1 -> -1 in OptimizeExpression() 1072 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) { in ReassociateExpression()
|
D | CodeGenPrepare.cpp | 501 return SizeCI->isAllOnesValue(); in isFoldable()
|
D | LoopStrengthReduce.cpp | 269 if (Mul->getOperand(0)->isAllOnesValue()) { in DoInitialMatch() 441 if (RA.isAllOnesValue()) in getExactSDiv() 1768 if (C->isOne() || C->isAllOnesValue()) in OptimizeLoopTermCond()
|
/external/llvm/lib/Analysis/ |
D | Lint.cpp | 379 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference() 477 return KnownZero.isAllOnesValue(); in isZero()
|
D | ScalarEvolution.cpp | 271 bool SCEV::isAllOnesValue() const { in isAllOnesValue() function in SCEV 273 return SC->getValue()->isAllOnesValue(); in isAllOnesValue() 1867 } else if (Ops[0]->isAllOnesValue()) { in getMulExpr() 3533 if (CI->isAllOnesValue()) in createSCEV() 3591 if (CI->isAllOnesValue()) in createSCEV() 5036 if (StepC->getValue()->equalsInt(1) || StepC->getValue()->isAllOnesValue()) in HowFarToZero()
|
D | ScalarEvolutionExpander.cpp | 787 } else if (Op->isAllOnesValue()) { in visitMulExpr()
|
/external/llvm/lib/VMCore/ |
D | ConstantFold.cpp | 47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector() 228 if (RHSC->isAllOnesValue()) in ExtractConstantBytes() 702 if (CondV->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction() 1098 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction() 1136 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction() 1189 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction() 1197 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
|
D | Instruction.cpp | 371 return Op && !Op->isNullValue() && !Op->isAllOnesValue(); in isSafeToSpeculativelyExecute()
|
D | Constants.cpp | 1078 bool ConstantVector::isAllOnesValue() const { in isAllOnesValue() function in ConstantVector 1082 if (!CI || !CI->isAllOnesValue()) return false; in isAllOnesValue()
|
/external/llvm/include/llvm/Analysis/ |
D | ScalarEvolution.h | 119 bool isAllOnesValue() const;
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | DAGCombiner.cpp | 1591 if (N0C && N0C->isAllOnesValue()) in visitSUB() 1678 if (N1C && N1C->isAllOnesValue()) in visitMUL() 1766 if (N1C && N1C->isAllOnesValue()) in visitSDIV() 2285 if (N1C && N1C->isAllOnesValue()) in visitAND() 2334 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETEQ) { in visitAND() 2341 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && Op1 == ISD::SETGT) { in visitAND() 2762 if (N1C && N1C->isAllOnesValue()) in visitOR() 2809 if (cast<ConstantSDNode>(LR)->isAllOnesValue() && in visitOR() 3131 if (N1C && N1C->isAllOnesValue() && in visitXOR() 3386 if (N0C && N0C->isAllOnesValue()) in visitSRA() [all …]
|
/external/llvm/lib/Support/ |
D | ConstantRange.cpp | 630 if (umin.isAllOnesValue()) in binaryAnd()
|
/external/llvm/include/llvm/CodeGen/ |
D | SelectionDAGNodes.h | 1124 bool isAllOnesValue() const { return Value->isAllOnesValue(); }
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 315 bool isAllOnesValue() const { in isAllOnesValue() function
|