Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSelect.cpp199 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01()
200 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01()
456 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
468 if (C2->isAllOnesValue()) in visitSelectInstWithICmp()
692 if (FalseValC->isZero() && TrueValC->isAllOnesValue()) in visitSelectInst()
702 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) { in visitSelectInst()
DInstCombineAndOrXor.cpp767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldAndOfICmps()
1501 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldOrOfICmps()
1743 if (!Xor.isAllOnesValue()) return 0; in FoldOrWithConstants()
2147 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor()
2158 if (RHS->isAllOnesValue()) { in visitXor()
DInstCombineSimplifyDemanded.cpp686 if (Rem->isAllOnesValue()) in SimplifyDemandedUseBits()
852 if (DemandedElts.isAllOnesValue()) in SimplifyDemandedVectorElts()
/external/swiftshader/third_party/LLVM/include/llvm/
DConstant.h57 bool isAllOnesValue() const;
DConstants.h174 return Val.isAllOnesValue(); in isMinusOne()
483 bool isAllOnesValue() const;
/external/llvm/include/llvm/IR/
DConstant.h59 bool isAllOnesValue() const;
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DConstant.h61 bool isAllOnesValue() const;
/external/llvm/lib/Analysis/
DLint.cpp386 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference()
519 return KnownZero.isAllOnesValue(); in isZero()
540 if (KnownZero.isAllOnesValue()) in isZero()
DConstantFolding.cpp59 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() && in FoldBitCast()
652 if ((KnownOne1 | KnownZero0).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
656 if ((KnownOne0 | KnownZero1).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
663 if ((KnownZero | KnownOne).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
/external/clang/lib/StaticAnalyzer/Core/
DSimpleSValBuilder.cpp256 else if (RHS.isAllOnesValue()) in MakeSymIntVal()
263 else if (RHS.isAllOnesValue()) { in MakeSymIntVal()
413 if (LHSValue.isAllOnesValue() && LHSValue.isSigned()) in evalBinOpNN()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp223 return C1I->isOne() || C1I->isAllOnesValue() || in isSelect01()
224 C2I->isOne() || C2I->isAllOnesValue(); in isSelect01()
520 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) { in visitSelectInstWithICmp()
532 if (C2->isAllOnesValue()) in visitSelectInstWithICmp()
DInstCombineAndOrXor.cpp548 if (!C->isAllOnesValue()) in decomposeBitTestICmp()
1017 if (LHSCst->getValue() == 0 && RHSCst->getValue().isAllOnesValue()) in FoldAndOfICmps()
2080 if (!Xor.isAllOnesValue()) return nullptr; in FoldOrWithConstants()
2111 if (!Xor.isAllOnesValue()) in FoldXorWithConstants()
2539 if (RHS->isAllOnesValue() && Op0->hasOneUse()) in visitXor()
2565 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue()) in visitXor()
2576 if (RHS->isAllOnesValue()) { in visitXor()
DInstCombineCompares.cpp137 return RHS->isAllOnesValue(); in isSignBitCheck()
140 return RHS->isAllOnesValue(); in isSignBitCheck()
169 } else if (RHS->isAllOnesValue()) { in isSignTest()
1204 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
1455 if (AP2.isAllOnesValue()) in FoldICmpCstShrCst()
1481 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst()
1577 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1955 if (RHSV.isAllOnesValue()) { in visitICmpInstWithInstAndIntCst()
2280 if (BO->hasOneUse() && RHS->isAllOnesValue()) { in visitICmpInstWithInstAndIntCst()
3291 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() && in visitICmpInst()
/external/llvm/lib/IR/
DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
245 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
729 if (Cond->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
1048 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1086 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1137 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1145 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
DAutoUpgrade.cpp515 if (C->isAllOnesValue()) in EmitX86Select()
572 if (C->isAllOnesValue()) in UpgradeMaskedStore()
592 if (C->isAllOnesValue()) in UpgradeMaskedLoad()
617 if (!C || !C->isAllOnesValue()) in upgradeMaskedCompare()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h186 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/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DReassociate.cpp914 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()
/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
227 if (RHSC->isAllOnesValue()) in ExtractConstantBytes()
701 if (CondV->isAllOnesValue()) return V1; in ConstantFoldSelectInstruction()
1101 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1139 if (CI2->isAllOnesValue()) in ConstantFoldBinaryInstruction()
1192 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
1200 if (C2V.isAllOnesValue() && C1V.isMinSignedValue()) in ConstantFoldBinaryInstruction()
DConstants.cpp65 bool Constant::isAllOnesValue() const { in isAllOnesValue() function in Constant
72 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue(); in isAllOnesValue()
76 return CV->isAllOnesValue(); in isAllOnesValue()
1078 bool ConstantVector::isAllOnesValue() const { in isAllOnesValue() function in ConstantVector
1090 return (CI && CI->isAllOnesValue()) || in isAllOnesValue()
1091 (CF && CF->isAllOnesValue()); in isAllOnesValue()
DInstruction.cpp414 return Op && !Op->isNullValue() && !Op->isAllOnesValue(); in isSafeToSpeculativelyExecute()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLint.cpp379 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(), in visitMemoryReference()
477 return KnownZero.isAllOnesValue(); in isZero()
DBranchProbabilityInfo.cpp364 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) { in calcZeroHeuristics()
/external/llvm/include/llvm/ADT/
DAPInt.h338 bool isAllOnesValue() const { in isAllOnesValue() function
348 bool isMaxValue() const { return isAllOnesValue(); } in isMaxValue()
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp1139 if (!ConstOpnd.isAllOnesValue()) { in createAndInstr()
1223 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
1240 if (C3 != 0 && !C3.isAllOnesValue()) { in CombineXorOpnd()
2140 cast<ConstantInt>(Ops.back().Op)->isAllOnesValue()) { in ReassociateExpression()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h342 bool isAllOnesValue() const { in isAllOnesValue() function
352 bool isMaxValue() const { return isAllOnesValue(); } in isMaxValue()

1234