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

12

/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp56 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
60 KnownZero, KnownOne, 0);
71 APInt &KnownZero, APInt &KnownOne,
74 KnownZero, KnownOne, Depth);
87 /// returns false after analyzing the expression and setting KnownOne and known
91 /// the expression. KnownOne and KnownZero always follow the invariant that
92 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that
93 /// the bits in KnownOne and KnownZero may only be accurate for those bits set
95 /// and KnownOne must all be the same.
103 APInt &KnownZero, APInt &KnownOne,
70 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
102 SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
845 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument
[all...]
H A DInstCombine.h318 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument
320 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth);
346 APInt &KnownOne, unsigned Depth);
348 APInt &KnownOne, unsigned Depth = 0);
353 APInt &KnownOne);
H A DInstCombineCompares.cpp171 const APInt& KnownOne,
173 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
176 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
177 APInt UnknownBits = ~(KnownZero|KnownOne);
181 Min = KnownOne;
182 Max = KnownOne|UnknownBits;
195 const APInt &KnownOne,
197 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
200 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth.");
201 APInt UnknownBits = ~(KnownZero|KnownOne);
170 ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, const APInt& KnownOne, APInt& Min, APInt& Max) argument
194 ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, const APInt &KnownOne, APInt &Min, APInt &Max) argument
[all...]
H A DInstCombineCalls.cpp324 APInt KnownOne(BitWidth, 0);
325 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne);
326 unsigned TrailingZeros = KnownOne.countTrailingZeros();
342 APInt KnownOne(BitWidth, 0);
343 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne);
344 unsigned LeadingZeros = KnownOne.countLeadingZeros();
/external/llvm/lib/Analysis/
H A DValueTracking.cpp49 APInt &KnownZero, APInt &KnownOne,
95 KnownOne |= KnownOne2 & Mask;
106 KnownOne |= LHSKnownOne & Mask;
110 if (!KnownZero.isNegative() && !KnownOne.isNegative()) {
118 KnownOne |= APInt::getSignBit(BitWidth);
125 KnownOne |= APInt::getSignBit(BitWidth);
132 APInt &KnownZero, APInt &KnownOne,
136 computeKnownBits(Op1, KnownZero, KnownOne, TD, Depth+1);
149 bool isKnownNegativeOp1 = KnownOne.isNegative();
168 KnownOne
48 computeKnownBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument
131 computeKnownBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument
227 computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout *TD, unsigned Depth) argument
801 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 computeKnownBits(V, KnownZero, KnownOne, DL);
536 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
537 computeKnownBits(Elem, KnownZero, KnownOne, DL);
H A DConstantFolding.cpp641 APInt KnownOne = KnownOne0 & KnownOne1; local
642 if ((KnownZero | KnownOne).isAllOnesValue()) {
643 return ConstantInt::get(Op0->getType(), KnownOne);
/external/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
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp369 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
375 APInt &KnownOne,
385 KnownZero = KnownOne = APInt(BitWidth, 0);
390 // If not at the root, Just compute the KnownZero/KnownOne bits to
392 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth);
411 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
412 KnownZero = ~KnownOne;
433 KnownOne, TLO, Depth+1))
435 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
443 if ((NewMask & ~KnownZero2 & KnownOne)
372 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument
1087 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
1143 APInt KnownZero, KnownOne; local
[all...]
H A DFunctionLoweringInfo.cpp296 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
333 DestLOI.KnownOne = Zero;
341 DestLOI.KnownOne = Val;
359 DestLOI.KnownOne.getBitWidth() == BitWidth &&
368 DestLOI.KnownOne = Zero;
376 DestLOI.KnownOne &= Val;
394 DestLOI.KnownOne &= SrcLOI->KnownOne;
H A DSelectionDAG.cpp1915 APInt KnownZero, KnownOne; local
1916 computeKnownBits(Op, KnownZero, KnownOne, Depth);
1921 /// them in the KnownZero/KnownOne bitsets.
1923 APInt &KnownOne, unsigned Depth) const {
1927 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
1936 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
1937 KnownZero = ~KnownOne;
1941 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1945 KnownOne &= KnownOne2;
1950 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Dept
1922 computeKnownBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument
2481 APInt KnownZero, KnownOne; local
2506 APInt KnownZero, KnownOne; local
2560 APInt KnownZero, KnownOne; local
6529 llvm::computeKnownBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local
[all...]
/external/llvm/include/llvm/Analysis/
H A DValueTracking.h31 /// them in the KnownZero/KnownOne bit sets.
38 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne,
47 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/
H A DAMDGPUISelLowering.h66 /// KnownZero/KnownOne bitsets.
69 APInt &KnownOne,
H A DAMDILISelLowering.cpp280 APInt &KnownOne,
286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
293 KnownOne,
301 assert((KnownZero & KnownOne) == 0
306 KnownOne &= KnownOne2;
277 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/external/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp197 /// \p KnownOne Mask of all bits that are known to be one.
199 void ComputeKnownBits(Value *V, APInt &KnownOne, APInt &KnownZero) const;
581 void ConstantOffsetExtractor::ComputeKnownBits(Value *V, APInt &KnownOne, argument
584 KnownOne = APInt(IT->getBitWidth(), 0);
586 llvm::computeKnownBits(V, KnownZero, KnownOne, DL, 0);
/external/mesa3d/src/gallium/drivers/radeon/
H A DAMDGPUISelLowering.h66 /// KnownZero/KnownOne bitsets.
69 APInt &KnownOne,
H A DAMDILISelLowering.cpp280 APInt &KnownOne,
286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
293 KnownOne,
301 assert((KnownZero & KnownOne) == 0
306 KnownOne &= KnownOne2;
277 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/external/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp417 APInt KnownZero, KnownOne; local
418 DAG.computeKnownBits(Value, KnownZero, KnownOne);
1623 APInt KnownZero, KnownOne; local
1628 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne,
1640 APInt KnownZero, KnownOne; local
1645 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne,
1677 APInt KnownZero, KnownOne; local
1680 DAG.computeKnownBits(N2, KnownZero, KnownOne);
1700 APInt KnownZero, KnownOne; local
1703 DAG.computeKnownBits(N2, KnownZero, KnownOne);
1716 APInt KnownZero, KnownOne; local
1841 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
H A DXCoreISelLowering.h187 APInt &KnownOne,
/external/llvm/lib/Target/SystemZ/
H A DSystemZISelDAGToDAG.cpp667 APInt KnownZero, KnownOne; local
668 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne);
716 APInt KnownZero, KnownOne; local
717 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
740 APInt KnownZero, KnownOne; local
741 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
742 Mask &= ~KnownOne.getZExtValue();
/external/llvm/lib/Target/R600/
H A DAMDGPUISelLowering.h150 /// either zero or one and return them in the \p KnownZero and \p KnownOne
154 APInt &KnownOne,
H A DAMDGPUISelLowering.cpp1859 APInt KnownZero, KnownOne; local
1861 DAG.computeKnownBits(Op, KnownZero, KnownOne);
1883 APInt KnownZero, KnownOne; local
1885 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO))
2019 APInt KnownZero, KnownOne; local
2024 TLI.SimplifyDemandedBits(BitsFrom, Demanded, KnownZero, KnownOne, TLO)) {
2168 APInt &KnownOne,
2177 KnownOne = Op0One & Op1One;
2183 APInt &KnownOne,
2187 KnownZero = KnownOne
2165 computeKnownBitsForMinMax(const SDValue Op0, const SDValue Op1, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) argument
2180 computeKnownBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
/external/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h62 /// KnownZero/KnownOne bitsets.
65 APInt &KnownOne,
/external/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.h208 /// KnownZero/KnownOne bitsets.
210 APInt &KnownOne, const SelectionDAG &DAG,
/external/llvm/lib/Target/ARM/
H A DARMISelLowering.h319 APInt &KnownOne,

Completed in 376 milliseconds

12