/external/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();
|
/external/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 | 302 void ComputeMaskedBits(Value *V, APInt &KnownZero, argument 304 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth); 331 APInt& KnownZero, APInt& KnownOne, 334 APInt& KnownZero, APInt& KnownOne, 339 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); 928 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 929 ComputeMaskedBits(Op0, KnownZero, KnownOne); 931 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...] |
/external/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
|
/external/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,
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 348 /// analyze the expression and return a mask of KnownOne and KnownZero bits for 349 /// the expression (used to simplify the caller). The KnownZero/One bits may 353 APInt &KnownZero, 364 KnownZero = KnownOne = APInt(BitWidth, 0); 369 // If not at the root, Just compute the KnownZero/KnownOne bits to 371 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); 391 KnownZero = ~KnownOne; 411 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, 414 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 415 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero 351 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument 1005 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument 1060 APInt KnownZero, KnownOne; local [all...] |
H A D | FunctionLoweringInfo.cpp | 257 if (BitWidth > LOI->KnownZero.getBitWidth()) { 259 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 296 DestLOI.KnownZero = Zero; 304 DestLOI.KnownZero = ~Val; 322 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 331 DestLOI.KnownZero = Zero; 339 DestLOI.KnownZero &= ~Val; 357 DestLOI.KnownZero &= SrcLOI->KnownZero; [all...] |
H A D | SelectionDAG.cpp | 1670 APInt KnownZero, KnownOne; local 1671 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); 1672 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 1673 return (KnownZero & Mask) == Mask; 1677 /// known to be either zero or one and return them in the KnownZero/KnownOne 1680 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 2241 APInt KnownZero, KnownOne; local 2266 APInt KnownZero, KnownOne; local 2320 APInt KnownZero, KnownOne; local 6240 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local [all...] |
/external/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 612 APInt KnownZero, KnownOne; local 613 CurDAG->ComputeMaskedBits(Op.getOperand(0), KnownZero, KnownOne); 614 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) 672 APInt KnownZero, KnownOne; local 673 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne); 674 Mask |= KnownZero.getZExtValue(); 697 APInt KnownZero, KnownOne; local 698 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne);
|
/external/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; 1391 APInt KnownZero, KnownOne; local 1394 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); 1395 if ((KnownZero & Mask) == Mask) { 1414 APInt KnownZero, KnownOne; local 1417 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); 1418 if ((KnownZero & Mask) == Mask) { 1430 APInt KnownZero, KnownOn local 1555 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
H A D | XCoreISelLowering.h | 170 APInt &KnownZero,
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
H A D | AMDGPUISelLowering.h | 66 /// KnownZero/KnownOne bitsets. 68 APInt &KnownZero,
|
H A D | AMDILISelLowering.cpp | 279 APInt &KnownZero, 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything 292 KnownZero, 301 assert((KnownZero & KnownOne) == 0 307 KnownZero &= KnownZero2; 277 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUISelLowering.h | 80 /// either zero or one and return them in the \p KnownZero and \p KnownOne 83 APInt &KnownZero,
|
H A D | AMDGPUISelDAGToDAG.cpp | 765 APInt KnownZero, KnownOne; local 768 if (TLI->SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) { 789 APInt KnownZero; local 791 CurDAG->ComputeMaskedBits(Op, KnownZero, KnownOne); 797 if ((KnownZero & APInt(KnownZero.getBitWidth(), 0xFF000000)) == 0xFF000000 ||
|
H A D | AMDILISelLowering.cpp | 254 APInt &KnownZero, 260 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything 266 KnownZero, 275 assert((KnownZero & KnownOne) == 0 281 KnownZero &= KnownZero2; 252 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.h | 56 /// KnownZero/KnownOne bitsets. 58 APInt &KnownZero,
|
H A D | SparcISelLowering.cpp | 1409 APInt &KnownZero, 1414 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); 1421 DAG.ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1423 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 1428 KnownZero &= KnownZero2; 1407 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/mesa3d/src/gallium/drivers/radeon/ |
H A D | AMDGPUISelLowering.h | 66 /// KnownZero/KnownOne bitsets. 68 APInt &KnownZero,
|
H A D | AMDILISelLowering.cpp | 279 APInt &KnownZero, 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything 292 KnownZero, 301 assert((KnownZero & KnownOne) == 0 307 KnownZero &= KnownZero2; 277 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 936 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 937 ComputeMaskedBits(V, KnownZero, KnownOne, DL); 938 unsigned TrailZ = KnownZero.countTrailingOnes();
|