Searched refs:KnownOne (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-9.3-release/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
59 KnownZero, KnownOne, 0);
70 APInt &KnownZero, APInt &KnownOne,
73 KnownZero, KnownOne, Depth);
86 /// returns false after analyzing the expression and setting KnownOne and known
90 /// the expression. KnownOne and KnownZero always follow the invariant that
91 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that
92 /// the bits in KnownOne and KnownZero may only be accurate for those bits set
94 /// and KnownOne must all be the same.
102 APInt &KnownZero, APInt &KnownOne,
69 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
101 SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
844 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument
[all...]
H A DInstCombine.h304 APInt &KnownOne, unsigned Depth = 0) const {
305 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth);
332 APInt& KnownZero, APInt& KnownOne,
335 APInt& KnownZero, APInt& KnownOne,
341 APInt &KnownOne);
303 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, unsigned Depth = 0) const argument
H A DInstCombineCompares.cpp178 const APInt& KnownOne,
180 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
183 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
184 APInt UnknownBits = ~(KnownZero|KnownOne);
188 Min = KnownOne;
189 Max = KnownOne|UnknownBits;
202 const APInt &KnownOne,
204 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
207 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth.");
208 APInt UnknownBits = ~(KnownZero|KnownOne);
177 ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, const APInt& KnownOne, APInt& Min, APInt& Max) argument
201 ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, const APInt &KnownOne, APInt &Min, APInt &Max) argument
[all...]
H A DInstCombineCalls.cpp322 APInt KnownOne(BitWidth, 0);
323 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
324 unsigned TrailingZeros = KnownOne.countTrailingZeros();
340 APInt KnownOne(BitWidth, 0);
341 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
342 unsigned LeadingZeros = KnownOne.countLeadingZeros();
H A DInstCombineCasts.cpp552 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
553 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne);
928 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
929 ComputeMaskedBits(Op0, KnownZero, KnownOne);
/freebsd-9.3-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp48 APInt &KnownZero, APInt &KnownOne,
97 KnownOne |= KnownOne2 & Mask;
108 KnownOne |= LHSKnownOne & Mask;
112 if (!KnownZero.isNegative() && !KnownOne.isNegative()) {
120 KnownOne |= APInt::getSignBit(BitWidth);
127 KnownOne |= APInt::getSignBit(BitWidth);
134 APInt &KnownZero, APInt &KnownOne,
138 ComputeMaskedBits(Op1, KnownZero, KnownOne, TD, Depth+1);
140 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
153 bool isKnownNegativeOp1 = KnownOne
47 ComputeMaskedBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument
133 ComputeMaskedBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument
229 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout *TD, unsigned Depth) argument
802 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const DataLayout *TD, unsigned Depth) argument
[all...]
H A DLint.cpp515 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
516 ComputeMaskedBits(V, KnownZero, KnownOne, DL);
536 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
537 ComputeMaskedBits(Elem, KnownZero, KnownOne, DL);
H A DConstantFolding.cpp586 APInt KnownOne = KnownOne0 & KnownOne1; local
587 if ((KnownZero | KnownOne).isAllOnesValue()) {
588 return ConstantInt::get(Op0->getType(), KnownOne);
/freebsd-9.3-release/contrib/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h104 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo
105 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0),
174 const APInt &KnownZero, const APInt &KnownOne) {
176 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
182 LOI.KnownOne = KnownOne;
173 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
/freebsd-9.3-release/contrib/llvm/include/llvm/Analysis/
H A DValueTracking.h31 /// known to be either zero or one and return them in the KnownZero/KnownOne
40 void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne,
46 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp364 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
370 APInt &KnownOne,
380 KnownZero = KnownOne = APInt(BitWidth, 0);
385 // If not at the root, Just compute the KnownZero/KnownOne bits to
387 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
406 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
407 KnownZero = ~KnownOne;
428 KnownOne, TLO, Depth+1))
430 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
438 if ((NewMask & ~KnownZero2 & KnownOne)
367 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument
1057 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
1112 APInt KnownZero, KnownOne; local
[all...]
H A DFunctionLoweringInfo.cpp299 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
336 DestLOI.KnownOne = Zero;
344 DestLOI.KnownOne = Val;
362 DestLOI.KnownOne.getBitWidth() == BitWidth &&
371 DestLOI.KnownOne = Zero;
379 DestLOI.KnownOne &= Val;
397 DestLOI.KnownOne &= SrcLOI->KnownOne;
H A DSelectionDAG.cpp1749 APInt KnownZero, KnownOne; local
1750 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
1751 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1756 /// known to be either zero or one and return them in the KnownZero/KnownOne
1760 APInt &KnownOne, unsigned Depth) const {
1764 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
1773 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
1774 KnownZero = ~KnownOne;
1778 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1780 assert((KnownZero & KnownOne)
1759 ComputeMaskedBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument
2319 APInt KnownZero, KnownOne; local
2344 APInt KnownZero, KnownOne; local
2398 APInt KnownZero, KnownOne; local
6380 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/R600/
H A DAMDGPUISelDAGToDAG.cpp520 APInt KnownZero, KnownOne; local
523 if (TLI->SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) {
545 APInt KnownOne; local
546 CurDAG->ComputeMaskedBits(Op, KnownZero, KnownOne);
H A DAMDILISelLowering.cpp255 APInt &KnownOne,
260 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
267 KnownOne,
275 assert((KnownZero & KnownOne) == 0
280 KnownOne &= KnownOne2;
252 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
H A DAMDGPUISelLowering.h106 /// either zero or one and return them in the \p KnownZero and \p KnownOne
110 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp668 APInt KnownZero, KnownOne; local
669 CurDAG->ComputeMaskedBits(Op.getOperand(0), KnownZero, KnownOne);
718 APInt KnownZero, KnownOne; local
719 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne);
743 APInt KnownZero, KnownOne; local
744 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne);
745 Mask &= ~KnownOne.getZExtValue();
/freebsd-9.3-release/contrib/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h62 /// KnownZero/KnownOne bitsets.
65 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/Target/XCore/
H A DXCoreISelLowering.h179 APInt &KnownOne,
H A DXCoreISelLowering.cpp390 APInt KnownZero, KnownOne; local
391 DAG.ComputeMaskedBits(Value, KnownZero, KnownOne);
1419 APInt KnownZero, KnownOne; local
1422 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1442 APInt KnownZero, KnownOne; local
1445 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1458 APInt KnownZero, KnownOne; local
1461 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1585 APInt &KnownOne,
1588 KnownZero = KnownOne
1583 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/
H A DARMISelLowering.h327 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h393 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/
H A DX86ISelLowering.h620 /// KnownZero/KnownOne bitsets.
623 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/include/llvm/Target/
H A DTargetLowering.h1808 /// expression and return a mask of KnownOne and KnownZero bits for the
1812 APInt &KnownZero, APInt &KnownOne,
1816 /// or one and return them in the KnownZero/KnownOne bitsets.
1819 APInt &KnownOne,
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Utils/
H A DLocal.cpp928 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
929 ComputeMaskedBits(V, KnownZero, KnownOne, DL);

Completed in 422 milliseconds

12