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.cpp469 APSInt APFixedPoint::convertToInt(unsigned DstWidth, bool DstSign, in convertToInt() argument
474 APSInt DstMin = APSInt::getMinValue(DstWidth, !DstSign); in convertToInt()
475 APSInt DstMax = APSInt::getMaxValue(DstWidth, !DstSign); in convertToInt()
477 if (SrcWidth < DstWidth) { in convertToInt()
478 Result = Result.extend(DstWidth); in convertToInt()
479 } else if (SrcWidth > DstWidth) { in convertToInt()
495 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.h242 LLVM_ABI APSInt convertToInt(unsigned DstWidth, bool DstSign,
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp776 unsigned DstWidth = CI2->getBitWidth(); in ConstantFoldBinaryInstruction() local
777 unsigned SrcWidth = std::min(DstWidth, Log2(GVAlign)); in ConstantFoldBinaryInstruction()
778 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1780 unsigned DstWidth = Ty->getFPMantissaWidth(); in visitFPTrunc() local
1803 if (OpWidth >= 2*DstWidth+1 && DstWidth >= SrcWidth) { in visitFPTrunc()
1817 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
1830 if (OpWidth >= 2*DstWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp1175 unsigned DstWidth = CGM.getContext().getIntWidth(DestType); in ProduceIntToIntCast() local
1176 if (DstWidth == SrcWidth) in ProduceIntToIntCast()
1179 ? CI->getValue().sextOrTrunc(DstWidth) in ProduceIntToIntCast()
1180 : CI->getValue().zextOrTrunc(DstWidth); in ProduceIntToIntCast()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp2030 static Value *getIntToFPVal(Value *I2F, IRBuilderBase &B, unsigned DstWidth) { in getIntToFPVal() argument
2036 if (BitWidth < DstWidth || (BitWidth == DstWidth && isa<SIToFPInst>(I2F))) { in getIntToFPVal()
2037 Type *IntTy = Op->getType()->getWithNewBitWidth(DstWidth); in getIntToFPVal()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaStmt.cpp1763 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum() local
1765 AdjustAPSInt(*RHSVal, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
1782 AdjustAPSInt(Val, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelLowering.cpp4744 uint64_t DstWidth = DstVT.getScalarSizeInBits(); in LowerFP_TO_INT_SAT() local
4745 assert(SatWidth <= DstWidth && "Saturation width cannot exceed result width"); in LowerFP_TO_INT_SAT()
4766 if (DstWidth < SatWidth) in LowerFP_TO_INT_SAT()
4774 APInt::getSignedMaxValue(SatWidth).sext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
4777 APInt::getSignedMinValue(SatWidth).sext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
4781 APInt::getAllOnes(SatWidth).zext(DstWidth), DL, DstVT); in LowerFP_TO_INT_SAT()
16674 static bool createTblShuffleMask(unsigned SrcWidth, unsigned DstWidth, in createTblShuffleMask() argument
16677 if (DstWidth % 8 != 0 || DstWidth <= 16 || DstWidth > 64) in createTblShuffleMask()
16680 assert(DstWidth % SrcWidth == 0 && in createTblShuffleMask()
16684 unsigned Factor = DstWidth / SrcWidth; in createTblShuffleMask()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp11647 unsigned DstWidth = DstVT.getScalarSizeInBits(); in expandFP_TO_INT_SAT() local
11648 assert(SatWidth <= DstWidth && in expandFP_TO_INT_SAT()
11655 MinInt = APInt::getSignedMinValue(SatWidth).sext(DstWidth); in expandFP_TO_INT_SAT()
11656 MaxInt = APInt::getSignedMaxValue(SatWidth).sext(DstWidth); in expandFP_TO_INT_SAT()
11658 MinInt = APInt::getMinValue(SatWidth).zext(DstWidth); in expandFP_TO_INT_SAT()
11659 MaxInt = APInt::getMaxValue(SatWidth).zext(DstWidth); in expandFP_TO_INT_SAT()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp22034 unsigned DstWidth = DstVT.getScalarSizeInBits(); in LowerFP_TO_INT_SAT() local
22036 assert(SatWidth <= DstWidth && SatWidth <= TmpWidth && in LowerFP_TO_INT_SAT()
22061 MinInt = APInt::getSignedMinValue(SatWidth).sext(DstWidth); in LowerFP_TO_INT_SAT()
22062 MaxInt = APInt::getSignedMaxValue(SatWidth).sext(DstWidth); in LowerFP_TO_INT_SAT()
22064 MinInt = APInt::getMinValue(SatWidth).zext(DstWidth); in LowerFP_TO_INT_SAT()
22065 MaxInt = APInt::getMaxValue(SatWidth).zext(DstWidth); in LowerFP_TO_INT_SAT()