/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 57 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() local 60 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits() 72 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() argument 75 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, in SimplifyDemandedBits() 105 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument 114 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 121 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 127 KnownZero = DemandedMask; in SimplifyDemandedUseBits() 131 KnownZero.clearAllBits(); in SimplifyDemandedUseBits() 147 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits() [all …]
|
D | InstCombineInternal.h | 471 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() argument 473 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, in computeKnownBits() 485 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, 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,
|
D | InstCombineCasts.cpp | 625 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformZExtICmp() local 626 computeKnownBits(ICI->getOperand(0), KnownZero, KnownOne, 0, &CI); in transformZExtICmp() 628 APInt KnownZeroMask(~KnownZero); in transformZExtICmp() 1000 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformSExtICmp() local 1001 computeKnownBits(Op0, KnownZero, KnownOne, 0, &CI); in transformSExtICmp() 1003 APInt KnownZeroMask(~KnownZero); in transformSExtICmp() 1136 bool KnownZero, KnownOne; in visitSExt() local 1137 ComputeSignBit(Src, KnownZero, KnownOne, 0, &CI); in visitSExt() 1138 if (KnownZero) { in visitSExt()
|
D | InstructionCombining.cpp | 2074 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitReturnInst() local 2075 computeKnownBits(ResultOp, KnownZero, KnownOne, 0, &RI); in visitReturnInst() 2076 if ((KnownZero|KnownOne).isAllOnesValue()) in visitReturnInst() 2142 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitSwitchInst() local 2143 computeKnownBits(Cond, KnownZero, KnownOne, 0, &SI); in visitSwitchInst() 2144 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes(); in visitSwitchInst() 2759 APInt KnownZero(BitWidth, 0); in run() local 2761 computeKnownBits(I, KnownZero, KnownOne, /*Depth*/0, I); in run() 2762 if ((KnownZero | KnownOne).isAllOnesValue()) { in run()
|
D | InstCombineCalls.cpp | 822 APInt KnownZero(BitWidth, 0); in visitCallInst() local 824 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 827 if ((Mask & KnownZero) == Mask) in visitCallInst() 840 APInt KnownZero(BitWidth, 0); in visitCallInst() local 842 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 845 if ((Mask & KnownZero) == Mask) in visitCallInst() 1739 APInt KnownZero(1, 0), KnownOne(1, 0); in visitCallInst() local 1740 computeKnownBits(IIOperand, KnownZero, KnownOne, 0, II); in visitCallInst()
|
D | InstCombineCompares.cpp | 180 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt& KnownZero, in ComputeSignedMinMaxValuesFromKnownBits() argument 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 184 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 185 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 187 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 204 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeUnsignedMinMaxValuesFromKnownBits() argument 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 208 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 209 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 211 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() [all …]
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 130 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 134 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() argument 138 ::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, in computeKnownBits() 157 static void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, 161 void llvm::ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, in ComputeSignBit() argument 165 ::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, in ComputeSignBit() 229 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsAddSub() argument 239 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 251 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub() 257 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() [all …]
|
D | DemandedBits.cpp | 73 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, in determineLiveOperandBits() argument 86 KnownZero = APInt(BitWidth, 0); in determineLiveOperandBits() 88 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0, in determineLiveOperandBits() 202 AB &= ~(KnownZero & ~KnownZero2); in determineLiveOperandBits() 248 auto NumLeadingZeroes = std::min(KnownZero.countLeadingOnes(), in determineLiveOperandBits() 322 APInt KnownZero, KnownOne, KnownZero2, KnownOne2; in performAnalysis() local 339 KnownZero, KnownOne, in performAnalysis()
|
D | Lint.cpp | 516 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 517 computeKnownBits(V, KnownZero, KnownOne, DL, 0, AC, in isZero() 519 return KnownZero.isAllOnesValue(); in isZero() 538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 539 computeKnownBits(Elem, KnownZero, KnownOne, DL); in isZero() 540 if (KnownZero.isAllOnesValue()) in isZero()
|
/external/llvm/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 123 APInt KnownOne, KnownZero; member 125 KnownZero(1, 0) {} in LiveOutInfo() 199 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 201 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 208 LOI.KnownZero = KnownZero; in AddLiveOutRegInfo()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 389 APInt &KnownZero, in SimplifyDemandedBits() argument 401 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 408 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 428 KnownZero = ~KnownOne; in SimplifyDemandedBits() 448 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits() 451 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 452 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits() 461 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits() 464 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits() 476 KnownZero |= KnownZero2; in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 392 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 394 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 429 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 437 DestLOI.KnownZero = ~Val; in ComputePHILiveOutRegInfo() 455 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 464 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 472 DestLOI.KnownZero &= ~Val; in ComputePHILiveOutRegInfo() 490 DestLOI.KnownZero &= SrcLOI->KnownZero; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 2042 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 2043 computeKnownBits(Op, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 2044 return (KnownZero & Mask) == Mask; in MaskedValueIsZero() 2049 void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, in computeKnownBits() argument 2053 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in computeKnownBits() 2063 KnownZero = ~KnownOne; in computeKnownBits() 2067 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2073 KnownZero |= KnownZero2; in computeKnownBits() 2076 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2080 KnownZero &= KnownZero2; in computeKnownBits() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 417 APInt KnownZero, KnownOne; in isWordAligned() local 418 DAG.computeKnownBits(Value, KnownZero, KnownOne); in isWordAligned() 419 return KnownZero.countTrailingOnes() >= 2; in isWordAligned() 1634 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1639 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine() 1651 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1656 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine() 1688 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1691 DAG.computeKnownBits(N2, KnownZero, KnownOne); in PerformDAGCombine() 1692 if ((KnownZero & Mask) == Mask) { in PerformDAGCombine() [all …]
|
D | XCoreISelLowering.h | 203 APInt &KnownZero,
|
/external/llvm/include/llvm/Analysis/ |
D | ValueTracking.h | 45 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 54 APInt &KnownZero, APInt &KnownOne); 63 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
D | DemandedBits.h | 57 APInt &KnownZero, APInt &KnownOne,
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 709 APInt KnownZero, KnownOne; in detectOrAndInsertion() local 710 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne); in detectOrAndInsertion() 711 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) in detectOrAndInsertion() 758 APInt KnownZero, KnownOne; in expandRxSBG() local 759 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 760 Mask |= KnownZero.getZExtValue(); in expandRxSBG() 782 APInt KnownZero, KnownOne; in expandRxSBG() local 783 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG()
|
/external/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILISelLowering.cpp | 279 APInt &KnownZero, in computeMaskedBitsForTargetNode() argument 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything in computeMaskedBitsForTargetNode() 292 KnownZero, in computeMaskedBitsForTargetNode() 301 assert((KnownZero & KnownOne) == 0 in computeMaskedBitsForTargetNode() 307 KnownZero &= KnownZero2; in computeMaskedBitsForTargetNode()
|
D | AMDGPUISelLowering.h | 68 APInt &KnownZero,
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2299 APInt KnownZero, KnownOne; in isU24() local 2301 DAG.computeKnownBits(Op, KnownZero, KnownOne); in isU24() 2303 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24() 2323 APInt KnownZero, KnownOne; in simplifyI24() local 2325 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in simplifyI24() 2562 APInt KnownZero, KnownOne; in PerformDAGCombine() local 2568 KnownZero, KnownOne, TLO)) { in PerformDAGCombine() 2777 APInt &KnownZero, in computeKnownBitsForMinMax() argument 2786 KnownZero = Op0Zero & Op1Zero; in computeKnownBitsForMinMax() 2792 APInt &KnownZero, in computeKnownBitsForTargetNode() argument [all …]
|
D | AMDGPUISelLowering.h | 192 APInt &KnownZero,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.h | 64 APInt &KnownZero,
|
/external/llvm/lib/Transforms/Utils/ |
D | Local.cpp | 995 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in getOrEnforceKnownAlignment() local 996 computeKnownBits(V, KnownZero, KnownOne, DL, 0, AC, CxtI, DT); in getOrEnforceKnownAlignment() 997 unsigned TrailZ = KnownZero.countTrailingOnes(); in getOrEnforceKnownAlignment()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 1923 APInt KnownZero, KnownOne; in isBitfieldPositioningOp() local 1924 CurDAG->computeKnownBits(Op, KnownZero, KnownOne); in isBitfieldPositioningOp() 1928 uint64_t NonZeroBits = (~KnownZero).getZExtValue(); in isBitfieldPositioningOp() 1934 assert((~APInt(BitWidth, AndImm) & ~KnownZero) == 0); in isBitfieldPositioningOp() 2049 APInt KnownZero, KnownOne; in isBitfieldInsertOpFromOr() local 2050 CurDAG->computeKnownBits(OrOpd1Val, KnownZero, KnownOne); in isBitfieldInsertOpFromOr() 2055 APInt::getBitsSet(KnownZero.getBitWidth(), DstLSB, DstLSB + Width); in isBitfieldInsertOpFromOr() 2057 if ((BitsToBeInserted & ~KnownZero) != 0) in isBitfieldInsertOpFromOr()
|