/freebsd-10.0-release/contrib/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 47 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 D | Lint.cpp | 512 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 D | InstCombineSimplifyDemanded.cpp | 55 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 D | InstCombine.h | 301 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 D | InstCombineCalls.cpp | 321 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 D | InstCombineCasts.cpp | 552 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 D | InstCombineCompares.cpp | 177 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 D | FunctionLoweringInfo.h | 103 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 D | ValueTracking.h | 30 /// 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 D | TargetLowering.cpp | 346 /// 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 D | SelectionDAG.cpp | 1671 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 D | FunctionLoweringInfo.cpp | 253 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 D | SelectionDAGISel.cpp | 534 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 D | XCoreISelLowering.cpp | 368 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 D | XCoreISelLowering.h | 170 APInt &KnownZero,
|
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPUISelLowering.h | 73 /// either zero or one and return them in the \p KnownZero and \p KnownOne 76 APInt &KnownZero,
|
H A D | AMDILISelLowering.cpp | 259 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 D | SparcISelLowering.h | 56 /// KnownZero/KnownOne bitsets. 58 APInt &KnownZero,
|
H A D | SparcISelLowering.cpp | 1395 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 D | Local.cpp | 811 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 D | ARMISelLowering.h | 335 APInt &KnownZero,
|
/freebsd-10.0-release/contrib/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.h | 391 APInt &KnownZero,
|
/freebsd-10.0-release/contrib/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.h | 570 /// KnownZero/KnownOne bitsets. 572 APInt &KnownZero,
|
/freebsd-10.0-release/contrib/llvm/include/llvm/Target/ |
H A D | TargetLowering.h | 1772 /// 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 D | SystemZISelLowering.cpp | 1300 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() };
|