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

12

/macosx-10.9.5/llvmCore-3425.0.33/lib/Analysis/
H A DValueTracking.cpp47 APInt &KnownZero, APInt &KnownOne,
96 KnownOne |= KnownOne2 & Mask;
107 KnownOne |= LHSKnownOne & Mask;
111 if (!KnownZero.isNegative() && !KnownOne.isNegative()) {
119 KnownOne |= APInt::getSignBit(BitWidth);
126 KnownOne |= APInt::getSignBit(BitWidth);
133 APInt &KnownZero, APInt &KnownOne,
137 ComputeMaskedBits(Op1, KnownZero, KnownOne, TD, Depth+1);
139 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
152 bool isKnownNegativeOp1 = KnownOne
46 ComputeMaskedBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const TargetData *TD, unsigned Depth) argument
132 ComputeMaskedBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const TargetData *TD, unsigned Depth) argument
228 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, const TargetData *TD, unsigned Depth) argument
780 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const TargetData *TD, unsigned Depth) argument
[all...]
H A DLint.cpp514 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
515 ComputeMaskedBits(V, KnownZero, KnownOne, TD);
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
58 KnownZero, KnownOne, 0);
69 APInt &KnownZero, APInt &KnownOne,
72 KnownZero, KnownOne, Depth);
85 /// returns false after analyzing the expression and setting KnownOne and known
89 /// the expression. KnownOne and KnownZero always follow the invariant that
90 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that
91 /// the bits in KnownOne and KnownZero may only be accurate for those bits set
93 /// and KnownOne must all be the same.
101 APInt &KnownZero, APInt &KnownOne,
68 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
100 SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument
[all...]
H A DInstCombine.h295 APInt &KnownOne, unsigned Depth = 0) const {
296 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth);
323 APInt& KnownZero, APInt& KnownOne,
326 APInt& KnownZero, APInt& KnownOne,
294 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, unsigned Depth = 0) const argument
H A DInstCombineCompares.cpp153 const APInt& KnownOne,
155 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
158 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
159 APInt UnknownBits = ~(KnownZero|KnownOne);
163 Min = KnownOne;
164 Max = KnownOne|UnknownBits;
177 const APInt &KnownOne,
179 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
182 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth.");
183 APInt UnknownBits = ~(KnownZero|KnownOne);
152 ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, const APInt& KnownOne, APInt& Min, APInt& Max) argument
176 ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, const APInt &KnownOne, APInt &Min, APInt &Max) argument
[all...]
H A DInstCombineCalls.cpp314 APInt KnownOne(BitWidth, 0);
315 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
316 unsigned TrailingZeros = KnownOne.countTrailingZeros();
332 APInt KnownOne(BitWidth, 0);
333 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
334 unsigned LeadingZeros = KnownOne.countLeadingZeros();
H A DInstCombineCasts.cpp543 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
544 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne);
909 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
910 ComputeMaskedBits(Op0, KnownZero, KnownOne);
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h106 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo
107 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0),
171 const APInt &KnownZero, const APInt &KnownOne) {
173 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
179 LOI.KnownOne = KnownOne;
170 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
H A DSelectionDAG.h1004 /// known to be either zero or one and return them in the KnownZero/KnownOne
1008 void ComputeMaskedBits(SDValue Op, APInt &KnownZero, APInt &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Analysis/
H A DValueTracking.h30 /// known to be either zero or one and return them in the KnownZero/KnownOne
39 void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne,
45 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1189 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
1195 APInt &KnownOne,
1205 KnownZero = KnownOne = APInt(BitWidth, 0);
1210 // If not at the root, Just compute the KnownZero/KnownOne bits to
1212 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
1231 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
1232 KnownZero = ~KnownOne;
1253 KnownOne, TLO, Depth+1))
1255 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1263 if ((NewMask & ~KnownZero2 & KnownOne)
1192 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument
1846 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
1901 APInt KnownZero, KnownOne; local
[all...]
H A DFunctionLoweringInfo.cpp257 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
292 DestLOI.KnownOne = Zero;
300 DestLOI.KnownOne = Val;
318 DestLOI.KnownOne.getBitWidth() == BitWidth &&
327 DestLOI.KnownOne = Zero;
335 DestLOI.KnownOne &= Val;
353 DestLOI.KnownOne &= SrcLOI->KnownOne;
H A DSelectionDAG.cpp1687 APInt KnownZero, KnownOne; local
1688 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
1689 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1694 /// known to be either zero or one and return them in the KnownZero/KnownOne
1698 APInt &KnownOne, unsigned Depth) const {
1701 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
1710 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
1711 KnownZero = ~KnownOne;
1715 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1717 assert((KnownZero & KnownOne)
1697 ComputeMaskedBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument
2255 APInt KnownZero, KnownOne; local
2280 APInt KnownZero, KnownOne; local
2331 APInt KnownZero, KnownOne; local
6099 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local
[all...]
H A DSelectionDAGISel.cpp514 APInt KnownOne; local
543 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne);
544 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne);
1478 APInt KnownZero, KnownOne; local
1479 CurDAG->ComputeMaskedBits(LHS, KnownZero, KnownOne);
1482 if ((NeededMask & KnownOne) == NeededMask)
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/Sparc/
H A DSparcISelLowering.h51 /// KnownZero/KnownOne bitsets.
54 APInt &KnownOne,
H A DSparcISelLowering.cpp841 APInt &KnownOne,
845 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0);
851 DAG.ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
853 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
857 KnownOne &= KnownOne2;
839 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/CellSPU/
H A DSPUISelLowering.h124 APInt &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/XCore/
H A DXCoreISelLowering.h164 APInt &KnownOne,
H A DXCoreISelLowering.cpp1367 APInt KnownZero, KnownOne; local
1370 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1390 APInt KnownZero, KnownOne; local
1393 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1406 APInt KnownZero, KnownOne; local
1409 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1529 APInt &KnownOne,
1532 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0);
1527 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/ARM/
H A DARMISelLowering.h328 APInt &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/PowerPC/
H A DPPCISelLowering.h304 APInt &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/lib/Transforms/Utils/
H A DLocal.cpp810 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
811 ComputeMaskedBits(V, KnownZero, KnownOne, TD);
H A DSimplifyCFG.cpp3069 APInt KnownZero(Bits, 0), KnownOne(Bits, 0);
3070 ComputeMaskedBits(Cond, KnownZero, KnownOne);
3076 (I.getCaseValue()->getValue() & KnownOne) != KnownOne) {
/macosx-10.9.5/llvmCore-3425.0.33/lib/Target/X86/
H A DX86ISelLowering.h540 /// KnownZero/KnownOne bitsets.
543 APInt &KnownOne,
/macosx-10.9.5/llvmCore-3425.0.33/include/llvm/Target/
H A DTargetLowering.h901 /// Otherwise, analyze the expression and return a mask of KnownOne and
906 APInt &KnownZero, APInt &KnownOne,
911 /// KnownZero/KnownOne bitsets.
914 APInt &KnownOne,

Completed in 390 milliseconds

12