Home
last modified time | relevance | path

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

12

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DDemandedBits.cpp113 AB = APInt::getLowBitsSet(BitWidth, in determineLiveOperandBits()
170 AB = APInt::getLowBitsSet(BitWidth, AOut.getActiveBits()); in determineLiveOperandBits()
199 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
219 AB |= APInt::getLowBitsSet(BitWidth, ShiftAmt); in determineLiveOperandBits()
H A DLazyValueInfo.cpp1189 APInt ValMin = APInt::getLowBitsSet(BitWidth, ResMin); in getValueFromICmpCtpop()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DDivisionByConstantInfo.cpp83 APInt::getLowBitsSet(D.getBitWidth(), D.getBitWidth() - LeadingZeros); in get()
H A DKnownBits.cpp1041 APInt Mask = APInt::getLowBitsSet(BitWidth, RHSZeros); in remGetLowBits()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp569 APInt Mask = APInt::getLowBitsSet(TypeWidth, OuterShAmt) << MaskShift; in canEvaluateShiftedShift()
681 ? APInt::getLowBitsSet(TypeWidth, TypeWidth - OuterShAmt) in foldShiftedShift()
755 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()
1395 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1411 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1417 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1431 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1450 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
H A DInstCombineSimplifyDemanded.cpp200 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
535 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
578 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
722 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
1228 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1248 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1283 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
H A DInstCombineCasts.cpp559 APInt HiBitMask = ~APInt::getLowBitsSet(WideWidth, MaxShiftAmountWidth); in narrowFunnelShift()
1242 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt()
1263 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1270 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1276 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
H A DInstCombineCompares.cpp1119 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1493 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
2425 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
3838 APInt Mask1 = IsTrailing ? APInt::getLowBitsSet(BitWidth, Num + 1) in foldICmpEqIntrinsicWithConstant()
4249 APInt Limit = APInt::getLowBitsSet(BitWidth, BitWidth - Num); in foldICmpIntrinsicWithConstant()
4262 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue() + 1); in foldICmpIntrinsicWithConstant()
4270 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue()); in foldICmpIntrinsicWithConstant()
5575 APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs)); in foldICmpBinOp()
6110 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in foldICmpEquality()
6130 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in foldICmpEquality()
H A DInstCombineCalls.cpp2207 if (MaskedValueIsZero(Y, APInt::getLowBitsSet(BitWidth, 3))) { in visitCallInst()
2397 APInt Op2Demanded = APInt::getLowBitsSet(BitWidth, Log2_32_Ceil(BitWidth)); in visitCallInst()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp355 APInt Mask = APInt::getLowBitsSet(Ty->getPrimitiveSizeInBits(), in IsSafeActiveMask()
H A DARMTargetTransformInfo.cpp208 if (IC.SimplifyDemandedBits(&II, 0, APInt::getLowBitsSet(32, 16), in instCombineIntrinsic()
294 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
298 UndefElts &= APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
H A DARMISelLowering.cpp2657 auto MaskValue = APInt::getLowBitsSet(LocBits, ArgVT.getSizeInBits()); in LowerCall()
3347 auto MaskValue = APInt::getLowBitsSet(LocBits, RetVT.getSizeInBits()); in LowerReturn()
14932 FromMask = APInt::getLowBitsSet(ToMask.getBitWidth(), ToMask.popcount()); in ParseBFI()
15292 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformVMOVhrCombine()
15496 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformPREDICATE_CASTCombine()
17487 APInt Op1DemandedElts = APInt::getSplat(NumElts, APInt::getLowBitsSet(2, 1)); in PerformVMOVNCombine()
17508 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in PerformVQMOVNCombine()
17739 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
17756 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
19071 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.h306 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
1444 APInt Keep = getLowBitsSet(BitWidth, BitWidth - hiBits); in clearHighBits()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp475 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); in simplifyX86pack()
1951 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq()
2147 APInt DemandedMask = APInt::getLowBitsSet(EltSizeInBits, IdxSizeInBits); in simplifyX86VPERMMask()
2158 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic()
/freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/Builder/
H A DCIRBaseBuilder.h318 llvm::APInt val = llvm::APInt::getLowBitsSet(size, bits); in createLowBitsSet()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelValueTracking.cpp158 Mask.One = APInt::getLowBitsSet( in extractBits()
511 APInt InMask = APInt::getLowBitsSet(BitWidth, SrcBitWidth); in computeKnownBitsImpl()
H A DMachineIRBuilder.cpp593 ResTy, APInt::getLowBitsSet(ResTy.getScalarSizeInBits(), ImmOp)); in buildZExtInReg()
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZOperators.td810 APInt::getLowBitsSet(BitWidth, 8));
818 APInt::getLowBitsSet(BitWidth, 8));
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1795 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
1940 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedBits()
2459 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits()
2697 APInt InMask = APInt::getLowBitsSet(BitWidth, ZVT.getSizeInBits()); in SimplifyDemandedBits()
2878 APInt LoMask = APInt::getLowBitsSet(BitWidth, BitWidth - DemandedBitsLZ); in SimplifyDemandedBits()
4885 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC()
5002 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC()
6470 APInt Lg2Mask = APInt::getLowBitsSet(VT.getSizeInBits(), Lg2); in buildSDIVPow2WithCMov()
8041 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
10146 APInt::getLowBitsSet(NumLoadBits, SrcEltBits), SL, LoadVT); in scalarizeVectorLoad()
[all …]
H A DLegalizeIntegerTypes.cpp1109 APInt MaxVal = APInt::getLowBitsSet(NewBits, OldBits); in PromoteIntRes_ADDSUBSHLSAT()
1217 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
1224 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
4639 APInt::getLowBitsSet(NVTSize, VTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
4672 APInt::getLowBitsSet(NVTSize, NVTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1478 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine()
1494 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp778 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
H A DConstantRange.cpp868 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp2562 createAnd(rewriter, srcVal, llvm::APInt::getLowBitsSet(srcWidth, size)); in matchAndRewrite()
2662 llvm::APInt::getLowBitsSet(storageSize, size)); in matchAndRewrite()

12