/external/llvm/lib/Transforms/Scalar/ |
H A D | BDCE.cpp | 63 APInt &KnownZero, APInt &KnownOne, 87 APInt &KnownZero, APInt &KnownOne, 100 KnownZero = APInt(BitWidth, 0); 102 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0, 215 AB &= ~(KnownZero & ~KnownZero2); 322 APInt KnownZero, KnownOne, KnownZero2, KnownOne2; local 339 KnownZero, KnownOne, 84 determineLiveOperandBits(const Instruction *UserI, const Instruction *I, unsigned OperandNo, const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2) argument
|
/external/llvm/include/llvm/CodeGen/ |
H A D | FunctionLoweringInfo.h | 111 APInt KnownOne, KnownZero; member in struct:llvm::FunctionLoweringInfo::LiveOutInfo 113 KnownZero(1, 0) {} 184 const APInt &KnownZero, const APInt &KnownOne) { 186 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) 193 LOI.KnownZero = KnownZero; 183 AddLiveOutRegInfo(unsigned Reg, unsigned NumSignBits, const APInt &KnownZero, const APInt &KnownOne) argument
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineInternal.h | 471 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument 473 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, 485 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, argument 487 return llvm::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, 515 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 518 bool SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, 523 APInt DemandedMask, APInt &KnownZero,
|
H A D | InstCombineSimplifyDemanded.cpp | 69 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 72 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, 84 APInt &KnownZero, APInt &KnownOne, 87 SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, KnownOne, Depth, 102 /// to be one in the expression. KnownZero contains all the bits that are known 105 /// the expression. KnownOne and KnownZero always follow the invariant that 106 /// KnownOne & KnownZero == 0. That is, a bit can't be both 1 and 0. Note that 107 /// the bits in KnownOne and KnownZero may only be accurate for those bits set 108 /// in DemandedMask. Note also that the bitwidth of V, DemandedMask, KnownZero 117 APInt &KnownZero, APIn 83 SimplifyDemandedBits(Use &U, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth) argument 116 SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne, unsigned Depth, Instruction *CxtI) argument 888 SimplifyShrShlDemandedBits(Instruction *Shr, Instruction *Shl, APInt DemandedMask, APInt &KnownZero, APInt &KnownOne) argument [all...] |
H A D | InstCombineCasts.cpp | 550 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 551 computeKnownBits(ICI->getOperand(0), KnownZero, KnownOne, 0, &CI); 553 APInt KnownZeroMask(~KnownZero); 926 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); 927 computeKnownBits(Op0, KnownZero, KnownOne, 0, &CI); 929 APInt KnownZeroMask(~KnownZero); 1063 bool KnownZero, KnownOne; local 1064 ComputeSignBit(Src, KnownZero, KnownOne, 0, &CI); 1065 if (KnownZero) {
|
H A D | InstCombineCompares.cpp | 180 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, argument 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 184 KnownZero.getBitWidth() == Min.getBitWidth() && 185 KnownZero.getBitWidth() == Max.getBitWidth() && 186 "KnownZero, KnownOne and Min, Max must have equal bitwidth."); 187 APInt UnknownBits = ~(KnownZero|KnownOne); 204 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, argument 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && 208 KnownZero.getBitWidth() == Min.getBitWidth() && 209 KnownZero [all...] |
/external/mesa3d/src/gallium/drivers/radeon/ |
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/Analysis/ |
H A D | ConstantFolding.cpp | 644 APInt KnownZero = KnownZero0 | KnownZero1; local 646 if ((KnownZero | KnownOne).isAllOnesValue()) {
|
H A D | ValueTracking.cpp | 127 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 131 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, argument 135 ::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, 139 static void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, 143 void llvm::ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, argument 147 ::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, 192 APInt &KnownZero, APInt &KnownOne, 202 unsigned BitWidth = KnownZero.getBitWidth(); 214 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); 220 unsigned BitWidth = KnownZero 191 computeKnownBitsAddSub(bool Add, Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout &DL, unsigned Depth, const Query &Q) argument 271 computeKnownBitsMul(Value *Op0, Value *Op1, bool NSW, APInt &KnownZero, APInt &KnownOne, APInt &KnownZero2, APInt &KnownOne2, const DataLayout &DL, unsigned Depth, const Query &Q) argument 332 computeKnownBitsFromRangeMetadata(const MDNode &Ranges, APInt &KnownZero) argument 504 computeKnownBitsFromTrueCondition(Value *V, ICmpInst *Cmp, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument 573 computeKnownBitsFromDominatingCondition(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument 674 computeKnownBitsFromAssume(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument 937 computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument 1515 ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, const DataLayout &DL, unsigned Depth, const Query &Q) argument [all...] |
/external/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelDAGToDAG.cpp | 669 APInt KnownZero, KnownOne; local 670 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne); 671 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) 718 APInt KnownZero, KnownOne; local 719 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); 720 Mask |= KnownZero.getZExtValue(); 742 APInt KnownZero, KnownOne; local 743 CurDAG->computeKnownBits(Input, KnownZero, KnownOne);
|
H A D | SystemZISelLowering.cpp | 2367 APInt KnownZero[2], KnownOne[2]; local 2368 DAG.computeKnownBits(Ops[0], KnownZero[0], KnownOne[0]); 2369 DAG.computeKnownBits(Ops[1], KnownZero[1], KnownOne[1]); 2373 uint64_t Masks[] = { KnownZero[0].getZExtValue(), 2374 KnownZero[1].getZExtValue() }; 2426 APInt KnownZero, KnownOne; local 2427 DAG.computeKnownBits(Op, KnownZero, KnownOne); 2428 unsigned NumSignificantBits = (~KnownZero).getActiveBits();
|
/external/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelDAGToDAG.cpp | 1845 APInt KnownZero, KnownOne; local 1846 CurDAG->computeKnownBits(Op, KnownZero, KnownOne); 1850 uint64_t NonZeroBits = (~KnownZero).getZExtValue(); 1856 assert((~APInt(BitWidth, AndImm) & ~KnownZero) == 0); 1953 APInt KnownZero, KnownOne; local 1954 CurDAG->computeKnownBits(OrOpd1Val, KnownZero, KnownOne); 1959 APInt::getBitsSet(KnownZero.getBitWidth(), DstLSB, DstLSB + Width); 1961 if ((BitsToBeInserted & ~KnownZero) != 0)
|
H A D | AArch64ISelLowering.cpp | 708 /// KnownZero/KnownOne bitsets. 710 const SDValue Op, APInt &KnownZero, APInt &KnownOne, 717 DAG.computeKnownBits(Op->getOperand(0), KnownZero, KnownOne, Depth + 1); 719 KnownZero &= KnownZero2; 733 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - MemBits); 752 unsigned BitWidth = KnownZero.getBitWidth(); 756 KnownZero |= Mask; 760 KnownZero |= Mask; 709 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 | 1639 APInt KnownZero, KnownOne; local 1644 TLI.SimplifyDemandedBits(Src, Demanded, KnownZero, KnownOne, TLO)) {
|
H A D | AMDGPUISelLowering.cpp | 2277 APInt KnownZero, KnownOne; local 2279 DAG.computeKnownBits(Op, KnownZero, KnownOne); 2281 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; 2301 APInt KnownZero, KnownOne; local 2303 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) 2511 APInt KnownZero, KnownOne; local 2517 KnownZero, KnownOne, TLO)) { 2713 APInt &KnownZero, 2722 KnownZero = Op0Zero & Op1Zero; 2728 APInt &KnownZero, 2711 computeKnownBitsForMinMax(const SDValue Op0, const SDValue Op1, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) argument 2726 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 | 420 APInt KnownZero, KnownOne; local 421 DAG.computeKnownBits(Value, KnownZero, KnownOne); 422 return KnownZero.countTrailingOnes() >= 2; 1630 APInt KnownZero, KnownOne; local 1635 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, 1647 APInt KnownZero, KnownOne; local 1652 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, 1684 APInt KnownZero, KnownOne; local 1687 DAG.computeKnownBits(N2, KnownZero, KnownOne); 1688 if ((KnownZero 1707 APInt KnownZero, KnownOne; local 1723 APInt KnownZero, KnownOne; local 1851 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGISel.cpp | 622 APInt KnownZero; local 652 CurDAG->computeKnownBits(Src, KnownZero, KnownOne); 653 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); 1772 APInt KnownZero, KnownOne; local 1773 CurDAG->computeKnownBits(LHS, KnownZero, KnownOne);
|
H A D | TargetLowering.cpp | 372 /// analyze the expression and return a mask of KnownOne and KnownZero bits for 373 /// the expression (used to simplify the caller). The KnownZero/One bits may 377 APInt &KnownZero, 388 KnownZero = KnownOne = APInt(BitWidth, 0); 393 // If not at the root, Just compute the KnownZero/KnownOne bits to 395 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); 415 KnownZero = ~KnownOne; 435 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, 438 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); 439 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero 375 SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask, APInt &KnownZero, APInt &KnownOne, TargetLoweringOpt &TLO, unsigned Depth) const argument 1097 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument 1153 APInt KnownZero, KnownOne; local [all...] |
H A D | LegalizeIntegerTypes.cpp | 1455 APInt KnownZero, KnownOne; local 1456 DAG.computeKnownBits(N->getOperand(1), KnownZero, KnownOne); 1459 if (((KnownZero|KnownOne) & HighBitMask) == 0) 1493 if ((KnownZero & HighBitMask) == HighBitMask) {
|
H A D | SelectionDAG.cpp | 1957 APInt KnownZero, KnownOne; local 1958 computeKnownBits(Op, KnownZero, KnownOne, Depth); 1959 return (KnownZero & Mask) == Mask; 1963 /// them in the KnownZero/KnownOne bitsets. 1964 void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, argument 1968 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. 1978 KnownZero = ~KnownOne; 1982 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1988 KnownZero |= KnownZero2; 1991 computeKnownBits(Op.getOperand(1), KnownZero, KnownOn 2536 APInt KnownZero, KnownOne; local 2561 APInt KnownZero, KnownOne; local 2630 APInt KnownZero, KnownOne; local 6703 llvm::computeKnownBits(const_cast<GlobalValue *>(GV), KnownZero, KnownOne, local [all...] |
H A D | DAGCombiner.cpp | 869 APInt KnownZero, KnownOne; local 870 if (!TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) 4573 APInt KnownZero, KnownOne; local 4574 DAG.computeKnownBits(N0.getOperand(0), KnownZero, KnownOne); 4582 APInt UnknownBits = ~KnownZero; 5753 // the value being truncated in Op and which of Op's bits are zero in KnownZero. 5754 // This function computes KnownZero to avoid a duplicated call to 5757 APInt &KnownZero) { 5761 DAG.computeKnownBits(Op, KnownZero, KnownOne); 5782 DAG.computeKnownBits(Op, KnownZero, KnownOn 5756 isTruncateOf(SelectionDAG &DAG, SDValue N, SDValue &Op, APInt &KnownZero) argument 5809 APInt KnownZero; local [all...] |
/external/llvm/lib/Target/Sparc/ |
H A D | SparcISelLowering.cpp | 1716 APInt &KnownZero, 1721 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); 1728 DAG.computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); 1733 KnownZero &= KnownZero2; 1714 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 | 943 APInt KnownZero, KnownOne; local 944 DAG.computeKnownBits(X, KnownZero, KnownOne); 945 if (MaskedHighBits != KnownZero) return true;
|
/external/llvm/lib/Target/ARM/ |
H A D | ARMISelLowering.cpp | 9777 APInt KnownZero, KnownOne; local 9778 DAG.computeKnownBits(SDValue(N,0), KnownZero, KnownOne); local 9780 if (KnownZero == 0xfffffffe) 9783 else if (KnownZero == 0xffffff00) 9786 else if (KnownZero == 0xffff0000) 10390 APInt &KnownZero, 10395 KnownZero = KnownOne = APInt(BitWidth, 0); 10405 KnownZero |= APInt::getHighBitsSet(BitWidth, BitWidth - 1); 10409 DAG.computeKnownBits(Op.getOperand(0), KnownZero, KnownOne, Depth+1); 10410 if (KnownZero 10389 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument [all...] |
/external/llvm/lib/Target/PowerPC/ |
H A D | PPCISelLowering.cpp | 10433 APInt &KnownZero, 10437 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); 10443 KnownZero = 0xFFFF0000; 10465 KnownZero = ~1U; // All bits but the low one are known to be zero. 10432 computeKnownBitsForTargetNode(const SDValue Op, APInt &KnownZero, APInt &KnownOne, const SelectionDAG &DAG, unsigned Depth) const argument
|