Home
last modified time | relevance | path

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

12

/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp543 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
655 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
729 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
1288 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1304 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1310 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1325 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1344 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
H A DInstCombineSimplifyDemanded.cpp191 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
533 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
575 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
687 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
1170 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1189 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1223 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
H A DInstCombineCasts.cpp476 APInt HiBitMask = ~APInt::getLowBitsSet(WideWidth, MaxShiftAmountWidth); in narrowFunnelShift()
1151 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt()
1172 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1179 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1185 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
H A DInstCombineCompares.cpp1090 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1446 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
2314 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
3533 APInt Mask1 = IsTrailing ? APInt::getLowBitsSet(BitWidth, Num + 1) in foldICmpEqIntrinsicWithConstant()
3877 APInt Limit = APInt::getLowBitsSet(BitWidth, BitWidth - Num); in foldICmpIntrinsicWithConstant()
3890 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue() + 1); in foldICmpIntrinsicWithConstant()
3898 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue()); in foldICmpIntrinsicWithConstant()
4967 APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs)); in foldICmpBinOp()
5377 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in foldICmpEquality()
5397 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in foldICmpEquality()
H A DInstCombineCalls.cpp1853 MaskedValueIsZero(Y, APInt::getLowBitsSet(BitWidth, 3))) { in visitCallInst()
2016 APInt Op2Demanded = APInt::getLowBitsSet(BitWidth, Log2_32_Ceil(BitWidth)); in visitCallInst()
H A DInstCombineAndOrXor.cpp2278 if (*C == APInt::getLowBitsSet(Width, Width - ShiftC->getZExtValue())) { in visitAnd()
3295 APInt Low = APInt::getLowBitsSet(BigBitSize, SmallBitSize); in foldAndOrOfICmps()
/freebsd-14.2/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()
271 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
275 UndefElts &= APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
H A DARMISelLowering.cpp14842 FromMask = APInt::getLowBitsSet(ToMask.getBitWidth(), ToMask.popcount()); in ParseBFI()
15202 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformVMOVhrCombine()
15406 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformPREDICATE_CASTCombine()
17412 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in PerformVQMOVNCombine()
17638 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
17655 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
18978 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
18996 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
19004 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine()
19016 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h58 B.getContext(), APInt::getLowBitsSet(ResultWidth, SrcScale)); in Convert()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp134 Mask.One = APInt::getLowBitsSet( in extractBits()
H A DMachineIRBuilder.cpp570 ResTy, APInt::getLowBitsSet(ResTy.getScalarSizeInBits(), ImmOp)); in buildZExtInReg()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZOperators.td666 APInt::getLowBitsSet(BitWidth, 8));
674 APInt::getLowBitsSet(BitWidth, 8));
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1738 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
2362 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits()
2595 APInt InMask = APInt::getLowBitsSet(BitWidth, ZVT.getSizeInBits()); in SimplifyDemandedBits()
2778 APInt LoMask = APInt::getLowBitsSet(BitWidth, BitWidth - DemandedBitsLZ); in SimplifyDemandedBits()
4609 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC()
4715 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC()
6124 APInt Lg2Mask = APInt::getLowBitsSet(VT.getSizeInBits(), Lg2); in buildSDIVPow2WithCMov()
7679 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
7756 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
9320 APInt::getLowBitsSet(NumLoadBits, SrcEltBits), SL, LoadVT); in scalarizeVectorLoad()
[all …]
H A DLegalizeIntegerTypes.cpp1073 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
1080 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
2328 APInt Imm = APInt::getLowBitsSet(VT.getScalarSizeInBits(), in PromoteIntOp_VP_ZERO_EXTEND()
4017 SDValue Mask = DAG.getConstant(APInt::getLowBitsSet(Bits, HalfBits), dl, in ExpandIntRes_MUL()
4253 APInt::getLowBitsSet(NVTSize, VTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
4286 APInt::getLowBitsSet(NVTSize, NVTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
H A DDAGCombiner.cpp3733 DAG.getConstant(APInt::getLowBitsSet(SrcVT.getScalarSizeInBits(), in getTruncatedUSUBSAT()
8222 APInt DemandedBits = APInt::getLowBitsSet(NegBits, Bits); in matchRotateSub()
8245 APInt DemandedBits = APInt::getLowBitsSet(PosBits, MaskLoBits); in matchRotateSub()
10582 SDValue Mask = DAG.getConstant(APInt::getLowBitsSet(InnerShiftSize, in visitSRL()
10645 APInt Mask = APInt::getLowBitsSet(OpSizeInBits, OpSizeInBits - ShiftAmt); in visitSRL()
11935 APInt::getLowBitsSet(Value.getScalarValueSizeInBits(), in visitMSTORE()
12611 : APInt::getLowBitsSet(NumBits, in visitSETCC()
14459 APInt DemandedSrcElts = APInt::getLowBitsSet(SrcElts, DstElts); in visitSIGN_EXTEND_INREG()
18666 DAG.getConstant(APInt::getLowBitsSet(STType.getFixedSizeInBits(), in ForwardStoreValueToDirectLoad()
21136 APInt::getLowBitsSet(Value.getScalarValueSizeInBits(), in visitSTORE()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp480 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); in simplifyX86pack()
1844 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq()
2001 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Support/
H A DKnownBits.cpp892 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSZeros); in remGetLowBits()
H A DAPInt.cpp614 APInt Result(getLowBitsSet(BitWidth, numBits)); in getLoBits()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1508 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine()
1524 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPInt.h284 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp852 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
H A DConstantRange.cpp801 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1550 auto *BMI = ConstantInt::get(P->getType(), APInt::getLowBitsSet(32, IC)); in generate()

12