/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/Transforms/InstCombine/ |
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 | 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 | 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...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/radeon/ |
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 | 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/Analysis/ |
H A D | ConstantFolding.cpp | 641 APInt KnownOne = KnownOne0 & KnownOne1; local 642 if ((KnownZero | KnownOne).isAllOnesValue()) { 643 return ConstantInt::get(Op0->getType(), KnownOne);
|
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...] |
/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();
|
H A D | SystemZISelLowering.cpp | 2138 APInt KnownZero[2], KnownOne[2]; local 2139 DAG.computeKnownBits(Ops[0], KnownZero[0], KnownOne[0]); 2140 DAG.computeKnownBits(Ops[1], KnownZero[1], KnownOne[1]);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGISel.cpp | 614 APInt KnownOne; local 643 CurDAG->computeKnownBits(Src, KnownZero, KnownOne); 644 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); 1655 APInt KnownZero, KnownOne; local 1656 CurDAG->computeKnownBits(LHS, KnownZero, KnownOne); 1659 if ((NeededMask & KnownOne) == NeededMask)
|
H A D | LegalizeIntegerTypes.cpp | 1423 APInt KnownZero, KnownOne; local 1424 DAG.computeKnownBits(N->getOperand(1), KnownZero, KnownOne); 1427 if (((KnownZero|KnownOne) & HighBitMask) == 0) 1436 if (KnownOne.intersects(HighBitMask)) {
|
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 | 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...] |
H A D | DAGCombiner.cpp | 791 APInt KnownZero, KnownOne; local 792 if (!TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) 4366 APInt KnownZero, KnownOne; local 4367 DAG.computeKnownBits(N0.getOperand(0), KnownZero, KnownOne); 4369 // If any of the input bits are KnownOne, then the input couldn't be all 4371 if (KnownOne.getBoolValue()) return DAG.getConstant(0, VT); 5163 APInt KnownOne; local 5166 DAG.computeKnownBits(Op, KnownZero, KnownOne); 5187 DAG.computeKnownBits(Op, KnownZero, KnownOne);
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelDAGToDAG.cpp | 1788 APInt KnownZero, KnownOne; local 1789 CurDAG->computeKnownBits(Op, KnownZero, KnownOne); 1896 APInt KnownZero, KnownOne; local 1897 CurDAG->computeKnownBits(OrOpd1Val, KnownZero, KnownOne);
|
H A D | AArch64ISelLowering.cpp | 563 /// KnownZero/KnownOne bitsets. 565 const SDValue Op, APInt &KnownZero, APInt &KnownOne, 572 DAG.computeKnownBits(Op->getOperand(0), KnownZero, KnownOne, Depth + 1); 575 KnownOne &= KnownOne2; 585 unsigned BitWidth = KnownOne.getBitWidth(); 564 computeKnownBitsForTargetNode( const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/R600/ |
H A D | SIISelLowering.cpp | 1160 APInt KnownZero, KnownOne; local 1165 TLI.SimplifyDemandedBits(Src, Demanded, KnownZero, KnownOne, TLO)) {
|
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/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...] |
/external/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.cpp | 1714 APInt &KnownOne, 1718 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); 1725 DAG.computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1729 KnownOne &= KnownOne2; 1711 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/X86/ |
H A D | X86ISelDAGToDAG.cpp | 936 APInt KnownZero, KnownOne; local 937 DAG.computeKnownBits(X, KnownZero, KnownOne);
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 9605 APInt KnownZero, KnownOne; local 9606 DAG.computeKnownBits(SDValue(N,0), KnownZero, KnownOne); local 10195 APInt &KnownOne, 10198 unsigned BitWidth = KnownOne.getBitWidth(); 10199 KnownZero = KnownOne = APInt(BitWidth, 0); 10213 DAG.computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, Depth+1); 10214 if (KnownZero == 0 && KnownOne == 0) return; 10219 KnownOne &= KnownOneRHS; 10193 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.cpp | 8495 APInt &KnownOne, 8498 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); 8493 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|