/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 55 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() local 58 Value *V = SimplifyDemandedUseBits(&Inst, DemandedMask, KnownZero, KnownOne, in SimplifyDemandedInstructionBits() 70 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() argument 73 Value *NewVal = SimplifyDemandedUseBits(U.get(), DemandedMask, KnownZero, in SimplifyDemandedBits() 104 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 computeKnownBits(V, KnownZero, KnownOne, Depth, CxtI); in SimplifyDemandedUseBits() [all …]
|
D | InstCombineInternal.h | 477 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() argument 479 return llvm::computeKnownBits(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, in computeKnownBits() 491 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, 493 return llvm::ComputeSignBit(V, KnownZero, KnownOne, DL, Depth, AC, CxtI, 521 Value *SimplifyDemandedUseBits(Value *V, APInt DemandedMask, APInt &KnownZero, 524 bool SimplifyDemandedBits(Use &U, const APInt &DemandedMask, APInt &KnownZero, 529 const 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 | 2105 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitReturnInst() local 2106 computeKnownBits(ResultOp, KnownZero, KnownOne, 0, &RI); in visitReturnInst() 2107 if ((KnownZero|KnownOne).isAllOnesValue()) in visitReturnInst() 2173 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitSwitchInst() local 2174 computeKnownBits(Cond, KnownZero, KnownOne, 0, &SI); in visitSwitchInst() 2175 unsigned LeadingKnownZeros = KnownZero.countLeadingOnes(); in visitSwitchInst() 2794 APInt KnownZero(BitWidth, 0); in run() local 2796 computeKnownBits(I, KnownZero, KnownOne, /*Depth*/0, I); in run() 2797 if ((KnownZero | KnownOne).isAllOnesValue()) { in run()
|
D | InstCombineCompares.cpp | 188 static void ComputeSignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeSignedMinMaxValuesFromKnownBits() argument 191 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 192 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 193 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 195 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 211 static void ComputeUnsignedMinMaxValuesFromKnownBits(const APInt &KnownZero, in ComputeUnsignedMinMaxValuesFromKnownBits() argument 214 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 215 KnownZero.getBitWidth() == Min.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 216 KnownZero.getBitWidth() == Max.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 218 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() [all …]
|
D | InstCombineCalls.cpp | 1407 APInt KnownZero(BitWidth, 0); in visitCallInst() local 1409 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 1412 if ((Mask & KnownZero) == Mask) in visitCallInst() 1425 APInt KnownZero(BitWidth, 0); in visitCallInst() local 1427 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 1430 if ((Mask & KnownZero) == Mask) in visitCallInst() 2297 APInt KnownZero(1, 0), KnownOne(1, 0); in visitCallInst() local 2298 computeKnownBits(IIOperand, KnownZero, KnownOne, 0, II); in visitCallInst()
|
/external/llvm/lib/Analysis/ |
D | ValueTracking.cpp | 122 static void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 125 void llvm::computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, in computeKnownBits() argument 129 ::computeKnownBits(V, KnownZero, KnownOne, Depth, in computeKnownBits() 148 static void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, 151 void llvm::ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne, in ComputeSignBit() argument 155 ::ComputeSignBit(V, KnownZero, KnownOne, Depth, in ComputeSignBit() 236 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsAddSub() argument 245 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() 257 KnownZero = APInt::getHighBitsSet(BitWidth, NLZ2); in computeKnownBitsAddSub() 263 unsigned BitWidth = KnownZero.getBitWidth(); in computeKnownBitsAddSub() [all …]
|
D | DemandedBits.cpp | 75 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, in determineLiveOperandBits() argument 88 KnownZero = APInt(BitWidth, 0); in determineLiveOperandBits() 90 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0, in determineLiveOperandBits() 204 AB &= ~(KnownZero & ~KnownZero2); in determineLiveOperandBits() 320 APInt KnownZero, KnownOne, KnownZero2, KnownOne2; in performAnalysis() local 337 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 | 175 APInt KnownOne, KnownZero; member 177 KnownZero(1, 0) {} in LiveOutInfo() 251 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 253 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 260 LOI.KnownZero = KnownZero; in AddLiveOutRegInfo()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 430 APInt &KnownZero, in SimplifyDemandedBits() argument 442 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 449 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 469 KnownZero = ~KnownOne; in SimplifyDemandedBits() 489 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits() 492 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 493 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits() 502 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits() 505 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits() 517 KnownZero |= KnownZero2; in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 410 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 412 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 447 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 455 DestLOI.KnownZero = ~Val; in ComputePHILiveOutRegInfo() 473 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 482 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 490 DestLOI.KnownZero &= ~Val; in ComputePHILiveOutRegInfo() 508 DestLOI.KnownZero &= SrcLOI->KnownZero; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 2016 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 2017 computeKnownBits(Op, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 2018 return (KnownZero & Mask) == Mask; in MaskedValueIsZero() 2023 void SelectionDAG::computeKnownBits(SDValue Op, APInt &KnownZero, in computeKnownBits() argument 2027 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in computeKnownBits() 2037 KnownZero = ~KnownOne; in computeKnownBits() 2041 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2047 KnownZero |= KnownZero2; in computeKnownBits() 2050 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2054 KnownZero &= KnownZero2; in computeKnownBits() [all …]
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 413 APInt KnownZero, KnownOne; in isWordAligned() local 414 DAG.computeKnownBits(Value, KnownZero, KnownOne); in isWordAligned() 415 return KnownZero.countTrailingOnes() >= 2; in isWordAligned() 1618 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1623 TLI.SimplifyDemandedBits(OutVal, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine() 1635 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1640 TLI.SimplifyDemandedBits(Time, DemandedMask, KnownZero, KnownOne, in PerformDAGCombine() 1672 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1675 DAG.computeKnownBits(N2, KnownZero, KnownOne); in PerformDAGCombine() 1676 if ((KnownZero & Mask) == Mask) { in PerformDAGCombine() [all …]
|
D | XCoreISelLowering.h | 203 APInt &KnownZero,
|
/external/llvm/include/llvm/Analysis/ |
D | ValueTracking.h | 52 void computeKnownBits(Value *V, APInt &KnownZero, APInt &KnownOne, 61 APInt &KnownZero, APInt &KnownOne); 70 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
D | DemandedBits.h | 61 APInt &KnownZero, APInt &KnownOne,
|
/external/llvm/lib/Target/SystemZ/ |
D | SystemZISelDAGToDAG.cpp | 714 APInt KnownZero, KnownOne; in detectOrAndInsertion() local 715 CurDAG->computeKnownBits(Op.getOperand(0), KnownZero, KnownOne); in detectOrAndInsertion() 716 if (Used != (AndMask | InsertMask | KnownZero.getZExtValue())) in detectOrAndInsertion() 773 APInt KnownZero, KnownOne; in expandRxSBG() local 774 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 775 Mask |= KnownZero.getZExtValue(); in expandRxSBG() 797 APInt KnownZero, KnownOne; in expandRxSBG() local 798 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG()
|
/external/llvm/lib/Transforms/Scalar/ |
D | GuardWidening.cpp | 539 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in parseRangeChecks() local 540 computeKnownBits(OpLHS, KnownZero, KnownOne, DL); in parseRangeChecks() 541 if ((OpRHS->getValue() & KnownZero) == OpRHS->getValue()) { in parseRangeChecks()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | LoadStoreVectorizer.cpp | 322 APInt KnownZero(BitWidth, 0); in isConsecutiveAccess() local 324 computeKnownBits(OpA, KnownZero, KnownOne, DL, 0, nullptr, OpA, &DT); in isConsecutiveAccess() 325 KnownZero &= ~APInt::getHighBitsSet(BitWidth, 1); in isConsecutiveAccess() 326 if (KnownZero != 0) in isConsecutiveAccess()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 2085 APInt &KnownZero, in SimplifyDemandedVectorElts() argument 2092 SimplifyDemandedVectorElts(Op, DemandedElts, KnownUndef, KnownZero, TLO); in SimplifyDemandedVectorElts() 2151 APInt &KnownZero, TargetLoweringOpt &TLO, unsigned Depth, in SimplifyDemandedVectorElts() argument 2160 KnownUndef = KnownZero = APInt::getNullValue(NumElts); in SimplifyDemandedVectorElts() 2207 KnownZero, TLO, Depth + 1); in SimplifyDemandedVectorElts() 2246 KnownZero.setBits(i * Scale, (i + 1) * Scale); in SimplifyDemandedVectorElts() 2271 KnownZero.setBit(i); in SimplifyDemandedVectorElts() 2304 KnownZero.setBit(i); in SimplifyDemandedVectorElts() 2321 KnownZero.insertBits(SubZero, i * NumSubElts); in SimplifyDemandedVectorElts() 2352 if (SimplifyDemandedVectorElts(Base, BaseElts, KnownUndef, KnownZero, TLO, in SimplifyDemandedVectorElts() [all …]
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.h | 69 APInt &KnownZero,
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2119 APInt KnownZero, KnownOne; in isU24() local 2121 DAG.computeKnownBits(Op, KnownZero, KnownOne); in isU24() 2123 return (VT.getSizeInBits() - KnownZero.countLeadingOnes()) <= 24; in isU24() 2143 APInt KnownZero, KnownOne; in simplifyI24() local 2145 if (TLI.SimplifyDemandedBits(Op, Demanded, KnownZero, KnownOne, TLO)) in simplifyI24() 2708 APInt KnownZero, KnownOne; in PerformDAGCombine() local 2714 KnownZero, KnownOne, TLO)) { in PerformDAGCombine() 2919 APInt &KnownZero, in computeKnownBitsForTargetNode() argument 2924 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything. in computeKnownBitsForTargetNode() 2935 KnownZero = APInt::getHighBitsSet(32, 31); in computeKnownBitsForTargetNode() [all …]
|
D | AMDGPUISelLowering.h | 189 APInt &KnownZero,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelDAGToDAG.cpp | 1995 APInt KnownZero, KnownOne; in isBitfieldPositioningOp() local 1996 CurDAG->computeKnownBits(Op, KnownZero, KnownOne); in isBitfieldPositioningOp() 2000 uint64_t NonZeroBits = (~KnownZero).getZExtValue(); in isBitfieldPositioningOp() 2006 assert((~APInt(BitWidth, AndImm) & ~KnownZero) == 0); in isBitfieldPositioningOp() 2075 APInt KnownZero, KnownOne; in tryBitfieldInsertOpFromOrAndImm() local 2076 CurDAG->computeKnownBits(And, KnownZero, KnownOne); in tryBitfieldInsertOpFromOrAndImm() 2080 uint64_t NotKnownZero = (~KnownZero).getZExtValue(); in tryBitfieldInsertOpFromOrAndImm() 2083 if (!isShiftedMask(KnownZero.getZExtValue(), VT)) in tryBitfieldInsertOpFromOrAndImm() 2217 APInt KnownZero, KnownOne; in tryBitfieldInsertOpFromOr() local 2218 CurDAG->computeKnownBits(OrOpd1Val, KnownZero, KnownOne); in tryBitfieldInsertOpFromOr() [all …]
|