/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); 87 /// returns false after analyzing the expression and setting KnownOne and 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 95 /// and KnownOne must all be the same. 103 APInt &KnownZero, APInt &KnownOne, 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); 346 APInt &KnownOne, unsigned Depth); 348 APInt &KnownOne, unsigned Depth = 0); 353 APInt &KnownOne);
|
H A D | InstCombineCompares.cpp | 171 const APInt& KnownOne, 173 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 176 "KnownZero, KnownOne and Min, Max must have equal bitwidth."); 177 APInt UnknownBits = ~(KnownZero|KnownOne); 181 Min = KnownOne; 182 Max = KnownOne|UnknownBits; 195 const APInt &KnownOne, 197 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 200 "Ty, KnownZero, KnownOne and Min, Max must have equal bitwidth."); 201 APInt UnknownBits = ~(KnownZero|KnownOne); 170 ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, const APInt& KnownOne, APInt& Min, APInt& Max) argument 194 ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, const APInt &KnownOne, APInt &Min, APInt &Max) argument [all...] |
H A D | InstCombineCalls.cpp | 324 APInt KnownOne(BitWidth, 0); 325 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne); 326 unsigned TrailingZeros = KnownOne.countTrailingZeros(); 342 APInt KnownOne(BitWidth, 0); 343 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne); 344 unsigned LeadingZeros = KnownOne.countLeadingZeros();
|
/external/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 49 APInt &KnownZero, APInt &KnownOne, 95 KnownOne |= KnownOne2 & Mask; 106 KnownOne |= LHSKnownOne & Mask; 110 if (!KnownZero.isNegative() && !KnownOne.isNegative()) { 118 KnownOne |= APInt::getSignBit(BitWidth); 125 KnownOne |= APInt::getSignBit(BitWidth); 132 APInt &KnownZero, APInt &KnownOne, 136 computeKnownBits(Op1, KnownZero, KnownOne, TD, Depth+1); 149 bool isKnownNegativeOp1 = KnownOne.isNegative(); 168 KnownOne 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 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); 536 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 537 computeKnownBits(Elem, KnownZero, KnownOne, DL);
|
H A D | ConstantFolding.cpp | 641 APInt KnownOne = KnownOne0 & KnownOne1; local 642 if ((KnownZero | KnownOne).isAllOnesValue()) { 643 return ConstantInt::get(Op0->getType(), KnownOne);
|
/external/llvm/include/llvm/CodeGen/ |
H A D | FunctionLoweringInfo.h | 104 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo 105 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0), 174 const APInt &KnownZero, const APInt &KnownOne) { 176 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) 182 LOI.KnownOne = KnownOne; 173 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 369 /// analyze the expression and return a mask of KnownOne and KnownZero bits for 375 APInt &KnownOne, 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); 411 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); 412 KnownZero = ~KnownOne; 433 KnownOne, TLO, Depth+1)) 435 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 443 if ((NewMask & ~KnownZero2 & KnownOne) 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 | 296 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); 333 DestLOI.KnownOne = Zero; 341 DestLOI.KnownOne = Val; 359 DestLOI.KnownOne.getBitWidth() == BitWidth && 368 DestLOI.KnownOne = Zero; 376 DestLOI.KnownOne &= Val; 394 DestLOI.KnownOne &= SrcLOI->KnownOne;
|
H A D | SelectionDAG.cpp | 1915 APInt KnownZero, KnownOne; local 1916 computeKnownBits(Op, KnownZero, KnownOne, Depth); 1921 /// them in the KnownZero/KnownOne bitsets. 1923 APInt &KnownOne, unsigned Depth) const { 1927 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. 1936 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); 1937 KnownZero = ~KnownOne; 1941 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1945 KnownOne &= KnownOne2; 1950 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Dept 1922 computeKnownBits(SDValue Op, APInt &KnownZero, APInt &KnownOne, unsigned Depth) const argument 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/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, 47 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
H A D | AMDGPUISelLowering.h | 66 /// KnownZero/KnownOne bitsets. 69 APInt &KnownOne,
|
H A D | AMDILISelLowering.cpp | 280 APInt &KnownOne, 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything 293 KnownOne, 301 assert((KnownZero & KnownOne) == 0 306 KnownOne &= KnownOne2; 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 | 197 /// \p KnownOne Mask of all bits that are known to be one. 199 void ComputeKnownBits(Value *V, APInt &KnownOne, APInt &KnownZero) const; 581 void ConstantOffsetExtractor::ComputeKnownBits(Value *V, APInt &KnownOne, argument 584 KnownOne = 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. 69 APInt &KnownOne,
|
H A D | AMDILISelLowering.cpp | 280 APInt &KnownOne, 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything 293 KnownOne, 301 assert((KnownZero & KnownOne) == 0 306 KnownOne &= KnownOne2; 277 computeMaskedBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 417 APInt KnownZero, KnownOne; local 418 DAG.computeKnownBits(Value, KnownZero, KnownOne); 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); 1700 APInt KnownZero, KnownOne; local 1703 DAG.computeKnownBits(N2, KnownZero, KnownOne); 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 | 187 APInt &KnownOne,
|
/external/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 667 APInt KnownZero, KnownOne; local 668 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne); 716 APInt KnownZero, KnownOne; local 717 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); 740 APInt KnownZero, KnownOne; local 741 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); 742 Mask &= ~KnownOne.getZExtValue();
|
/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 154 APInt &KnownOne,
|
H A D | AMDGPUISelLowering.cpp | 1859 APInt KnownZero, KnownOne; local 1861 DAG.computeKnownBits(Op, KnownZero, KnownOne); 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)) { 2168 APInt &KnownOne, 2177 KnownOne = Op0One & Op1One; 2183 APInt &KnownOne, 2187 KnownZero = KnownOne 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. 65 APInt &KnownOne,
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.h | 208 /// KnownZero/KnownOne bitsets. 210 APInt &KnownOne, const SelectionDAG &DAG,
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 319 APInt &KnownOne,
|