Searched refs:KnownZero (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-10.0-release/contrib/llvm/lib/Analysis/
H A DValueTracking.cpp47 APInt &KnownZero, APInt &KnownOne,
56 unsigned BitWidth = KnownZero.getBitWidth();
68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2);
74 unsigned BitWidth = KnownZero.getBitWidth();
95 KnownZero |= KnownZero2 & Mask;
100 KnownZero |= APInt::getLowBitsSet(BitWidth,
106 KnownZero |= LHSKnownZero & Mask;
111 if (!KnownZero.isNegative() && !KnownOne.isNegative()) {
116 KnownZero |= APInt::getSignBit(BitWidth);
123 KnownZero |
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
194 computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero) 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);
514 return KnownZero.isAllOnesValue();
/freebsd-10.0-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);
87 /// to be one in the expression. KnownZero contains all the bits that are 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
93 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero
102 APInt &KnownZero, APIn
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 void ComputeMaskedBits(Value *V, APInt &KnownZero, argument
303 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth);
330 APInt& KnownZero, APInt& KnownOne,
333 APInt& KnownZero, APInt& KnownOne,
338 APInt DemandedMask, APInt &KnownZero,
H A DInstCombineCalls.cpp321 APInt KnownZero(BitWidth, 0);
323 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
326 if ((Mask & KnownZero) == Mask)
339 APInt KnownZero(BitWidth, 0);
341 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne);
344 if ((Mask & KnownZero) == Mask)
H A DInstCombineCasts.cpp552 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
553 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne);
555 APInt KnownZeroMask(~KnownZero);
918 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
919 ComputeMaskedBits(Op0, KnownZero, KnownOne);
921 APInt KnownZeroMask(~KnownZero);
H A DInstCombineCompares.cpp177 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, argument
180 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
181 KnownZero.getBitWidth() == Min.getBitWidth() &&
182 KnownZero.getBitWidth() == Max.getBitWidth() &&
183 "KnownZero, KnownOne and Min, Max must have equal bitwidth.");
184 APInt UnknownBits = ~(KnownZero|KnownOne);
201 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, argument
204 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() &&
205 KnownZero.getBitWidth() == Min.getBitWidth() &&
206 KnownZero
[all...]
/freebsd-10.0-release/contrib/llvm/include/llvm/CodeGen/
H A DFunctionLoweringInfo.h103 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo
105 KnownZero(1, 0) {}
173 const APInt &KnownZero, const APInt &KnownOne) {
175 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0)
182 LOI.KnownZero = KnownZero;
172 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
/freebsd-10.0-release/contrib/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,
41 void computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero);
45 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
/freebsd-10.0-release/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp346 /// analyze the expression and return a mask of KnownOne and KnownZero bits for
347 /// the expression (used to simplify the caller). The KnownZero/One bits may
351 APInt &KnownZero,
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);
389 KnownZero = ~KnownOne;
409 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero,
412 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
413 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero
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 DSelectionDAG.cpp1671 APInt KnownZero, KnownOne; local
1672 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth);
1673 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1674 return (KnownZero & Mask) == Mask;
1678 /// known to be either zero or one and return them in the KnownZero/KnownOne
1681 void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero, argument
1685 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything.
1695 KnownZero = ~KnownOne;
1699 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1701 assert((KnownZero
2240 APInt KnownZero, KnownOne; local
2265 APInt KnownZero, KnownOne; local
2319 APInt KnownZero, KnownOne; local
6223 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local
[all...]
H A DFunctionLoweringInfo.cpp253 if (BitWidth > LOI->KnownZero.getBitWidth()) {
255 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth);
290 DestLOI.KnownZero = Zero;
298 DestLOI.KnownZero = ~Val;
316 assert(DestLOI.KnownZero.getBitWidth() == BitWidth &&
325 DestLOI.KnownZero = Zero;
333 DestLOI.KnownZero &= ~Val;
351 DestLOI.KnownZero &= SrcLOI->KnownZero;
[all...]
H A DSelectionDAGISel.cpp534 APInt KnownZero; local
564 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne);
565 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne);
1413 APInt KnownZero, KnownOne; local
1414 CurDAG->ComputeMaskedBits(LHS, KnownZero, KnownOne);
/freebsd-10.0-release/contrib/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp368 APInt KnownZero, KnownOne; local
369 DAG.ComputeMaskedBits(Value, KnownZero, KnownOne);
370 return KnownZero.countTrailingOnes() >= 2;
1335 APInt KnownZero, KnownOne; local
1338 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1339 if ((KnownZero & Mask) == Mask) {
1358 APInt KnownZero, KnownOne; local
1361 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne);
1362 if ((KnownZero & Mask) == Mask) {
1374 APInt KnownZero, KnownOn local
1499 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
[all...]
H A DXCoreISelLowering.h170 APInt &KnownZero,
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/
H A DAMDGPUISelLowering.h73 /// either zero or one and return them in the \p KnownZero and \p KnownOne
76 APInt &KnownZero,
H A DAMDILISelLowering.cpp259 APInt &KnownZero,
265 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything
271 KnownZero,
280 assert((KnownZero & KnownOne) == 0
286 KnownZero &= KnownZero2;
257 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/freebsd-10.0-release/contrib/llvm/lib/Target/Sparc/
H A DSparcISelLowering.h56 /// KnownZero/KnownOne bitsets.
58 APInt &KnownZero,
H A DSparcISelLowering.cpp1395 APInt &KnownZero,
1400 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0);
1407 DAG.ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1);
1409 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?");
1414 KnownZero &= KnownZero2;
1394 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
/freebsd-10.0-release/contrib/llvm/lib/Transforms/Utils/
H A DLocal.cpp811 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
812 ComputeMaskedBits(V, KnownZero, KnownOne, TD);
813 unsigned TrailZ = KnownZero.countTrailingOnes();
/freebsd-10.0-release/contrib/llvm/lib/Target/ARM/
H A DARMISelLowering.h335 APInt &KnownZero,
/freebsd-10.0-release/contrib/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.h391 APInt &KnownZero,
/freebsd-10.0-release/contrib/llvm/lib/Target/X86/
H A DX86ISelLowering.h570 /// KnownZero/KnownOne bitsets.
572 APInt &KnownZero,
/freebsd-10.0-release/contrib/llvm/include/llvm/Target/
H A DTargetLowering.h1772 /// KnownZero bits for the expression (used to simplify the caller).
1773 /// The KnownZero/One bits may only be accurate for those bits in the
1776 APInt &KnownZero, APInt &KnownOne,
1781 /// KnownZero/KnownOne bitsets.
1783 APInt &KnownZero,
/freebsd-10.0-release/contrib/llvm/lib/Target/SystemZ/
H A DSystemZISelLowering.cpp1300 APInt KnownZero[2], KnownOne[2]; local
1301 DAG.ComputeMaskedBits(Ops[0], KnownZero[0], KnownOne[0]);
1302 DAG.ComputeMaskedBits(Ops[1], KnownZero[1], KnownOne[1]);
1306 uint64_t Masks[] = { KnownZero[0].getZExtValue(),
1307 KnownZero[1].getZExtValue() };

Completed in 327 milliseconds

12