/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineSimplifyDemanded.cpp | 56 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 60 KnownZero, KnownOne, 0); 71 APInt &KnownZero, APInt &KnownOne, 74 KnownZero, KnownOne, Depth); 88 /// to be one in the expression. KnownZero contains all the bits that are known 91 /// the expression. KnownOne and KnownZero always follow the invariant that 92 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that 93 /// the bits in KnownOne and KnownZero may only be accurate for those bits set 94 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero 103 APInt &KnownZero, APIn 70 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument 102 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 | 318 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument 320 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth); 345 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 347 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, 352 APInt DemandedMask, APInt &KnownZero,
|
H A D | InstCombineCalls.cpp | 323 APInt KnownZero(BitWidth, 0); 325 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne); 328 if ((Mask & KnownZero) == Mask) 341 APInt KnownZero(BitWidth, 0); 343 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne); 346 if ((Mask & KnownZero) == Mask)
|
H A D | InstCombineCompares.cpp | 170 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, argument 173 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 174 KnownZero.getBitWidth() == Min.getBitWidth() && 175 KnownZero.getBitWidth() == Max.getBitWidth() && 176 "KnownZero, KnownOne and Min, Max must have equal bitwidth."); 177 APInt UnknownBits = ~(KnownZero|KnownOne); 194 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, argument 197 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 198 KnownZero.getBitWidth() == Min.getBitWidth() && 199 KnownZero [all...] |
H A D | InstCombineCasts.cpp | 555 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 556 computeKnownBits(ICI->getOperand(0), KnownZero, KnownOne); 558 APInt KnownZeroMask(~KnownZero); 923 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 924 computeKnownBits(Op0, KnownZero, KnownOne); 926 APInt KnownZeroMask(~KnownZero);
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 49 APInt &KnownZero, APInt &KnownOne, 58 unsigned BitWidth = KnownZero.getBitWidth(); 70 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 76 unsigned BitWidth = KnownZero.getBitWidth(); 94 KnownZero |= KnownZero2 & Mask; 99 KnownZero |= APInt::getLowBitsSet(BitWidth, 105 KnownZero |= LHSKnownZero & Mask; 110 if (!KnownZero.isNegative() && !KnownOne.isNegative()) { 115 KnownZero |= APInt::getSignBit(BitWidth); 122 KnownZero | 48 computeKnownBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument 131 computeKnownBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument 191 computeKnownBitsFromRangeMetadata(const MDNode &Ranges, APInt &KnownZero) argument 227 computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout *TD, unsigned Depth) argument 801 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const DataLayout *TD, unsigned Depth) argument [all...] |
H A D | Lint.cpp | 515 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 516 computeKnownBits(V, KnownZero, KnownOne, DL); 517 return KnownZero.isAllOnesValue(); 528 // For a vector, KnownZero will only be true if all values are zero, so check 536 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 537 computeKnownBits(Elem, KnownZero, KnownOne, DL); 538 if (KnownZero.isAllOnesValue())
|
/external/llvm/include/llvm/CodeGen/ |
H A D | FunctionLoweringInfo.h | 104 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo 106 KnownZero(1, 0) {} 174 const APInt &KnownZero, const APInt &KnownOne) { 176 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) 183 LOI.KnownZero = KnownZero; 173 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
|
/external/llvm/include/llvm/Analysis/ |
H A D | ValueTracking.h | 31 /// them in the KnownZero/KnownOne bit sets. 38 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 41 /// \p KnownZero the set of bits that are known to be zero 43 APInt &KnownZero); 47 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 369 /// analyze the expression and return a mask of KnownOne and KnownZero bits for 370 /// the expression (used to simplify the caller). The KnownZero/One bits may 374 APInt &KnownZero, 385 KnownZero = KnownOne = APInt(BitWidth, 0); 390 // If not at the root, Just compute the KnownZero/KnownOne bits to 392 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); 412 KnownZero = ~KnownOne; 432 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, 435 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 436 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero 372 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument 1087 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument 1143 APInt KnownZero, KnownOne; local [all...] |
H A D | FunctionLoweringInfo.cpp | 293 if (BitWidth > LOI->KnownZero.getBitWidth()) { 295 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 332 DestLOI.KnownZero = Zero; 340 DestLOI.KnownZero = ~Val; 358 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 367 DestLOI.KnownZero = Zero; 375 DestLOI.KnownZero &= ~Val; 393 DestLOI.KnownZero &= SrcLOI->KnownZero; [all...] |
H A D | SelectionDAG.cpp | 1915 APInt KnownZero, KnownOne; local 1916 computeKnownBits(Op, KnownZero, KnownOne, Depth); 1917 return (KnownZero & Mask) == Mask; 1921 /// them in the KnownZero/KnownOne bitsets. 1922 void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, argument 1927 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. 1937 KnownZero = ~KnownOne; 1941 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1947 KnownZero |= KnownZero2; 1950 computeKnownBits(Op.getOperand(1), KnownZero, KnownOn 2481 APInt KnownZero, KnownOne; local 2506 APInt KnownZero, KnownOne; local 2560 APInt KnownZero, KnownOne; local 6529 llvm::computeKnownBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local [all...] |
/external/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 417 APInt KnownZero, KnownOne; local 418 DAG.computeKnownBits(Value, KnownZero, KnownOne); 419 return KnownZero.countTrailingOnes() >= 2; 1623 APInt KnownZero, KnownOne; local 1628 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, 1640 APInt KnownZero, KnownOne; local 1645 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, 1677 APInt KnownZero, KnownOne; local 1680 DAG.computeKnownBits(N2, KnownZero, KnownOne); 1681 if ((KnownZero 1700 APInt KnownZero, KnownOne; local 1716 APInt KnownZero, KnownOne; local 1841 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
H A D | XCoreISelLowering.h | 186 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/Transforms/Scalar/ |
H A D | SeparateConstOffsetFromGEP.cpp | 198 /// \p KnownZero Mask of all bits that are known to be zero. 199 void ComputeKnownBits(Value *V, APInt &KnownOne, APInt &KnownZero) const; 582 APInt &KnownZero) const { 585 KnownZero = APInt(IT->getBitWidth(), 0); 586 llvm::computeKnownBits(V, KnownZero, KnownOne, DL, 0);
|
/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/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 667 APInt KnownZero, KnownOne; local 668 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne); 669 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) 716 APInt KnownZero, KnownOne; local 717 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); 718 Mask |= KnownZero.getZExtValue(); 740 APInt KnownZero, KnownOne; local 741 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
|
/external/llvm/lib/Target/R600/ |
H A D | AMDGPUISelLowering.h | 150 /// either zero or one and return them in the \p KnownZero and \p KnownOne 153 APInt &KnownZero,
|
H A D | AMDGPUISelLowering.cpp | 1859 APInt KnownZero, KnownOne; local 1861 DAG.computeKnownBits(Op, KnownZero, KnownOne); 1863 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; 1883 APInt KnownZero, KnownOne; local 1885 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) 2019 APInt KnownZero, KnownOne; local 2024 TLI.SimplifyDemandedBits(BitsFrom, Demanded, KnownZero, KnownOne, TLO)) { 2167 APInt &KnownZero, 2176 KnownZero = Op0Zero & Op1Zero; 2182 APInt &KnownZero, 2165 computeKnownBitsForMinMax(const SDValue Op0, const SDValue Op1, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) argument 2180 computeKnownBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
/external/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.h | 62 /// KnownZero/KnownOne bitsets. 64 APInt &KnownZero,
|
/external/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 934 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 935 computeKnownBits(V, KnownZero, KnownOne, DL); 936 unsigned TrailZ = KnownZero.countTrailingOnes();
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.h | 208 /// KnownZero/KnownOne bitsets. 209 void computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero,
|