Home | History | Annotate | Download | only in SelectionDAG

Lines Matching full:apint

181       APInt Demanded = APInt::getAllOnesValue(BitWidth);
185 bool SimplifyDemandedBits(SDValue Op, const APInt &Demanded);
356 SDValue GetDemandedBits(SDValue V, const APInt &Mask);
695 static bool isConstantSplatVector(SDNode *N, APInt& SplatValue) {
700 APInt SplatUndef;
867 bool DAGCombiner::SimplifyDemandedBits(SDValue Op, const APInt &Demanded) {
869 APInt KnownZero, KnownOne;
1675 APInt LHSZero, LHSOne;
1676 APInt RHSZero, RHSOne;
1771 APInt LHSZero, LHSOne;
1772 APInt RHSZero, RHSOne;
1980 APInt ConstValue0, ConstValue1;
2036 APInt Val;
2291 DAG.getConstant(APInt::getAllOnesValue(VT.getSizeInBits()),
2771 APInt ADDC = ADDI->getAPIntValue();
2778 APInt Mask = APInt::getHighBitsSet(VT.getSizeInBits(),
2813 APInt::getNullValue(
2819 APInt::getNullValue(
2845 APInt::getAllOnesValue(BitWidth)))
2858 APInt Mask = ~N1C->getAPIntValue();
2889 APInt Constant = APInt::getNullValue(1);
2893 APInt SplatValue, SplatUndef;
2922 Constant = APInt::getAllOnesValue(BitWidth);
3071 if (DAG.MaskedValueIsZero(N1, APInt::getHighBitsSet(BitWidth,
3091 if (DAG.MaskedValueIsZero(N1, APInt::getHighBitsSet(BitWidth,
3208 N10, APInt::getHighBitsSet(OpSizeInBits, OpSizeInBits - 16)))
3376 return DAG.getConstant(APInt::getAllOnesValue(EltVT.getSizeInBits()), VT);
3432 const APInt &LHSMask =
3434 const APInt &RHSMask =
3480 APInt::getAllOnesValue(
3486 APInt::getAllOnesValue(
3705 APInt Width;
3815 APInt Mask = APInt::getAllOnesValue(OpSizeInBits);
3818 APInt RHSBits = APInt::getLowBitsSet(OpSizeInBits, LShVal);
3822 APInt LHSBits = APInt::getHighBitsSet(OpSizeInBits, RShVal);
4116 APInt TruncC = N01C->getAPIntValue();
4191 APInt::getAllOnesValue(OpSizeInBits)))
4273 APInt Mask = APInt::getHighBitsSet(OpSizeInBits, OpSizeInBits - c1);
4293 DAG.getConstant(APInt::getHighBitsSet(BitSize,
4302 APInt Val;
4496 APInt::getAllOnesValue(OpSizeInBits)))
4556 APInt Mask = APInt::getAllOnesValue(OpSizeInBits).lshr(ShiftAmt);
4573 APInt KnownZero, KnownOne;
4582 APInt UnknownBits = ~KnownZero;
5338 const APInt &C = APInt(VTBits, CurrentND->getAPIntValue().getZExtValue());
5671 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
5724 DAG.getConstant(APInt::getAllOnesValue(ElementWidth), VT);
5757 APInt &KnownZero) {
5758 APInt KnownOne;
5784 if (!(KnownZero | APInt(Op.getValueSizeInBits(), 1)).isAllOnesValue())
5809 APInt KnownZero;
5811 APInt TruncatedBits =
5813 APInt(Op.getValueSizeInBits(), 0) :
5814 APInt::getBitsSet(Op.getValueSizeInBits(),
5886 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
5947 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
6120 APInt Mask = cast<ConstantSDNode>(N0.getOperand(1))->getAPIntValue();
6220 SDValue DAGCombiner::GetDemandedBits(SDValue V, const APInt &Mask) {
6226 const APInt &CVal = CV->getAPIntValue();
6227 APInt NewVal = CVal & Mask;
6250 APInt NewMask = Mask << Amt;
6464 if (DAG.MaskedValueIsZero(N0, APInt::getBitsSet(VTBits, EVTBits-1, EVTBits)))
6549 const APInt &C = APInt(VTBits, CurrentND->getAPIntValue().getZExtValue());
6679 GetDemandedBits(N0, APInt::getLowBitsSet(N0.getValueSizeInBits(),
6870 APInt SignBit = APInt::getSignBit(VT.getSizeInBits());
6909 APInt SignBit = APInt::getSignBit(VT.getSizeInBits());
7009 APInt NewBits = APInt(DstBitSize, 0);
7045 APInt OpVal = cast<ConstantSDNode>(BV->getOperand(i))->
7049 APInt ThisVal = OpVal.trunc(DstBitSize);
8256 APInt SignMask;
8260 SignMask = APInt::getSignBit(N0.getValueType().getScalarSizeInBits());
8261 SignMask = APInt::getSplat(IntVT.getSizeInBits(), SignMask);
8264 SignMask = APInt::getSignBit(IntVT.getSizeInBits());
8358 APInt SignMask;
8362 SignMask = ~APInt::getSignBit(N0.getValueType().getScalarSizeInBits());
8363 SignMask = APInt::getSplat(IntVT.getSizeInBits(), SignMask);
8366 SignMask = ~APInt::getSignBit(IntVT.getSizeInBits());
8435 const APInt &AndConst = cast<ConstantSDNode>(AndOp1)->getAPIntValue();
8784 APInt Offset0 = CN->getAPIntValue();
8785 APInt Offset1 = cast<ConstantSDNode>(Offset)->getAPIntValue();
8794 APInt CNV = Offset0;
9223 APInt getUsedBits() const {
9233 APInt UsedBits(Inst->getValueSizeInBits(0), 0);
9417 static bool areUsedBitsDense(const APInt &UsedBits) {
9423 APInt NarrowedUsedBits = UsedBits.lshr(UsedBits.countTrailingZeros());
9438 APInt UsedBits = First.getUsedBits();
9518 const APInt &UsedBits, bool ForCodeSize) {
9568 APInt UsedBits(LD->getValueSizeInBits(0), 0);
9606 APInt CurrentUsedBits = LS.getUsedBits();
9740 APInt Mask = ~APInt::getBitsSet(IVal.getValueSizeInBits(),
9840 APInt Imm = cast<ConstantSDNode>(N1)->getAPIntValue();
9842 Imm ^= APInt::getAllOnesValue(BitWidth);
9865 APInt Mask = APInt::getBitsSet(BitWidth, ShAmt,
9868 APInt NewImm = (Imm & Mask).lshr(ShAmt).trunc(NewBW);
9870 NewImm ^= APInt::getAllOnesValue(NewBW);
10112 APInt StoreInt(StoreBW, 0);
10755 APInt::getLowBitsSet(
10766 APInt::getLowBitsSet(
12340 APInt InsIdx = cast<ConstantSDNode>(N2)->getAPIntValue();
12813 APInt AndMask = ConstAndRHS->getAPIntValue();