/freebsd-9.3-release/contrib/llvm/lib/Analysis/ |
H A D | ValueTracking.cpp | 48 APInt &KnownZero, APInt &KnownOne, 57 unsigned BitWidth = KnownZero.getBitWidth(); 69 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 75 unsigned BitWidth = KnownZero.getBitWidth(); 96 KnownZero |= KnownZero2 & Mask; 101 KnownZero |= APInt::getLowBitsSet(BitWidth, 107 KnownZero |= LHSKnownZero & Mask; 112 if (!KnownZero.isNegative() && !KnownOne.isNegative()) { 117 KnownZero |= APInt::getSignBit(BitWidth); 124 KnownZero | 47 ComputeMaskedBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument 133 ComputeMaskedBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout *TD, unsigned Depth) argument 195 computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero) argument 229 ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout *TD, unsigned Depth) argument 802 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 ComputeMaskedBits(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 ComputeMaskedBits(Elem, KnownZero, KnownOne, DL); 538 if (KnownZero.isAllOnesValue())
|
/freebsd-9.3-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 844 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument [all...] |
H A D | InstCombine.h | 303 void ComputeMaskedBits(Value *V, APInt &KnownZero, argument 305 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth); 332 APInt& KnownZero, APInt& KnownOne, 335 APInt& KnownZero, APInt& KnownOne, 340 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 | 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...] |
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);
|
/freebsd-9.3-release/contrib/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
|
/freebsd-9.3-release/contrib/llvm/include/llvm/Analysis/ |
H A D | ValueTracking.h | 31 /// known to be either zero or one and return them in the KnownZero/KnownOne 40 void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, 42 void computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero); 46 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
/freebsd-9.3-release/contrib/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 364 /// analyze the expression and return a mask of KnownOne and KnownZero bits for 365 /// the expression (used to simplify the caller). The KnownZero/One bits may 369 APInt &KnownZero, 380 KnownZero = KnownOne = APInt(BitWidth, 0); 385 // If not at the root, Just compute the KnownZero/KnownOne bits to 387 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); 407 KnownZero = ~KnownOne; 427 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, 430 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 431 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero 367 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument 1057 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument 1112 APInt KnownZero, KnownOne; local [all...] |
H A D | FunctionLoweringInfo.cpp | 296 if (BitWidth > LOI->KnownZero.getBitWidth()) { 298 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); 335 DestLOI.KnownZero = Zero; 343 DestLOI.KnownZero = ~Val; 361 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && 370 DestLOI.KnownZero = Zero; 378 DestLOI.KnownZero &= ~Val; 396 DestLOI.KnownZero &= SrcLOI->KnownZero; [all...] |
H A D | SelectionDAG.cpp | 1749 APInt KnownZero, KnownOne; local 1750 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); 1751 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 1752 return (KnownZero & Mask) == Mask; 1756 /// known to be either zero or one and return them in the KnownZero/KnownOne 1759 void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero, argument 1764 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. 1774 KnownZero = ~KnownOne; 1778 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1780 assert((KnownZero 2319 APInt KnownZero, KnownOne; local 2344 APInt KnownZero, KnownOne; local 2398 APInt KnownZero, KnownOne; local 6380 llvm::ComputeMaskedBits(const_cast<GlobalValue*>(GV), KnownZero, KnownOne, local [all...] |
H A D | SelectionDAGISel.cpp | 594 APInt KnownZero; local 624 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne); 625 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); 1606 APInt KnownZero, KnownOne; local 1607 CurDAG->ComputeMaskedBits(LHS, KnownZero, KnownOne);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPUISelDAGToDAG.cpp | 520 APInt KnownZero, KnownOne; local 523 if (TLI->SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) { 544 APInt KnownZero; local 546 CurDAG->ComputeMaskedBits(Op, KnownZero, KnownOne); 552 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
|
H A D | AMDGPUISelLowering.h | 106 /// either zero or one and return them in the \p KnownZero and \p KnownOne 109 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/lib/Target/XCore/ |
H A D | XCoreISelLowering.cpp | 390 APInt KnownZero, KnownOne; local 391 DAG.ComputeMaskedBits(Value, KnownZero, KnownOne); 392 return KnownZero.countTrailingOnes() >= 2; 1419 APInt KnownZero, KnownOne; local 1422 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); 1423 if ((KnownZero & Mask) == Mask) { 1442 APInt KnownZero, KnownOne; local 1445 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); 1446 if ((KnownZero & Mask) == Mask) { 1458 APInt KnownZero, KnownOn local 1583 computeMaskedBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
H A D | XCoreISelLowering.h | 178 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 668 APInt KnownZero, KnownOne; local 669 CurDAG->ComputeMaskedBits(Op.getOperand(0), KnownZero, KnownOne); 670 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) 718 APInt KnownZero, KnownOne; local 719 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne); 720 Mask |= KnownZero.getZExtValue(); 743 APInt KnownZero, KnownOne; local 744 CurDAG->ComputeMaskedBits(Input, KnownZero, KnownOne);
|
/freebsd-9.3-release/contrib/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.h | 62 /// KnownZero/KnownOne bitsets. 64 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 928 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 929 ComputeMaskedBits(V, KnownZero, KnownOne, DL); 930 unsigned TrailZ = KnownZero.countTrailingOnes();
|
/freebsd-9.3-release/contrib/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.h | 326 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.h | 392 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.h | 620 /// KnownZero/KnownOne bitsets. 622 APInt &KnownZero,
|
/freebsd-9.3-release/contrib/llvm/include/llvm/Target/ |
H A D | TargetLowering.h | 1808 /// expression and return a mask of KnownOne and KnownZero bits for the 1809 /// expression (used to simplify the caller). The KnownZero/One bits may only 1812 APInt &KnownZero, APInt &KnownOne, 1816 /// or one and return them in the KnownZero/KnownOne bitsets. 1818 APInt &KnownZero,
|