| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | DemandedBits.cpp | 141 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits() 198 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits() 227 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits() 247 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineShifts.cpp | 508 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift() 621 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift() 695 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue() 1104 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1119 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1125 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1140 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr() 1159 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr() 1281 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmtC), 0, &I)) { in visitLShr() 1446 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmt), 0, &I)) { in visitAShr()
|
| H A D | InstCombineSimplifyDemanded.cpp | 163 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits() 619 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits() 1057 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
|
| H A D | InstCombineCasts.cpp | 583 APInt HiBitMask = ~APInt::getLowBitsSet(WideWidth, MaxShiftAmountWidth); in narrowFunnelShift() 1284 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt() 1305 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt() 1312 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt() 1318 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
|
| H A D | InstCombineCompares.cpp | 1265 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD() 1558 APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant() 2200 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant() 3274 APInt Mask1 = IsTrailing ? APInt::getLowBitsSet(BitWidth, Num + 1) in foldICmpEqIntrinsicWithConstant() 3490 APInt Limit = APInt::getLowBitsSet(BitWidth, BitWidth - Num); in foldICmpIntrinsicWithConstant() 3503 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue() + 1); in foldICmpIntrinsicWithConstant() 3511 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue()); in foldICmpIntrinsicWithConstant() 4442 APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs)); in foldICmpBinOp() 4715 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in foldICmpEquality() 4735 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in foldICmpEquality()
|
| H A D | InstCombineAndOrXor.cpp | 1813 if (*C == APInt::getLowBitsSet(Width, Width - ShiftC->getZExtValue())) { in visitAnd() 1833 APInt LowMask(APInt::getLowBitsSet(Width, Width - Ctlz)); in visitAnd() 2651 APInt Low = APInt::getLowBitsSet(BigBitSize, SmallBitSize); in foldAndOrOfICmps()
|
| H A D | InstCombineCalls.cpp | 1448 MaskedValueIsZero(Y, APInt::getLowBitsSet(BitWidth, 3))) { in visitCallInst() 1597 APInt Op2Demanded = APInt::getLowBitsSet(BitWidth, Log2_32_Ceil(BitWidth)); in visitCallInst()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 56 B.getContext(), APInt::getLowBitsSet(ResultWidth, SrcScale)); in Convert()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 479 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); in simplifyX86pack() 775 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq() 932 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic()
|
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 2122 TEST(APIntTest, getLowBitsSet) { in TEST() argument 2123 APInt i128lo64 = APInt::getLowBitsSet(128, 64); in TEST() 2499 APInt HugePrime = APInt::getLowBitsSet(BitWidth, 4423); in TEST() 2578 APInt i256(APInt::getLowBitsSet(256, 2)); in TEST() 3038 EXPECT_EQ(0U, APInt::getLowBitsSet(0, 0).getBitWidth()); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | GISelKnownBits.cpp | 131 Mask.One = APInt::getLowBitsSet( in extractBits()
|
| H A D | MachineIRBuilder.cpp | 537 ResTy, APInt::getLowBitsSet(ResTy.getScalarSizeInBits(), ImmOp)); in buildZExtInReg()
|
| H A D | LegalizerHelper.cpp | 2843 TargetTy, APInt::getLowBitsSet(TargetTy.getSizeInBits(), in buildBitFieldInsert() 3571 APInt Imm = APInt::getLowBitsSet(IdxTy.getSizeInBits(), Log2_32(NElts)); in clampDynamicVectorIndex() 6351 Src0Ty, APInt::getLowBitsSet(Src0Size, Src0Size - 1)); in lowerFCopySign()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMTargetTransformInfo.cpp | 188 if (IC.SimplifyDemandedBits(&II, 0, APInt::getLowBitsSet(32, 16), in instCombineIntrinsic() 268 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic() 272 UndefElts &= APInt::getSplat(NumElts, !IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
|
| H A D | ARMISelLowering.cpp | 2501 auto MaskValue = APInt::getLowBitsSet(LocBits, ArgVT.getSizeInBits()); in LowerCall() 14959 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformVMOVhrCombine() 15163 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformPREDICATE_CASTCombine() 17144 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in PerformVQMOVNCombine() 17349 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine() 17366 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine() 18687 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() 18705 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine() 18713 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine() 18725 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/ |
| H A D | SystemZOperators.td | 642 APInt::getLowBitsSet(BitWidth, 8)); 650 APInt::getLowBitsSet(BitWidth, 8));
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | TargetLowering.cpp | 1706 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits() 1798 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedBits() 2203 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits() 2416 APInt InMask = APInt::getLowBitsSet(BitWidth, ZVT.getSizeInBits()); in SimplifyDemandedBits() 2587 APInt LoMask = APInt::getLowBitsSet(BitWidth, BitWidth - DemandedBitsLZ); in SimplifyDemandedBits() 4323 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC() 4429 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC() 8230 APInt::getLowBitsSet(NumLoadBits, SrcEltBits), SL, LoadVT); in scalarizeVectorLoad() 8706 APInt Imm = APInt::getLowBitsSet(IdxVT.getSizeInBits(), Log2_32(NElts)); in clampDynamicVectorIndex() 9080 SDValue LowMask = DAG.getConstant(APInt::getLowBitsSet(VTSize, Scale), in expandFixedPointMul() [all …]
|
| H A D | LegalizeIntegerTypes.cpp | 985 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX() 992 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX() 3676 SDValue Mask = DAG.getConstant(APInt::getLowBitsSet(Bits, HalfBits), dl, in ExpandIntRes_MUL() 3912 APInt::getLowBitsSet(NVTSize, VTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX() 3945 APInt::getLowBitsSet(NVTSize, NVTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
|
| H A D | DAGCombiner.cpp | 3346 DAG.getConstant(APInt::getLowBitsSet(SrcVT.getScalarSizeInBits(), in getTruncatedUSUBSAT() 7324 APInt DemandedBits = APInt::getLowBitsSet(NegBits, Bits); in matchRotateSub() 7347 APInt DemandedBits = APInt::getLowBitsSet(PosBits, MaskLoBits); in matchRotateSub() 9526 SDValue Mask = DAG.getConstant(APInt::getLowBitsSet(InnerShiftSize, in visitSRL() 9589 APInt Mask = APInt::getLowBitsSet(OpSizeInBits, OpSizeInBits - ShiftAmt); in visitSRL() 10684 APInt::getLowBitsSet(Value.getScalarValueSizeInBits(), in visitMSTORE() 13023 APInt DemandedSrcElts = APInt::getLowBitsSet(SrcElts, DstElts); in visitSIGN_EXTEND_INREG() 13430 APInt::getLowBitsSet(N0.getValueSizeInBits(), VT.getSizeInBits()); in visitTRUNCATE() 16737 DAG.getConstant(APInt::getLowBitsSet(STType.getFixedSizeInBits(), in ForwardStoreValueToDirectLoad() 19076 APInt::getLowBitsSet(Value.getScalarValueSizeInBits(), in visitSTORE()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 289 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 1045 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction() 1083 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
|
| H A D | ConstantRange.cpp | 800 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreISelLowering.cpp | 1602 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine() 1618 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 606 APInt Result(getLowBitsSet(BitWidth, numBits)); in getLoBits()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 1550 auto *BMI = ConstantInt::get(P->getType(), APInt::getLowBitsSet(32, IC)); in generate()
|