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

1234

/external/llvm/include/llvm/IR/
H A DConstant.h59 bool isAllOnesValue() const;
/external/swiftshader/third_party/LLVM/include/llvm/
H A DConstant.h55 /// isAllOnesValue - Return true if this is the value that would be returned by
57 bool isAllOnesValue() const;
H A DConstants.h174 return Val.isAllOnesValue();
483 bool isAllOnesValue() const;
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp199 return C1I->isOne() || C1I->isAllOnesValue() ||
200 C2I->isOne() || C2I->isAllOnesValue();
456 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
468 if (C2->isAllOnesValue())
692 if (FalseValC->isZero() && TrueValC->isAllOnesValue())
702 if (TrueValC->isZero() && FalseValC->isAllOnesValue()) {
H A DInstCombineSimplifyDemanded.cpp686 if (Rem->isAllOnesValue())
852 if (DemandedElts.isAllOnesValue())
H A DInstCombineAndOrXor.cpp767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) {
1501 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) {
1743 if (!Xor.isAllOnesValue()) return 0;
2147 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue())
2158 if (RHS->isAllOnesValue()) {
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSelect.cpp223 return C1I->isOne() || C1I->isAllOnesValue() ||
224 C2I->isOne() || C2I->isAllOnesValue();
520 if (Pred == ICmpInst::ICMP_SGT && Cmp->isAllOnesValue()) {
532 if (C2->isAllOnesValue())
H A DInstCombineCompares.cpp137 return RHS->isAllOnesValue();
140 return RHS->isAllOnesValue();
169 } else if (RHS->isAllOnesValue()) {
1204 if (DivIsSigned && DivRHS->isAllOnesValue())
1455 if (AP2.isAllOnesValue())
1481 if (AP1.isAllOnesValue() && !AP2.isPowerOf2())
1577 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) {
1955 if (RHSV.isAllOnesValue()) {
2280 if (BO->hasOneUse() && RHS->isAllOnesValue()) {
3291 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue()
[all...]
H A DInstCombineAndOrXor.cpp548 if (!C->isAllOnesValue())
1017 if (LHSCst->getValue() == 0 && RHSCst->getValue().isAllOnesValue())
2080 if (!Xor.isAllOnesValue()) return nullptr;
2111 if (!Xor.isAllOnesValue())
2539 if (RHS->isAllOnesValue() && Op0->hasOneUse())
2565 if (Op0I->getOpcode() == Instruction::Sub && RHS->isAllOnesValue())
2576 if (RHS->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.cpp452 } else if (CV->isAllOnesValue()) {
H A DConstantFolding.cpp59 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy() &&
652 if ((KnownOne1 | KnownZero0).isAllOnesValue()) {
656 if ((KnownOne0 | KnownZero1).isAllOnesValue()) {
663 if ((KnownZero | KnownOne).isAllOnesValue()) {
/external/swiftshader/third_party/LLVM/include/llvm/Support/
H A DPatternMatch.h186 bool isValue(const APInt &C) { return C.isAllOnesValue(); }
599 return CI->isAllOnesValue() && L.match(LHS);
601 return CV->isAllOnesValue() && L.match(LHS);
/external/swiftshader/third_party/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()) {
/external/llvm/lib/IR/
H A DConstantFold.cpp46 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
245 if (RHSC->isAllOnesValue())
729 if (Cond->isAllOnesValue()) return V1;
1048 if (CI2->isAllOnesValue())
1086 if (CI2->isAllOnesValue())
1137 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
1145 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
H A DAutoUpgrade.cpp515 if (C->isAllOnesValue())
572 if (C->isAllOnesValue())
592 if (C->isAllOnesValue())
617 if (!C || !C->isAllOnesValue())
/external/swiftshader/third_party/LLVM/lib/VMCore/
H A DConstants.cpp65 bool Constant::isAllOnesValue() const { function in class:Constant
72 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue();
76 return CV->isAllOnesValue();
1078 bool ConstantVector::isAllOnesValue() const { function in class:ConstantVector
1090 return (CI && CI->isAllOnesValue()) ||
1091 (CF && CF->isAllOnesValue());
H A DInstruction.cpp414 return Op && !Op->isNullValue() && !Op->isAllOnesValue();
H A DConstantFold.cpp47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy);
227 if (RHSC->isAllOnesValue())
701 if (CondV->isAllOnesValue()) return V1;
1101 if (CI2->isAllOnesValue())
1139 if (CI2->isAllOnesValue())
1192 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
1200 if (C2V.isAllOnesValue() && C1V.isMinSignedValue())
/external/mesa3d/src/gallium/drivers/radeon/
H A DAMDGPUISelLowering.cpp297 return C->isAllOnesValue();
/external/swiftshader/third_party/LLVM/lib/Analysis/
H A DBranchProbabilityInfo.cpp364 } else if (CV->isAllOnesValue() && CI->getPredicate() == CmpInst::ICMP_SGT) {
H A DLint.cpp379 !cast<ConstantInt>(UnderlyingObject)->isAllOnesValue(),
477 return KnownZero.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/CodeGen/GlobalISel/
H A DRegisterBankInfo.cpp433 assert(ValueMask.isAllOnesValue() && "Value is not fully mapped");

Completed in 3185 milliseconds

1234