/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | ValueTracking.cpp | 61 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBits() argument 72 KnownZero.getBitWidth() == BitWidth && in ComputeMaskedBits() 79 KnownZero = ~KnownOne & Mask; in ComputeMaskedBits() 86 KnownZero = Mask; in ComputeMaskedBits() 92 KnownZero.setAllBits(); KnownOne.setAllBits(); in ComputeMaskedBits() 97 KnownZero &= KnownZero2; in ComputeMaskedBits() 116 KnownZero = Mask & APInt::getLowBitsSet(BitWidth, in ComputeMaskedBits() 119 KnownZero.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() 475 KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 476 ComputeMaskedBits(V, Mask, KnownZero, KnownOne, TD); in isZero() 477 return KnownZero.isAllOnesValue(); 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 112 KnownZero.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 119 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 125 KnownZero = DemandedMask; in SimplifyDemandedUseBits() 129 KnownZero.clearAllBits(); in SimplifyDemandedUseBits() 145 ComputeMaskedBits(V, DemandedMask, KnownZero, KnownOne, Depth); in SimplifyDemandedUseBits() [all …]
|
D | InstCombine.h | 290 void ComputeMaskedBits(Value *V, const APInt &Mask, APInt &KnownZero, 292 return llvm::ComputeMaskedBits(V, Mask, KnownZero, KnownOne, TD, Depth); 319 APInt& KnownZero, APInt& KnownOne, 322 APInt& KnownZero, APInt& KnownOne,
|
/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()
|
/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/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 108 APInt KnownOne, KnownZero; member 110 KnownZero(1, 0) {} in LiveOutInfo() 173 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 175 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 182 LOI.KnownZero = KnownZero; in AddLiveOutRegInfo()
|
/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/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 1208 APInt &KnownZero, in SimplifyDemandedBits() argument 1219 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 1226 TLO.DAG.ComputeMaskedBits(Op, DemandedMask, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 1246 KnownZero = ~KnownOne & NewMask; in SimplifyDemandedBits() 1267 if (SimplifyDemandedBits(Op.getOperand(1), NewMask, KnownZero, in SimplifyDemandedBits() 1270 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 1271 if (SimplifyDemandedBits(Op.getOperand(0), ~KnownZero & NewMask, in SimplifyDemandedBits() 1280 if ((NewMask & ~KnownZero & KnownOne2) == (~KnownZero & NewMask)) in SimplifyDemandedBits() 1283 if ((NewMask & (KnownZero|KnownZero2)) == NewMask) in SimplifyDemandedBits() 1295 KnownZero |= KnownZero2; in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 251 if (BitWidth > LOI->KnownZero.getBitWidth()) { in GetLiveOutRegInfo() 253 LOI->KnownZero = LOI->KnownZero.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 288 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 296 DestLOI.KnownZero = ~Val; in ComputePHILiveOutRegInfo() 314 assert(DestLOI.KnownZero.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 323 DestLOI.KnownZero = Zero; in ComputePHILiveOutRegInfo() 331 DestLOI.KnownZero &= ~Val; in ComputePHILiveOutRegInfo() 349 DestLOI.KnownZero &= SrcLOI->KnownZero; 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() 1603 return (KnownZero & Mask) == Mask; in MaskedValueIsZero() 1611 APInt &KnownZero, APInt &KnownOne, in ComputeMaskedBits() argument 1617 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in ComputeMaskedBits() 1627 KnownZero = ~KnownOne & Mask; in ComputeMaskedBits() 1631 ComputeMaskedBits(Op.getOperand(1), Mask, KnownZero, KnownOne, Depth+1); in ComputeMaskedBits() 1632 ComputeMaskedBits(Op.getOperand(0), Mask & ~KnownZero, in ComputeMaskedBits() 1634 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in ComputeMaskedBits() [all …]
|
/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 …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | ValueTracking.h | 39 void ComputeMaskedBits(Value *V, const APInt &Mask, APInt &KnownZero, 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/swiftshader/third_party/LLVM/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 1354 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1357 DAG.ComputeMaskedBits(N2, Mask, KnownZero, KnownOne); in PerformDAGCombine() 1358 if (KnownZero == Mask) { in PerformDAGCombine() 1377 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1380 DAG.ComputeMaskedBits(N2, Mask, KnownZero, KnownOne); in PerformDAGCombine() 1381 if (KnownZero == Mask) { in PerformDAGCombine() 1393 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1396 DAG.ComputeMaskedBits(N2, Mask, KnownZero, KnownOne); in PerformDAGCombine() 1397 if (KnownZero == Mask) { in PerformDAGCombine() 1516 APInt &KnownZero, in computeMaskedBitsForTargetNode() argument [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() 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/swiftshader/third_party/LLVM/lib/Target/Sparc/ |
D | SparcISelLowering.h | 54 APInt &KnownZero,
|