/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 47 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBitsAddSub() argument 56 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() 68 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in ComputeMaskedBitsAddSub() 74 unsigned BitWidth = KnownZero.getBitWidth(); in ComputeMaskedBitsAddSub() 95 KnownZero |= KnownZero2 & Mask; in ComputeMaskedBitsAddSub() 100 KnownZero |= APInt::getLowBitsSet(BitWidth, in ComputeMaskedBitsAddSub() 106 KnownZero |= LHSKnownZero & Mask; in ComputeMaskedBitsAddSub() 111 if (!KnownZero.isNegative() && !KnownOne.isNegative()) { in ComputeMaskedBitsAddSub() 116 KnownZero |= APInt::getSignBit(BitWidth); in ComputeMaskedBitsAddSub() 123 KnownZero |= APInt::getSignBit(BitWidth); in ComputeMaskedBitsAddSub() [all …]
|
D | Lint.cpp | 512 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 513 ComputeMaskedBits(V, KnownZero, KnownOne, TD); in isZero() 514 return KnownZero.isAllOnesValue(); in isZero()
|
D | ConstantFolding.cpp | 567 APInt KnownZero = KnownZero0 | KnownZero1; in SymbolicallyEvaluateBinop() local 569 if ((KnownZero | KnownOne).isAllOnesValue()) { in SymbolicallyEvaluateBinop()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() local 59 KnownZero, KnownOne, 0); in SimplifyDemandedInstructionBits() 70 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() argument 73 KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 102 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument 113 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 120 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 126 KnownZero = DemandedMask; in SimplifyDemandedUseBits() 130 KnownZero.clearAllBits(); in SimplifyDemandedUseBits() 146 ComputeMaskedBits(V, KnownZero, KnownOne, Depth); in SimplifyDemandedUseBits() [all …]
|
D | InstCombine.h | 300 void ComputeMaskedBits(Value *V, APInt &KnownZero, 302 return llvm::ComputeMaskedBits(V, KnownZero, KnownOne, TD, Depth); 329 APInt& KnownZero, APInt& KnownOne, 332 APInt& KnownZero, APInt& KnownOne, 337 APInt DemandedMask, APInt &KnownZero,
|
D | InstCombineCompares.cpp | 152 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, in ComputeSignedMinMaxValuesFromKnownBits() argument 155 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 156 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 157 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 159 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 176 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeUnsignedMinMaxValuesFromKnownBits() argument 179 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 180 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 181 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 183 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() [all …]
|
D | InstCombineCalls.cpp | 321 APInt KnownZero(BitWidth, 0); in visitCallInst() local 323 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne); in visitCallInst() 326 if ((Mask & KnownZero) == Mask) in visitCallInst() 339 APInt KnownZero(BitWidth, 0); in visitCallInst() local 341 ComputeMaskedBits(II->getArgOperand(0), KnownZero, KnownOne); in visitCallInst() 344 if ((Mask & KnownZero) == Mask) in visitCallInst()
|
D | InstCombineCasts.cpp | 552 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformZExtICmp() local 553 ComputeMaskedBits(ICI->getOperand(0), KnownZero, KnownOne); in transformZExtICmp() 555 APInt KnownZeroMask(~KnownZero); in transformZExtICmp() 918 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformSExtICmp() local 919 ComputeMaskedBits(Op0, KnownZero, KnownOne); in transformSExtICmp() 921 APInt KnownZeroMask(~KnownZero); in transformSExtICmp()
|
/external/llvm/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 103 APInt KnownOne, KnownZero; member 105 KnownZero(1, 0) {} in LiveOutInfo() 168 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 170 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 177 LOI.KnownZero = KnownZero; in AddLiveOutRegInfo()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 351 APInt &KnownZero, in SimplifyDemandedBits() argument 362 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 369 TLO.DAG.ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 389 KnownZero = ~KnownOne; in SimplifyDemandedBits() 409 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits() 412 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 413 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits() 422 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits() 425 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits() 437 KnownZero |= KnownZero2; in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 253 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 255 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 290 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 298 DestLOI.KnownZero = ~Val; in ComputePHILiveOutRegInfo() 316 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 325 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 333 DestLOI.KnownZero &= ~Val; in ComputePHILiveOutRegInfo() 351 DestLOI.KnownZero &= SrcLOI->KnownZero; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 1671 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 1672 ComputeMaskedBits(Op, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 1673 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in MaskedValueIsZero() 1674 return (KnownZero & Mask) == Mask; in MaskedValueIsZero() 1681 void SelectionDAG::ComputeMaskedBits(SDValue Op, APInt &KnownZero, in ComputeMaskedBits() argument 1685 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in ComputeMaskedBits() 1695 KnownZero = ~KnownOne; in ComputeMaskedBits() 1699 ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in ComputeMaskedBits() 1701 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits() 1707 KnownZero |= KnownZero2; in ComputeMaskedBits() [all …]
|
D | SelectionDAGISel.cpp | 530 APInt KnownZero; in ComputeLiveOutVRegInfo() local 560 CurDAG->ComputeMaskedBits(Src, KnownZero, KnownOne); in ComputeLiveOutVRegInfo() 561 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); in ComputeLiveOutVRegInfo() 1475 APInt KnownZero, KnownOne; in CheckOrMask() local 1476 CurDAG->ComputeMaskedBits(LHS, KnownZero, KnownOne); in CheckOrMask()
|
/external/llvm/include/llvm/Analysis/ |
D | ValueTracking.h | 39 void ComputeMaskedBits(Value *V, APInt &KnownZero, APInt &KnownOne, 41 void computeMaskedBitsLoad(const MDNode &Ranges, APInt &KnownZero); 45 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1383 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1386 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); in PerformDAGCombine() 1387 if ((KnownZero & Mask) == Mask) { in PerformDAGCombine() 1406 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1409 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); in PerformDAGCombine() 1410 if ((KnownZero & Mask) == Mask) { in PerformDAGCombine() 1422 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1425 DAG.ComputeMaskedBits(N2, KnownZero, KnownOne); in PerformDAGCombine() 1426 if ((KnownZero & Mask) == Mask) { in PerformDAGCombine() 1548 APInt &KnownZero, in computeMaskedBitsForTargetNode() argument [all …]
|
D | XCoreISelLowering.h | 167 APInt &KnownZero,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.h | 53 APInt &KnownZero,
|
D | SparcISelLowering.cpp | 839 APInt &KnownZero, in computeMaskedBitsForTargetNode() argument 844 KnownZero = KnownOne = APInt(KnownZero.getBitWidth(), 0); in computeMaskedBitsForTargetNode() 850 DAG.ComputeMaskedBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeMaskedBitsForTargetNode() 852 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in computeMaskedBitsForTargetNode() 857 KnownZero &= KnownZero2; in computeMaskedBitsForTargetNode()
|
/external/llvm/lib/Target/R600/ |
D | AMDILISelLowering.cpp | 259 APInt &KnownZero, in computeMaskedBitsForTargetNode() argument 265 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything in computeMaskedBitsForTargetNode() 271 KnownZero, in computeMaskedBitsForTargetNode() 280 assert((KnownZero & KnownOne) == 0 in computeMaskedBitsForTargetNode() 286 KnownZero &= KnownZero2; in computeMaskedBitsForTargetNode()
|
D | AMDGPUISelLowering.h | 76 APInt &KnownZero,
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 811 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in getOrEnforceKnownAlignment() local 812 ComputeMaskedBits(V, KnownZero, KnownOne, TD); in getOrEnforceKnownAlignment() 813 unsigned TrailZ = KnownZero.countTrailingOnes(); in getOrEnforceKnownAlignment()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCISelLowering.h | 383 APInt &KnownZero,
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.h | 335 APInt &KnownZero,
|
/external/llvm/lib/Target/X86/ |
D | X86ISelLowering.h | 565 APInt &KnownZero,
|
/external/llvm/include/llvm/Target/ |
D | TargetLowering.h | 1788 APInt &KnownZero, APInt &KnownOne, 1795 APInt &KnownZero,
|