/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 61 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBits() argument 73 KnownOne.getBitWidth() == BitWidth && in ComputeMaskedBits() 78 KnownOne = CI->getValue() & Mask; in ComputeMaskedBits() 79 KnownZero = ~KnownOne & Mask; in ComputeMaskedBits() 85 KnownOne.clearAllBits(); in ComputeMaskedBits() 92 KnownZero.setAllBits(); KnownOne.setAllBits(); in ComputeMaskedBits() 98 KnownOne &= KnownOne2; in ComputeMaskedBits() 120 KnownOne.clearAllBits(); in ComputeMaskedBits() 127 KnownZero.clearAllBits(); KnownOne.clearAllBits(); in ComputeMaskedBits() 129 ComputeMaskedBits(GA->getAliasee(), Mask, KnownZero, KnownOne, in ComputeMaskedBits() [all …]
|
D | Lint.cpp | 415 KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitMemoryReference() local 416 ComputeMaskedBits(Ptr, Mask, KnownZero, KnownOne, TD); in visitMemoryReference() 417 Assert1(!(KnownOne & APInt::getLowBitsSet(BitWidth, Log2_32(Align))), in visitMemoryReference() 475 KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 476 ComputeMaskedBits(V, Mask, KnownZero, KnownOne, TD); in isZero()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineSimplifyDemanded.cpp | 54 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in SimplifyDemandedInstructionBits() local 58 KnownZero, KnownOne, 0); in SimplifyDemandedInstructionBits() 69 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedBits() argument 72 KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 101 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument 113 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 118 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits() 119 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 124 KnownOne.clearAllBits(); in SimplifyDemandedUseBits() 130 KnownOne.clearAllBits(); in SimplifyDemandedUseBits() [all …]
|
D | InstCombine.h | 291 APInt &KnownOne, unsigned Depth = 0) const { 292 return llvm::ComputeMaskedBits(V, Mask, KnownZero, KnownOne, TD, Depth); 319 APInt& KnownZero, APInt& KnownOne, 322 APInt& KnownZero, APInt& KnownOne,
|
D | InstCombineCompares.cpp | 152 const APInt& KnownOne, in ComputeSignedMinMaxValuesFromKnownBits() argument 154 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 158 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 162 Min = KnownOne; in ComputeSignedMinMaxValuesFromKnownBits() 163 Max = KnownOne|UnknownBits; in ComputeSignedMinMaxValuesFromKnownBits() 176 const APInt &KnownOne, in ComputeUnsignedMinMaxValuesFromKnownBits() argument 178 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 182 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() 185 Min = KnownOne; in ComputeUnsignedMinMaxValuesFromKnownBits() 187 Max = KnownOne|UnknownBits; in ComputeUnsignedMinMaxValuesFromKnownBits() [all …]
|
D | InstCombineCalls.cpp | 361 APInt KnownOne(BitWidth, 0); in visitCallInst() local 363 KnownZero, KnownOne); in visitCallInst() 364 unsigned TrailingZeros = KnownOne.countTrailingZeros(); in visitCallInst() 380 APInt KnownOne(BitWidth, 0); in visitCallInst() local 382 KnownZero, KnownOne); in visitCallInst() 383 unsigned LeadingZeros = KnownOne.countLeadingZeros(); in visitCallInst()
|
/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 74 KnownOne, Depth, UserI); in SimplifyDemandedBits() 104 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument 114 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 119 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits() 120 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 125 KnownOne.clearAllBits(); in SimplifyDemandedUseBits() 131 KnownOne.clearAllBits(); 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, 522 APInt &KnownOne, unsigned Depth, 525 APInt &KnownOne, unsigned Depth = 0); 530 APInt &KnownOne);
|
/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 297 KnownOne = PossibleSumOne & Known; in computeKnownBitsAddSub() 309 KnownOne |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub() 315 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsMul() argument [all …]
|
D | DemandedBits.cpp | 75 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, in determineLiveOperandBits() argument 89 KnownOne = APInt(BitWidth, 0); in determineLiveOperandBits() 90 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0, in determineLiveOperandBits() 120 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); in determineLiveOperandBits() 130 std::min(BitWidth, KnownOne.countTrailingZeros()+1)); in determineLiveOperandBits() 220 AB &= ~(KnownOne & ~KnownOne2); 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() 538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 539 computeKnownBits(Elem, KnownZero, KnownOne, DL); in isZero()
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 108 APInt KnownOne, KnownZero; member 109 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0), in LiveOutInfo() 173 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 175 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 181 LOI.KnownOne = KnownOne; in AddLiveOutRegInfo()
|
/external/llvm/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 175 APInt KnownOne, KnownZero; member 176 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0), in LiveOutInfo() 251 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 253 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 259 LOI.KnownOne = KnownOne; in AddLiveOutRegInfo()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1209 APInt &KnownOne, in SimplifyDemandedBits() argument 1219 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 1226 TLO.DAG.ComputeMaskedBits(Op, DemandedMask, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 1245 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue() & NewMask; in SimplifyDemandedBits() 1246 KnownZero = ~KnownOne & NewMask; in SimplifyDemandedBits() 1268 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() 1270 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 1278 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits() 1293 KnownOne &= KnownOne2; in SimplifyDemandedBits() 1299 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 254 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 289 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 297 DestLOI.KnownOne = Val; in ComputePHILiveOutRegInfo() 315 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 324 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 332 DestLOI.KnownOne &= Val; in ComputePHILiveOutRegInfo() 350 DestLOI.KnownOne &= SrcLOI->KnownOne; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 1600 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 1601 ComputeMaskedBits(Op, Mask, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 1602 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in MaskedValueIsZero() 1611 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBits() argument 1617 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in ComputeMaskedBits() 1626 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue() & Mask; in ComputeMaskedBits() 1627 KnownZero = ~KnownOne & Mask; in ComputeMaskedBits() 1631 ComputeMaskedBits(Op.getOperand(1), Mask, KnownZero, KnownOne, Depth+1); in ComputeMaskedBits() 1634 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits() 1638 KnownOne &= KnownOne2; in ComputeMaskedBits() [all …]
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 431 APInt &KnownOne, in SimplifyDemandedBits() argument 442 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 449 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 468 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); in SimplifyDemandedBits() 469 KnownZero = ~KnownOne; in SimplifyDemandedBits() 490 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() 492 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 500 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits() 515 KnownOne &= KnownOne2; in SimplifyDemandedBits() 521 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 413 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 448 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 456 DestLOI.KnownOne = Val; in ComputePHILiveOutRegInfo() 474 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 483 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 491 DestLOI.KnownOne &= Val; in ComputePHILiveOutRegInfo() 509 DestLOI.KnownOne &= SrcLOI->KnownOne; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 2016 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 2017 computeKnownBits(Op, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 2024 APInt &KnownOne, unsigned Depth) const { in computeKnownBits() argument 2027 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in computeKnownBits() 2036 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); in computeKnownBits() 2037 KnownZero = ~KnownOne; in computeKnownBits() 2041 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2045 KnownOne &= KnownOne2; in computeKnownBits() 2050 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2056 KnownOne |= KnownOne2; in computeKnownBits() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ValueTracking.h | 40 APInt &KnownOne, const TargetData *TD = 0, 45 void ComputeSignBit(Value *V, bool &KnownZero, bool &KnownOne,
|
/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/XCore/ |
D | XCoreISelLowering.cpp | 413 APInt KnownZero, KnownOne; in isWordAligned() local 414 DAG.computeKnownBits(Value, KnownZero, KnownOne); 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() 1695 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1698 DAG.computeKnownBits(N2, KnownZero, KnownOne); in PerformDAGCombine() [all …]
|
/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() 773 APInt KnownZero, KnownOne; in expandRxSBG() local 774 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 797 APInt KnownZero, KnownOne; in expandRxSBG() local 798 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 799 Mask &= ~KnownOne.getZExtValue(); in expandRxSBG()
|
/external/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
D | SparcISelLowering.h | 55 APInt &KnownOne,
|