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

12

/external/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
845 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument
[all...]
H A DInstCombine.h301 APInt &KnownOne, unsigned Depth = 0) const {
302 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth);
329 APInt& KnownZero, APInt& KnownOne,
332 APInt& KnownZero, APInt& KnownOne,
338 APInt &KnownOne);
300 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.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);
918 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
919 ComputeMaskedBits(Op0, KnownZero, KnownOne);
/external/llvm/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 DataLayout *TD, unsigned Depth) argument
132 ComputeMaskedBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument
228 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout *TD, unsigned Depth) argument
792 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const DataLayout *TD, unsigned Depth) argument
[all...]
H A DLint.cpp512 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
513 ComputeMaskedBits(V, KnownZero, KnownOne, TD);
H A DConstantFolding.cpp568 APInt KnownOne = KnownOne0 & KnownOne1; local
569 if ((KnownZero | KnownOne).isAllOnesValue()) {
570 return ConstantInt::get(Op0->getType(), KnownOne);
/external/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h103 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo
104 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0),
168 const APInt &KnownZero, const APInt &KnownOne) {
170 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
176 LOI.KnownOne = KnownOne;
167 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
/external/llvm/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,
/external/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp346 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
352 APInt &KnownOne,
362 KnownZero = KnownOne = APInt(BitWidth, 0);
367 // If not at the root, Just compute the KnownZero/KnownOne bits to
369 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
388 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
389 KnownZero = ~KnownOne;
410 KnownOne, TLO, Depth+1))
412 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
420 if ((NewMask & ~KnownZero2 & KnownOne)
349 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument
1003 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
1058 APInt KnownZero, KnownOne; local
[all...]
H A DFunctionLoweringInfo.cpp256 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth);
291 DestLOI.KnownOne = Zero;
299 DestLOI.KnownOne = Val;
317 DestLOI.KnownOne.getBitWidth() == BitWidth &&
326 DestLOI.KnownOne = Zero;
334 DestLOI.KnownOne &= Val;
352 DestLOI.KnownOne &= SrcLOI->KnownOne;
H A DSelectionDAG.cpp1671 APInt KnownZero, KnownOne; local
1672 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
1673 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1678 /// known to be either zero or one and return them in the KnownZero/KnownOne
1682 APInt &KnownOne, unsigned Depth) const {
1685 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
1694 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue();
1695 KnownZero = ~KnownOne;
1699 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1701 assert((KnownZero & KnownOne)
1681 ComputeMaskedBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument
2239 APInt KnownZero, KnownOne; local
2264 APInt KnownZero, KnownOne; local
2315 APInt KnownZero, KnownOne; local
6217 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local
[all...]
H A DSelectionDAGISel.cpp531 APInt KnownOne; local
560 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne);
561 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne);
1475 APInt KnownZero, KnownOne; local
1476 CurDAG->ComputeMaskedBits(LHS, KnownZero, KnownOne);
1479 if ((NeededMask & KnownOne) == NeededMask)
/external/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h51 /// KnownZero/KnownOne bitsets.
54 APInt &KnownOne,
H A DSparcISelLowering.cpp840 APInt &KnownOne,
844 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0);
850 DAG.ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
852 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
856 KnownOne &= KnownOne2;
838 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/external/llvm/lib/Target/R600/
H A DAMDGPUISelLowering.h73 /// either zero or one and return them in the \p KnownZero and \p KnownOne
77 APInt &KnownOne,
H A DAMDILISelLowering.cpp260 APInt &KnownOne,
265 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
272 KnownOne,
280 assert((KnownZero & KnownOne) == 0
285 KnownOne &= KnownOne2;
257 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/external/llvm/lib/Target/XCore/
H A DXCoreISelLowering.h168 APInt &KnownOne,
H A DXCoreISelLowering.cpp1383 APInt KnownZero, KnownOne; local
1386 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1406 APInt KnownZero, KnownOne; local
1409 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1422 APInt KnownZero, KnownOne; local
1425 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1549 APInt &KnownOne,
1552 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0);
1547 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/external/llvm/lib/Target/ARM/
H A DARMISelLowering.h336 APInt &KnownOne,
/external/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h384 APInt &KnownOne,
/external/llvm/lib/Transforms/Utils/
H A DLocal.cpp811 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
812 ComputeMaskedBits(V, KnownZero, KnownOne, TD);
/external/llvm/lib/Target/X86/
H A DX86ISelLowering.h563 /// KnownZero/KnownOne bitsets.
566 APInt &KnownOne,
/external/llvm/include/llvm/Target/
H A DTargetLowering.h1783 /// Otherwise, analyze the expression and return a mask of KnownOne and
1788 APInt &KnownZero, APInt &KnownOne,
1793 /// KnownZero/KnownOne bitsets.
1796 APInt &KnownOne,

Completed in 320 milliseconds

12