Home
last modified time | relevance | path

Searched refs:KnownZero2 (Results 1 – 14 of 14) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp94 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in ComputeMaskedBits() local
95 ComputeMaskedBits(CV->getOperand(i), Mask, KnownZero2, KnownOne2, in ComputeMaskedBits()
97 KnownZero &= KnownZero2; in ComputeMaskedBits()
153 APInt KnownZero2(KnownZero), KnownOne2(KnownOne); in ComputeMaskedBits() local
160 ComputeMaskedBits(I->getOperand(0), Mask2, KnownZero2, KnownOne2, TD, in ComputeMaskedBits()
163 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits()
168 KnownZero |= KnownZero2; in ComputeMaskedBits()
174 ComputeMaskedBits(I->getOperand(0), Mask2, KnownZero2, KnownOne2, TD, in ComputeMaskedBits()
177 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits()
180 KnownZero &= KnownZero2; in ComputeMaskedBits()
[all …]
/external/llvm/lib/Analysis/
DDemandedBits.cpp76 APInt &KnownZero2, APInt &KnownOne2) { in determineLiveOperandBits() argument
94 KnownZero2 = APInt(BitWidth, 0); in determineLiveOperandBits()
96 computeKnownBits(const_cast<Value *>(V2), KnownZero2, KnownOne2, DL, in determineLiveOperandBits()
200 AB &= ~KnownZero2; in determineLiveOperandBits()
204 AB &= ~(KnownZero & ~KnownZero2); in determineLiveOperandBits()
320 APInt KnownZero, KnownOne, KnownZero2, KnownOne2; in performAnalysis() local
338 KnownZero2, KnownOne2); in performAnalysis()
DValueTracking.cpp237 APInt &KnownZero2, APInt &KnownOne2, in computeKnownBitsAddSub() argument
249 computeKnownBits(Op1, KnownZero2, KnownOne2, Depth + 1, Q); in computeKnownBitsAddSub()
254 if ((KnownZero2 & MaskV) == MaskV) { in computeKnownBitsAddSub()
269 computeKnownBits(Op1, KnownZero2, KnownOne2, Depth + 1, Q); in computeKnownBitsAddSub()
275 std::swap(KnownZero2, KnownOne2); in computeKnownBitsAddSub()
279 APInt PossibleSumZero = ~LHSKnownZero + ~KnownZero2 + CarryIn; in computeKnownBitsAddSub()
283 APInt CarryKnownZero = ~(PossibleSumZero ^ LHSKnownZero ^ KnownZero2); in computeKnownBitsAddSub()
288 APInt RHSKnown = KnownZero2 | KnownOne2; in computeKnownBitsAddSub()
304 if (LHSKnownZero.isNegative() && KnownZero2.isNegative()) in computeKnownBitsAddSub()
316 APInt &KnownZero2, APInt &KnownOne2, in computeKnownBitsMul() argument
[all …]
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp1241 APInt KnownZero2, KnownOne2, KnownZeroOut, KnownOneOut; in SimplifyDemandedBits() local
1272 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1274 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits()
1278 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits()
1283 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits()
1286 if (TLO.ShrinkDemandedConstant(Op, ~KnownZero2 & NewMask)) in SimplifyDemandedBits()
1295 KnownZero |= KnownZero2; in SimplifyDemandedBits()
1303 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
1305 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits()
1311 if ((NewMask & ~KnownOne & KnownZero2) == (~KnownOne & NewMask)) in SimplifyDemandedBits()
[all …]
DSelectionDAG.cpp1621 APInt KnownZero2, KnownOne2; in ComputeMaskedBits() local
1633 KnownZero2, KnownOne2, Depth+1); in ComputeMaskedBits()
1635 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits()
1640 KnownZero |= KnownZero2; in ComputeMaskedBits()
1645 KnownZero2, KnownOne2, Depth+1); in ComputeMaskedBits()
1647 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits()
1650 KnownZero &= KnownZero2; in ComputeMaskedBits()
1656 ComputeMaskedBits(Op.getOperand(0), Mask, KnownZero2, KnownOne2, Depth+1); in ComputeMaskedBits()
1658 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits()
1661 APInt KnownZeroOut = (KnownZero & KnownZero2) | (KnownOne & KnownOne2); in ComputeMaskedBits()
[all …]
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp464 APInt KnownZero2, KnownOne2, KnownZeroOut, KnownOneOut; in SimplifyDemandedBits() local
494 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
496 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits()
500 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits()
505 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits()
508 if (TLO.ShrinkDemandedConstant(Op, ~KnownZero2 & NewMask)) in SimplifyDemandedBits()
517 KnownZero |= KnownZero2; in SimplifyDemandedBits()
525 KnownZero2, KnownOne2, TLO, Depth+1)) in SimplifyDemandedBits()
527 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits()
533 if ((NewMask & ~KnownOne & KnownZero2) == (~KnownOne & NewMask)) in SimplifyDemandedBits()
[all …]
DSelectionDAG.cpp2031 APInt KnownZero2, KnownOne2; in computeKnownBits() local
2042 computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); in computeKnownBits()
2047 KnownZero |= KnownZero2; in computeKnownBits()
2051 computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); in computeKnownBits()
2054 KnownZero &= KnownZero2; in computeKnownBits()
2060 computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); in computeKnownBits()
2063 APInt KnownZeroOut = (KnownZero & KnownZero2) | (KnownOne & KnownOne2); in computeKnownBits()
2065 KnownOne = (KnownZero & KnownOne2) | (KnownOne & KnownZero2); in computeKnownBits()
2071 computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); in computeKnownBits()
2079 KnownZero2.countTrailingOnes(); in computeKnownBits()
[all …]
/external/llvm/include/llvm/Analysis/
DDemandedBits.h62 APInt &KnownZero2, APInt &KnownOne2);
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp730 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in SimplifyDemandedUseBits() local
733 KnownZero2, KnownOne2, Depth+1) || in SimplifyDemandedUseBits()
735 KnownZero2, KnownOne2, Depth+1)) in SimplifyDemandedUseBits()
738 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits()
740 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp720 APInt KnownZero2(BitWidth, 0), KnownOne2(BitWidth, 0); in SimplifyDemandedUseBits() local
722 if (SimplifyDemandedBits(I->getOperandUse(0), AllOnes, KnownZero2, in SimplifyDemandedUseBits()
724 SimplifyDemandedBits(I->getOperandUse(1), AllOnes, KnownZero2, in SimplifyDemandedUseBits()
728 unsigned Leaders = KnownZero2.countLeadingOnes(); in SimplifyDemandedUseBits()
730 KnownZero2.countLeadingOnes()); in SimplifyDemandedUseBits()
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/
DSparcISelLowering.cpp839 APInt KnownZero2, KnownOne2; in computeMaskedBitsForTargetNode() local
848 DAG.ComputeMaskedBits(Op.getOperand(0), Mask, KnownZero2, KnownOne2, in computeMaskedBitsForTargetNode()
851 assert((KnownZero2 & KnownOne2) == 0 && "Bits known to be one AND zero?"); in computeMaskedBitsForTargetNode()
855 KnownZero &= KnownZero2; in computeMaskedBitsForTargetNode()
/external/llvm/lib/Target/Sparc/
DSparcISelLowering.cpp1890 APInt KnownZero2, KnownOne2; in computeKnownBitsForTargetNode() local
1899 DAG.computeKnownBits(Op.getOperand(0), KnownZero2, KnownOne2, Depth+1); in computeKnownBitsForTargetNode()
1903 KnownZero &= KnownZero2; in computeKnownBitsForTargetNode()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.cpp744 APInt KnownZero2, KnownOne2; in computeKnownBitsForTargetNode() local
746 DAG.computeKnownBits(Op->getOperand(1), KnownZero2, KnownOne2, Depth + 1); in computeKnownBitsForTargetNode()
747 KnownZero &= KnownZero2; in computeKnownBitsForTargetNode()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp2926 APInt KnownZero2; in computeKnownBitsForTargetNode() local