Home
last modified time | relevance | path

Searched refs:getLowBitsSet (Results 1 – 25 of 43) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp115 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
172 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
201 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
221 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp553 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
665 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
739 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
1373 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1389 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1395 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1409 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1428 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
H A DInstCombineSimplifyDemanded.cpp193 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
529 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
572 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
707 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
1222 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1243 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1279 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
H A DInstCombineCasts.cpp484 APInt HiBitMask = ~APInt::getLowBitsSet(WideWidth, MaxShiftAmountWidth); in narrowFunnelShift()
1189 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt()
1210 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1217 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1223 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
H A DInstCombineCompares.cpp1091 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1457 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
2374 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
3645 APInt Mask1 = IsTrailing ? APInt::getLowBitsSet(BitWidth, Num + 1) in foldICmpEqIntrinsicWithConstant()
4040 APInt Limit = APInt::getLowBitsSet(BitWidth, BitWidth - Num); in foldICmpIntrinsicWithConstant()
4053 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue() + 1); in foldICmpIntrinsicWithConstant()
4061 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue()); in foldICmpIntrinsicWithConstant()
5298 APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs)); in foldICmpBinOp()
5706 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in foldICmpEquality()
5726 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in foldICmpEquality()
H A DInstructionCombining.cpp3786 Op0, APInt::getLowBitsSet(BitWidth, BitWidth - ShiftAmt)); in visitSwitchInst()
3932 APInt::getLowBitsSet(BitWidth, BitWidth / 2))); in foldExtractOfOverflowIntrinsic()
H A DInstCombineCalls.cpp1941 if (MaskedValueIsZero(Y, APInt::getLowBitsSet(BitWidth, 3))) { in visitCallInst()
2108 APInt Op2Demanded = APInt::getLowBitsSet(BitWidth, Log2_32_Ceil(BitWidth)); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp83 APInt::getLowBitsSet(D.getBitWidth(), D.getBitWidth() - LeadingZeros); in get()
H A DKnownBits.cpp1034 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSZeros); in remGetLowBits()
H A DAPInt.cpp614 APInt Result(getLowBitsSet(BitWidth, numBits)); in getLoBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp355 APInt Mask = APInt::getLowBitsSet(Ty->getPrimitiveSizeInBits(), in IsSafeActiveMask()
H A DARMTargetTransformInfo.cpp189 if (IC.SimplifyDemandedBits(&II, 0, APInt::getLowBitsSet(32, 16), in instCombineIntrinsic()
275 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
279 UndefElts &= APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
H A DARMISelLowering.cpp2545 auto MaskValue = APInt::getLowBitsSet(LocBits, ArgVT.getSizeInBits()); in LowerCall()
3277 auto MaskValue = APInt::getLowBitsSet(LocBits, RetVT.getSizeInBits()); in LowerReturn()
14855 FromMask = APInt::getLowBitsSet(ToMask.getBitWidth(), ToMask.popcount()); in ParseBFI()
15215 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformVMOVhrCombine()
15419 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformPREDICATE_CASTCombine()
17414 APInt Op1DemandedElts = APInt::getSplat(NumElts, APInt::getLowBitsSet(2, 1)); in PerformVMOVNCombine()
17435 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in PerformVQMOVNCombine()
17661 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
17678 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
19000 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h58 B.getContext(), APInt::getLowBitsSet(ResultWidth, SrcScale)); in Convert()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h286 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
1406 APInt Keep = getLowBitsSet(BitWidth, BitWidth - hiBits); in clearHighBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp139 Mask.One = APInt::getLowBitsSet( in extractBits()
H A DMachineIRBuilder.cpp591 ResTy, APInt::getLowBitsSet(ResTy.getScalarSizeInBits(), ImmOp)); in buildZExtInReg()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1748 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
1898 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedBits()
2391 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits()
2629 APInt InMask = APInt::getLowBitsSet(BitWidth, ZVT.getSizeInBits()); in SimplifyDemandedBits()
2810 APInt LoMask = APInt::getLowBitsSet(BitWidth, BitWidth - DemandedBitsLZ); in SimplifyDemandedBits()
4674 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC()
4786 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC()
6256 APInt Lg2Mask = APInt::getLowBitsSet(VT.getSizeInBits(), Lg2); in buildSDIVPow2WithCMov()
7822 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
7896 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
[all …]
H A DLegalizeIntegerTypes.cpp1172 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
1179 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
4415 APInt::getLowBitsSet(NVTSize, VTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
4448 APInt::getLowBitsSet(NVTSize, NVTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZOperators.td768 APInt::getLowBitsSet(BitWidth, 8));
776 APInt::getLowBitsSet(BitWidth, 8));
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp481 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); in simplifyX86pack()
1957 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq()
2150 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1507 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine()
1523 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp785 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
H A DConstantRange.cpp857 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1544 auto *BMI = ConstantInt::get(P->getType(), APInt::getLowBitsSet(32, IC)); in generate()

12