Home
last modified time | relevance | path

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

12

/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DDemandedBits.cpp141 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()
/openbsd/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineShifts.cpp508 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()
1202 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1217 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1223 APInt Mask(APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1238 APInt Bits = APInt::getLowBitsSet(BitWidth, BitWidth - Op1Val); in visitLShr()
1257 Ty, APInt::getLowBitsSet(BitWidth, BitWidth - ShAmtC)); in visitLShr()
1391 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmtC), 0, &I)) { in visitLShr()
1558 MaskedValueIsZero(Op0, APInt::getLowBitsSet(BitWidth, ShAmt), 0, &I)) { in visitAShr()
H A DInstCombineSimplifyDemanded.cpp174 DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
512 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
543 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyDemandedUseBits()
668 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedUseBits()
1075 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1091 APInt DemandedFromOps = APInt::getLowBitsSet(BitWidth, BitWidth - NLZ); in SimplifyMultipleUseDemandedBits()
1121 DemandedMask.isSubsetOf(APInt::getLowBitsSet( in SimplifyMultipleUseDemandedBits()
H A DInstCombineCasts.cpp612 APInt HiBitMask = ~APInt::getLowBitsSet(WideWidth, MaxShiftAmountWidth); in narrowFunnelShift()
1272 APInt::getLowBitsSet(DestBitSize, SrcBitsKept)); in visitZExt()
1293 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1300 APInt AndValue(APInt::getLowBitsSet(SrcSize, MidSize)); in visitZExt()
1306 APInt AndValue(APInt::getLowBitsSet(DstSize, MidSize)); in visitZExt()
H A DInstCombineCompares.cpp1155 CI1->getValue() != APInt::getLowBitsSet(CI1->getBitWidth(), NewWidth)) in processUGT_ADDCST_ADD()
1467 ConstantInt::get(SrcTy, APInt::getLowBitsSet(SrcBits, DstBits)); in foldICmpTruncConstant()
2146 APInt::getLowBitsSet(TypeBits, TypeBits - ShiftAmt->getZExtValue())); in foldICmpShlConstant()
3233 APInt Mask1 = IsTrailing ? APInt::getLowBitsSet(BitWidth, Num + 1) in foldICmpEqIntrinsicWithConstant()
3449 APInt Limit = APInt::getLowBitsSet(BitWidth, BitWidth - Num); in foldICmpIntrinsicWithConstant()
3462 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue() + 1); in foldICmpIntrinsicWithConstant()
3470 APInt Mask = APInt::getLowBitsSet(BitWidth, C.getLimitedValue()); in foldICmpIntrinsicWithConstant()
4401 APInt::getLowBitsSet(C->getBitWidth(), C->getBitWidth() - TZs)); in foldICmpBinOp()
4699 APInt AndVal = APInt::getLowBitsSet(TypeBits, TypeBits - ShAmt); in foldICmpEquality()
4719 APInt::getLowBitsSet(ASize, Op0->getType()->getPrimitiveSizeInBits()); in foldICmpEquality()
H A DInstCombineAndOrXor.cpp2017 if (*C == APInt::getLowBitsSet(Width, Width - ShiftC->getZExtValue())) { in visitAnd()
2037 APInt LowMask(APInt::getLowBitsSet(Width, Width - Ctlz)); in visitAnd()
2891 APInt Low = APInt::getLowBitsSet(BigBitSize, SmallBitSize); in foldAndOrOfICmps()
H A DInstCombineCalls.cpp1481 MaskedValueIsZero(Y, APInt::getLowBitsSet(BitWidth, 3))) { in visitCallInst()
1630 APInt Op2Demanded = APInt::getLowBitsSet(BitWidth, Log2_32_Ceil(BitWidth)); in visitCallInst()
/openbsd/gnu/llvm/llvm/include/llvm/IR/
H A DFixedPointBuilder.h58 B.getContext(), APInt::getLowBitsSet(ResultWidth, SrcScale)); in Convert()
/openbsd/gnu/llvm/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp480 MaxValue = APInt::getLowBitsSet(SrcScalarSizeInBits, DstScalarSizeInBits); in simplifyX86pack()
776 APInt Mask = APInt::getLowBitsSet(64, Length).shl(Index); in simplifyX86insertq()
933 APInt DemandedElts = APInt::getLowBitsSet(Width, DemandedWidth); in instCombineIntrinsic()
H A DX86ISelLowering.cpp23989 Mask = APInt::getLowBitsSet(Src.getScalarValueSizeInBits(), in MatchVectorAllZeroTest()
29696 APInt LowerBitsMask = APInt::getLowBitsSet(64, 32); in LowerMUL()
30360 APInt Mask = APInt::getLowBitsSet(8, 8 - ShiftAmt); in LowerShiftByScalarImmediate()
37791 APInt ZeroExtendMask = APInt::getLowBitsSet(EltSize, Width); in targetShrinkDemandedConstant()
42750 APInt DemandedMask = APInt::getLowBitsSet(64, 32); in SimplifyDemandedBitsForTargetNode()
43140 APInt DemandedMask(APInt::getLowBitsSet(BitWidth, 16)); in SimplifyDemandedBitsForTargetNode()
43169 APInt DemandedMask(APInt::getLowBitsSet(BitWidth, Count)); in SimplifyDemandedBitsForTargetNode()
51481 APInt Mask = APInt::getLowBitsSet(InVT.getScalarSizeInBits(), in combineVectorTruncationWithPACKUS()
52699 APInt DemandedElts = APInt::getLowBitsSet(8, 4); in combineCVTPH2PS()
53588 APInt NotMask = APInt::getLowBitsSet(NumBits, NumElts); in combineMOVMSK()
[all …]
/openbsd/gnu/llvm/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp130 Mask.One = APInt::getLowBitsSet( in extractBits()
H A DMachineIRBuilder.cpp547 ResTy, APInt::getLowBitsSet(ResTy.getScalarSizeInBits(), ImmOp)); in buildZExtInReg()
H A DLegalizerHelper.cpp2850 TargetTy, APInt::getLowBitsSet(TargetTy.getSizeInBits(), in buildBitFieldInsert()
3585 APInt Imm = APInt::getLowBitsSet(IdxTy.getSizeInBits(), Log2_32(NElts)); in clampDynamicVectorIndex()
6445 Src0Ty, APInt::getLowBitsSet(Src0Size, Src0Size - 1)); in lowerFCopySign()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp189 if (IC.SimplifyDemandedBits(&II, 0, APInt::getLowBitsSet(32, 16), in instCombineIntrinsic()
269 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
273 UndefElts &= APInt::getSplat(NumElts, !IsTop ? APInt::getLowBitsSet(2, 1) in simplifyDemandedVectorEltsIntrinsic()
H A DARMISelLowering.cpp2504 auto MaskValue = APInt::getLowBitsSet(LocBits, ArgVT.getSizeInBits()); in LowerCall()
15036 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformVMOVhrCombine()
15240 APInt DemandedMask = APInt::getLowBitsSet(32, 16); in PerformPREDICATE_CASTCombine()
17221 APInt::getSplat(NumElts, IsTop ? APInt::getLowBitsSet(2, 1) in PerformVQMOVNCombine()
17426 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
17443 APInt DemandedMask = APInt::getLowBitsSet(32, BitWidth); in PerformIntrinsicCombine()
18764 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
18782 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
18790 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine()
18802 APInt LowMask = APInt::getLowBitsSet(LowWidth, 16); in PerformDAGCombine()
[all …]
/openbsd/gnu/llvm/llvm/lib/Target/SystemZ/
H A DSystemZOperators.td639 APInt::getLowBitsSet(BitWidth, 8));
647 APInt::getLowBitsSet(BitWidth, 8));
/openbsd/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp1701 if (!DemandedBits.intersects(APInt::getLowBitsSet(BitWidth, ShAmt))) { in SimplifyDemandedBits()
1790 APInt DemandedFromOp(APInt::getLowBitsSet(BitWidth, BitWidth - CTLZ)); in SimplifyDemandedBits()
2205 APInt Mask = APInt::getLowBitsSet(BitWidth, ExVTBits); in SimplifyDemandedBits()
2423 APInt InMask = APInt::getLowBitsSet(BitWidth, ZVT.getSizeInBits()); in SimplifyDemandedBits()
2597 APInt LoMask = APInt::getLowBitsSet(BitWidth, BitWidth - DemandedBitsLZ); in SimplifyDemandedBits()
4409 APInt newMask = APInt::getLowBitsSet(maskWidth, width); in SimplifySetCC()
4515 APInt Imm = APInt::getLowBitsSet(ExtDstTyBits, ExtSrcTyBits); in SimplifySetCC()
7356 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
7435 APInt Mask = APInt::getLowBitsSet(HBitWidth, TrailingZeros); in expandDIVREMByConstant()
8900 APInt::getLowBitsSet(NumLoadBits, SrcEltBits), SL, LoadVT); in scalarizeVectorLoad()
[all …]
H A DLegalizeIntegerTypes.cpp992 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW), in SaturateWidenedDIVFIX()
999 DAG.getConstant(APInt::getLowBitsSet(VTW, SatW - 1), in SaturateWidenedDIVFIX()
3742 SDValue Mask = DAG.getConstant(APInt::getLowBitsSet(Bits, HalfBits), dl, in ExpandIntRes_MUL()
3978 APInt::getLowBitsSet(NVTSize, VTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
4011 APInt::getLowBitsSet(NVTSize, NVTSize - OverflowBits), dl, NVT); in ExpandIntRes_MULFIX()
/openbsd/gnu/llvm/llvm/include/llvm/ADT/
H A DAPInt.h289 static APInt getLowBitsSet(unsigned numBits, unsigned loBitsSet) { in getLowBitsSet() function
/openbsd/gnu/llvm/llvm/lib/IR/
H A DConstantFold.cpp1046 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
1084 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
H A DConstantRange.cpp797 APInt::getLowBitsSet(DstTySize, SrcTySize-1) + 1); in signExtend()
/openbsd/gnu/llvm/llvm/lib/Target/XCore/
H A DXCoreISelLowering.cpp1597 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 8); in PerformDAGCombine()
1613 APInt DemandedMask = APInt::getLowBitsSet(BitWidth, 16); in PerformDAGCombine()
/openbsd/gnu/llvm/llvm/lib/Support/
H A DAPInt.cpp606 APInt Result(getLowBitsSet(BitWidth, numBits)); in getLoBits()
/openbsd/gnu/llvm/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp1550 auto *BMI = ConstantInt::get(P->getType(), APInt::getLowBitsSet(32, IC)); in generate()
/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCGExpr.cpp2005 Val, llvm::APInt::getLowBitsSet(StorageSize, Info.Size), "bf.clear"); in EmitLoadOfBitfieldLValue()
2239 SrcVal, llvm::APInt::getLowBitsSet(StorageSize, Info.Size), in EmitStoreThroughBitfieldLValue()

12