/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 76 KnownOne, Depth, UserI); in SimplifyDemandedBits() 105 APInt &KnownZero, APInt &KnownOne, in SimplifyDemandedUseBits() argument 115 KnownOne.getBitWidth() == BitWidth && in SimplifyDemandedUseBits() 120 KnownOne = CI->getValue() & DemandedMask; in SimplifyDemandedUseBits() 121 KnownZero = ~KnownOne & DemandedMask; in SimplifyDemandedUseBits() 126 KnownOne.clearAllBits(); in SimplifyDemandedUseBits() 132 KnownOne.clearAllBits(); 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, 516 APInt &KnownOne, unsigned Depth, 519 APInt &KnownOne, unsigned Depth = 0); 524 APInt &KnownOne);
|
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() 2077 RI.setOperand(0, Constant::getIntegerValue(VTy, KnownOne)); in visitReturnInst() 2142 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in visitSwitchInst() local 2143 computeKnownBits(Cond, KnownZero, KnownOne, 0, &SI); in visitSwitchInst() 2145 unsigned LeadingKnownOnes = KnownOne.countLeadingOnes(); in visitSwitchInst() 2760 APInt KnownOne(BitWidth, 0); in run() local 2761 computeKnownBits(I, KnownZero, KnownOne, /*Depth*/0, I); in run() 2762 if ((KnownZero | KnownOne).isAllOnesValue()) { in run() [all …]
|
D | InstCombineCalls.cpp | 823 APInt KnownOne(BitWidth, 0); in visitCallInst() local 824 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 825 unsigned TrailingZeros = KnownOne.countTrailingZeros(); in visitCallInst() 841 APInt KnownOne(BitWidth, 0); in visitCallInst() local 842 computeKnownBits(II->getArgOperand(0), KnownZero, KnownOne, 0, II); in visitCallInst() 843 unsigned LeadingZeros = KnownOne.countLeadingZeros(); in visitCallInst() 1739 APInt KnownZero(1, 0), KnownOne(1, 0); in visitCallInst() local 1740 computeKnownBits(IIOperand, KnownZero, KnownOne, 0, II); in visitCallInst() 1741 if (KnownOne.isAllOnesValue()) in visitCallInst()
|
D | InstCombineCompares.cpp | 181 const APInt& KnownOne, in ComputeSignedMinMaxValuesFromKnownBits() argument 183 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeSignedMinMaxValuesFromKnownBits() 187 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeSignedMinMaxValuesFromKnownBits() 191 Min = KnownOne; in ComputeSignedMinMaxValuesFromKnownBits() 192 Max = KnownOne|UnknownBits; in ComputeSignedMinMaxValuesFromKnownBits() 205 const APInt &KnownOne, in ComputeUnsignedMinMaxValuesFromKnownBits() argument 207 assert(KnownZero.getBitWidth() == KnownOne.getBitWidth() && in ComputeUnsignedMinMaxValuesFromKnownBits() 211 APInt UnknownBits = ~(KnownZero|KnownOne); in ComputeUnsignedMinMaxValuesFromKnownBits() 214 Min = KnownOne; in ComputeUnsignedMinMaxValuesFromKnownBits() 216 Max = KnownOne|UnknownBits; in ComputeUnsignedMinMaxValuesFromKnownBits() [all …]
|
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() 1000 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in transformSExtICmp() local 1001 computeKnownBits(Op0, KnownZero, KnownOne, 0, &CI); in transformSExtICmp() 1136 bool KnownZero, KnownOne; in visitSExt() local 1137 ComputeSignBit(Src, KnownZero, KnownOne, 0, &CI); in visitSExt()
|
/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 291 KnownOne = PossibleSumOne & Known; in computeKnownBitsAddSub() 303 KnownOne |= APInt::getSignBit(BitWidth); in computeKnownBitsAddSub() 309 APInt &KnownZero, APInt &KnownOne, in computeKnownBitsMul() argument [all …]
|
D | DemandedBits.cpp | 73 const APInt &AOut, APInt &AB, APInt &KnownZero, APInt &KnownOne, in determineLiveOperandBits() argument 87 KnownOne = APInt(BitWidth, 0); in determineLiveOperandBits() 88 computeKnownBits(const_cast<Value *>(V1), KnownZero, KnownOne, DL, 0, in determineLiveOperandBits() 118 std::min(BitWidth, KnownOne.countLeadingZeros()+1)); in determineLiveOperandBits() 128 std::min(BitWidth, KnownOne.countTrailingZeros()+1)); in determineLiveOperandBits() 218 AB &= ~(KnownOne & ~KnownOne2); 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() 538 APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0); in isZero() local 539 computeKnownBits(Elem, KnownZero, KnownOne, DL); in isZero()
|
/external/llvm/include/llvm/CodeGen/ |
D | FunctionLoweringInfo.h | 123 APInt KnownOne, KnownZero; member 124 LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0), in LiveOutInfo() 199 const APInt &KnownZero, const APInt &KnownOne) { in AddLiveOutRegInfo() argument 201 if (NumSignBits == 1 && KnownZero == 0 && KnownOne == 0) in AddLiveOutRegInfo() 207 LOI.KnownOne = KnownOne; in AddLiveOutRegInfo()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | TargetLowering.cpp | 390 APInt &KnownOne, in SimplifyDemandedBits() argument 401 KnownZero = KnownOne = APInt(BitWidth, 0); in SimplifyDemandedBits() 408 TLO.DAG.computeKnownBits(Op, KnownZero, KnownOne, Depth); in SimplifyDemandedBits() 427 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); in SimplifyDemandedBits() 428 KnownZero = ~KnownOne; in SimplifyDemandedBits() 449 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() 451 assert((KnownZero & KnownOne) == 0 && "Bits known to be one AND zero?"); in SimplifyDemandedBits() 459 if ((NewMask & ~KnownZero2 & KnownOne) == (~KnownZero2 & NewMask)) in SimplifyDemandedBits() 474 KnownOne &= KnownOne2; in SimplifyDemandedBits() 480 KnownOne, TLO, Depth+1)) in SimplifyDemandedBits() [all …]
|
D | FunctionLoweringInfo.cpp | 395 LOI->KnownOne = LOI->KnownOne.zextOrTrunc(BitWidth); in GetLiveOutRegInfo() 430 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 438 DestLOI.KnownOne = Val; in ComputePHILiveOutRegInfo() 456 DestLOI.KnownOne.getBitWidth() == BitWidth && in ComputePHILiveOutRegInfo() 465 DestLOI.KnownOne = Zero; in ComputePHILiveOutRegInfo() 473 DestLOI.KnownOne &= Val; in ComputePHILiveOutRegInfo() 491 DestLOI.KnownOne &= SrcLOI->KnownOne; in ComputePHILiveOutRegInfo()
|
D | SelectionDAG.cpp | 2042 APInt KnownZero, KnownOne; in MaskedValueIsZero() local 2043 computeKnownBits(Op, KnownZero, KnownOne, Depth); in MaskedValueIsZero() 2050 APInt &KnownOne, unsigned Depth) const { in computeKnownBits() argument 2053 KnownZero = KnownOne = APInt(BitWidth, 0); // Don't know anything. in computeKnownBits() 2062 KnownOne = cast<ConstantSDNode>(Op)->getAPIntValue(); in computeKnownBits() 2063 KnownZero = ~KnownOne; in computeKnownBits() 2067 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2071 KnownOne &= KnownOne2; in computeKnownBits() 2076 computeKnownBits(Op.getOperand(1), KnownZero, KnownOne, Depth+1); in computeKnownBits() 2082 KnownOne |= KnownOne2; in computeKnownBits() [all …]
|
D | SelectionDAGISel.cpp | 675 APInt KnownOne; in ComputeLiveOutVRegInfo() local 704 CurDAG->computeKnownBits(Src, KnownZero, KnownOne); in ComputeLiveOutVRegInfo() 705 FuncInfo->AddLiveOutRegInfo(DestReg, NumSignBits, KnownZero, KnownOne); in ComputeLiveOutVRegInfo() 1749 APInt KnownZero, KnownOne; in CheckOrMask() local 1750 CurDAG->computeKnownBits(LHS, KnownZero, KnownOne); in CheckOrMask() 1753 if ((NeededMask & KnownOne) == NeededMask) in CheckOrMask()
|
/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/mesa3d/src/gallium/drivers/radeon/ |
D | AMDILISelLowering.cpp | 280 APInt &KnownOne, in computeMaskedBitsForTargetNode() argument 286 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything in computeMaskedBitsForTargetNode() 293 KnownOne, in computeMaskedBitsForTargetNode() 301 assert((KnownZero & KnownOne) == 0 in computeMaskedBitsForTargetNode() 306 KnownOne &= KnownOne2; in computeMaskedBitsForTargetNode()
|
D | AMDGPUISelLowering.h | 69 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() 758 APInt KnownZero, KnownOne; in expandRxSBG() local 759 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 782 APInt KnownZero, KnownOne; in expandRxSBG() local 783 CurDAG->computeKnownBits(Input, KnownZero, KnownOne); in expandRxSBG() 784 Mask &= ~KnownOne.getZExtValue(); in expandRxSBG()
|
/external/llvm/lib/Target/XCore/ |
D | XCoreISelLowering.cpp | 417 APInt KnownZero, KnownOne; in isWordAligned() local 418 DAG.computeKnownBits(Value, KnownZero, KnownOne); 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() 1711 APInt KnownZero, KnownOne; in PerformDAGCombine() local 1714 DAG.computeKnownBits(N2, KnownZero, KnownOne); in PerformDAGCombine() [all …]
|
D | XCoreISelLowering.h | 204 APInt &KnownOne,
|
/external/llvm/lib/Target/Sparc/ |
D | SparcISelLowering.h | 65 APInt &KnownOne,
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 2299 APInt KnownZero, KnownOne; in isU24() local 2301 DAG.computeKnownBits(Op, KnownZero, KnownOne); 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() 2778 APInt &KnownOne, in computeKnownBitsForMinMax() argument 2787 KnownOne = Op0One & Op1One; in computeKnownBitsForMinMax() 2793 APInt &KnownOne, in computeKnownBitsForTargetNode() argument 2797 KnownZero = KnownOne = APInt(KnownOne.getBitWidth(), 0); // Don't know anything. in computeKnownBitsForTargetNode() [all …]
|
D | AMDGPUISelLowering.h | 193 APInt &KnownOne,
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.h | 232 APInt &KnownOne, const SelectionDAG &DAG,
|