Home
last modified time | relevance | path

Searched refs:DstWidth (Results 1 – 11 of 11) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp452 APSInt APFixedPoint::convertToInt(unsigned DstWidth, bool DstSign, in convertToInt() argument
457 APSInt DstMin = APSInt::getMinValue(DstWidth, !DstSign); in convertToInt()
458 APSInt DstMax = APSInt::getMaxValue(DstWidth, !DstSign); in convertToInt()
460 if (SrcWidth < DstWidth) { in convertToInt()
461 Result = Result.extend(DstWidth); in convertToInt()
462 } else if (SrcWidth > DstWidth) { in convertToInt()
478 return Result.extOrTrunc(DstWidth); in convertToInt()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DFixedPointBuilder.h38 unsigned DstWidth = DstSema.getWidth(); in Convert() local
44 Type *DstIntTy = B.getIntNTy(DstWidth); in Convert()
79 ResultWidth = std::max(SrcWidth + DstScale - SrcScale, DstWidth); in Convert()
106 if (ResultWidth != DstWidth) in Convert()
155 unsigned DstWidth, bool DstIsSigned) { in CreateFixedToInteger() argument
158 FixedPointSemantics::GetIntegerSemantics(DstWidth, DstIsSigned), true); in CreateFixedToInteger()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFixedPoint.h227 APSInt convertToInt(unsigned DstWidth, bool DstSign,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp783 unsigned DstWidth = CI2->getBitWidth(); in ConstantFoldBinaryInstruction() local
784 unsigned SrcWidth = std::min(DstWidth, Log2(GVAlign)); in ConstantFoldBinaryInstruction()
785 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1732 unsigned DstWidth = Ty->getFPMantissaWidth(); in visitFPTrunc() local
1755 if (OpWidth >= 2*DstWidth+1 && DstWidth >= SrcWidth) { in visitFPTrunc()
1769 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1782 if (OpWidth >= 2*DstWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1089 unsigned DstWidth = CGM.getContext().getIntWidth(DestType); in ProduceIntToIntCast() local
1090 if (DstWidth == SrcWidth) in ProduceIntToIntCast()
1093 ? CI->getValue().sextOrTrunc(DstWidth) in ProduceIntToIntCast()
1094 : CI->getValue().zextOrTrunc(DstWidth); in ProduceIntToIntCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2019 static Value *getIntToFPVal(Value *I2F, IRBuilderBase &B, unsigned DstWidth) { in getIntToFPVal() argument
2025 if (BitWidth < DstWidth || (BitWidth == DstWidth && isa<SIToFPInst>(I2F))) { in getIntToFPVal()
2026 Type *IntTy = Op->getType()->getWithNewBitWidth(DstWidth); in getIntToFPVal()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1674 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum() local
1678 AdjustAPSInt(RhsVal, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
1697 AdjustAPSInt(Val, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4578 uint64_t DstWidth = DstVT.getScalarSizeInBits(); in LowerFP_TO_INT_SAT() local
4579 assert(SatWidth <= DstWidth && "Saturation width cannot exceed result width"); in LowerFP_TO_INT_SAT()
4600 if (DstWidth < SatWidth) in LowerFP_TO_INT_SAT()
4608 APInt::getSignedMaxValue(SatWidth).sext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
4611 APInt::getSignedMinValue(SatWidth).sext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
4615 APInt::getAllOnes(SatWidth).zext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
16285 static bool createTblShuffleMask(unsigned SrcWidth, unsigned DstWidth, in createTblShuffleMask() argument
16288 if (DstWidth % 8 != 0 || DstWidth <= 16 || DstWidth >= 64) in createTblShuffleMask()
16291 assert(DstWidth % SrcWidth == 0 && in createTblShuffleMask()
16295 unsigned Factor = DstWidth / SrcWidth; in createTblShuffleMask()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp11140 unsigned DstWidth = DstVT.getScalarSizeInBits(); in expandFP_TO_INT_SAT() local
11141 assert(SatWidth <= DstWidth && in expandFP_TO_INT_SAT()
11148 MinInt = APInt::getSignedMinValue(SatWidth).sext(DstWidth); in expandFP_TO_INT_SAT()
11149 MaxInt = APInt::getSignedMaxValue(SatWidth).sext(DstWidth); in expandFP_TO_INT_SAT()
11151 MinInt = APInt::getMinValue(SatWidth).zext(DstWidth); in expandFP_TO_INT_SAT()
11152 MaxInt = APInt::getMaxValue(SatWidth).zext(DstWidth); in expandFP_TO_INT_SAT()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp21305 unsigned DstWidth = DstVT.getScalarSizeInBits(); in LowerFP_TO_INT_SAT() local
21307 assert(SatWidth <= DstWidth && SatWidth <= TmpWidth && in LowerFP_TO_INT_SAT()
21332 MinInt = APInt::getSignedMinValue(SatWidth).sext(DstWidth); in LowerFP_TO_INT_SAT()
21333 MaxInt = APInt::getSignedMaxValue(SatWidth).sext(DstWidth); in LowerFP_TO_INT_SAT()
21335 MinInt = APInt::getMinValue(SatWidth).zext(DstWidth); in LowerFP_TO_INT_SAT()
21336 MaxInt = APInt::getMaxValue(SatWidth).zext(DstWidth); in LowerFP_TO_INT_SAT()