/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 455 unsigned SrcWidth = getWidth(); in convertToInt() local 460 if (SrcWidth < DstWidth) { in convertToInt() 462 } else if (SrcWidth > DstWidth) { in convertToInt() 463 DstMin = DstMin.extend(SrcWidth); in convertToInt() 464 DstMax = DstMax.extend(SrcWidth); in convertToInt()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 547 unsigned SrcWidth = SrcTy->getScalarSizeInBits(); in narrowBinOp() local 598 unsigned MaxShiftAmt = SrcWidth - DestWidth; in narrowBinOp() 602 APInt(SrcWidth, MaxShiftAmt)))) { in narrowBinOp() 684 unsigned SrcWidth = SrcTy->getScalarSizeInBits(); in visitTrunc() local 709 if (DestWidth * 2 < SrcWidth) { in visitTrunc() 754 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1)); in visitTrunc() 762 Constant *One = ConstantInt::get(SrcTy, APInt(SrcWidth, 1)); in visitTrunc() 787 unsigned MaxShiftAmt = SrcWidth - std::max(DestWidth, AWidth); in visitTrunc() 794 APInt(SrcWidth, MaxShiftAmt)))) { in visitTrunc() 866 if (SrcWidth % DestWidth == 0) { in visitTrunc() [all …]
|
H A D | InstCombineNegator.cpp | 254 unsigned SrcWidth = SrcOp->getType()->getScalarSizeInBits(); in visitImpl() local 255 const APInt &FullShift = APInt(SrcWidth, SrcWidth - 1); in visitImpl()
|
H A D | InstCombineShifts.cpp | 1047 unsigned SrcWidth = X->getType()->getScalarSizeInBits(); in visitShl() local 1048 if (ShAmtC < SrcWidth && in visitShl() 1049 MaskedValueIsZero(X, APInt::getHighBitsSet(SrcWidth, ShAmtC), 0, &I)) in visitShl() 1471 unsigned SrcWidth = X->getType()->getScalarSizeInBits(); in visitLShr() local 1479 if (AmtSum < SrcWidth && in visitLShr() 1480 (TruncSrc->hasOneUse() || C1->uge(SrcWidth - BitWidth))) { in visitLShr() 1545 unsigned SrcWidth = X->getType()->getScalarSizeInBits(); in visitLShr() local 1546 unsigned WidthDiff = BitWidth - SrcWidth; in visitLShr() 1547 if (SrcWidth % 16 == 0) { in visitLShr()
|
H A D | InstCombineMulDivRem.cpp | 286 unsigned SrcWidth = X->getType()->getScalarSizeInBits(); in visitMul() local 288 if (ShiftAmt >= BitWidth - SrcWidth) { in visitMul()
|
H A D | InstCombineVectorOps.cpp | 290 unsigned SrcWidth = SrcTy->getScalarSizeInBits(); in foldBitcastExtElt() local 301 Type *SrcIntTy = IntegerType::getIntNTy(Scalar->getContext(), SrcWidth); in foldBitcastExtElt()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | FixedPointBuilder.h | 37 unsigned SrcWidth = SrcSema.getWidth(); in Convert() local 47 unsigned ResultWidth = SrcWidth; in Convert() 79 ResultWidth = std::max(SrcWidth + DstScale - SrcScale, DstWidth); in Convert()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | VectorUtils.cpp | 312 bool llvm::getShuffleDemandedElts(int SrcWidth, ArrayRef<int> Mask, in getShuffleDemandedElts() argument 315 DemandedLHS = DemandedRHS = APInt::getZero(SrcWidth); in getShuffleDemandedElts() 329 assert((-1 <= M) && (M < (SrcWidth * 2)) && in getShuffleDemandedElts() 340 if (M < SrcWidth) in getShuffleDemandedElts() 343 DemandedRHS.setBit(M - SrcWidth); in getShuffleDemandedElts()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/ |
H A D | VectorUtils.h | 192 bool getShuffleDemandedElts(int SrcWidth, ArrayRef<int> Mask,
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | InterpBuiltin.cpp | 1001 unsigned SrcWidth = S.getCtx().getIntWidth(Call->getArg(0)->getType()); in interp__builtin_is_aligned_up_down() local 1002 APSInt MaxValue(APInt::getOneBitSet(SrcWidth, SrcWidth - 1)); in interp__builtin_is_aligned_up_down()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 784 unsigned SrcWidth = std::min(DstWidth, Log2(GVAlign)); in ConstantFoldBinaryInstruction() local 785 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprConstant.cpp | 1088 unsigned SrcWidth = CGM.getContext().getIntWidth(FromType); in ProduceIntToIntCast() local 1090 if (DstWidth == SrcWidth) in ProduceIntToIntCast()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeDAG.cpp | 715 TypeSize SrcWidth = SrcVT.getSizeInBits(); in LegalizeLoadOps() local 719 if (SrcWidth != SrcVT.getStoreSizeInBits() && in LegalizeLoadOps() 761 } else if (!isPowerOf2_64(SrcWidth.getKnownMinValue())) { in LegalizeLoadOps() 764 unsigned SrcWidthBits = SrcWidth.getFixedValue(); in LegalizeLoadOps()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 9474 unsigned SrcWidth = Info.Ctx.getIntWidth(ForType); in getAlignmentArgument() local 9475 APSInt MaxValue(APInt::getOneBitSet(SrcWidth, SrcWidth - 1)); in getAlignmentArgument() 9484 APSInt(Alignment.zextOrTrunc(SrcWidth), /*isUnsigned=*/true); in getAlignmentArgument() 9488 assert(Alignment.getBitWidth() == SrcWidth); in getAlignmentArgument()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64ISelLowering.cpp | 16285 static bool createTblShuffleMask(unsigned SrcWidth, unsigned DstWidth, in createTblShuffleMask() argument 16291 assert(DstWidth % SrcWidth == 0 && in createTblShuffleMask() 16295 unsigned Factor = DstWidth / SrcWidth; in createTblShuffleMask() 16314 auto SrcWidth = cast<IntegerType>(SrcTy->getElementType())->getBitWidth(); in createTblShuffleForZExt() local 16318 if (!createTblShuffleMask(SrcWidth, DstWidth, NumElts, IsLittleEndian, Mask)) in createTblShuffleForZExt() 16334 auto SrcWidth = cast<IntegerType>(SrcTy->getElementType())->getBitWidth(); in createTblShuffleForSExt() local 16338 if (!createTblShuffleMask(SrcWidth, DstWidth, SrcTy->getNumElements(), in createTblShuffleForSExt() 16501 auto SrcWidth = SrcTy->getElementType()->getScalarSizeInBits(); in optimizeExtendOrTruncateConversion() local 16505 if (SrcWidth * 2 >= TruncDstType->getElementType()->getScalarSizeInBits()) in optimizeExtendOrTruncateConversion()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86ISelLowering.cpp | 54885 unsigned SrcWidth = SrcVT.getSizeInBits(); in combineToFPTruncExtElt() local 54886 if (SrcWidth % DestWidth != 0) in combineToFPTruncExtElt()
|