Searched refs:DstSema (Results 1 – 4 of 4) sorted by relevance
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 36 unsigned DstWidth = DstSema.getWidth(); in Convert() 38 unsigned DstScale = DstSema.getScale(); in Convert() 40 bool DstIsSigned = DstSema.isSigned(); in Convert() 66 if (!DstSema.isSaturated()) { in Convert() 143 return Convert(Src, SrcSema, DstSema, false); in CreateFixedToFixed() 169 DstSema, false); in CreateIntegerToFixed() 190 bool UseSigned = DstSema.isSigned() || DstSema.hasUnsignedPadding(); in CreateFloatingToFixed() 198 ConstantFP::get(OpTy, std::pow(2, DstSema.getScale()))); in CreateFloatingToFixed() 200 Type *ResultTy = B.getIntNTy(DstSema.getWidth()); in CreateFloatingToFixed() 201 if (DstSema.isSaturated()) { in CreateFloatingToFixed() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 19 APFixedPoint APFixedPoint::convert(const FixedPointSemantics &DstSema, in convert() argument 22 unsigned DstWidth = DstSema.getWidth(); in convert() 23 unsigned DstScale = DstSema.getScale(); in convert() 37 std::min(DstScale + DstSema.getIntegralBits(), NewVal.getBitWidth())); in convert() 43 if (DstSema.isSaturated()) in convert() 51 if (!DstSema.isSigned() && NewVal.isSigned() && NewVal.isNegative()) { in convert() 53 if (DstSema.isSaturated()) in convert() 60 NewVal.setIsSigned(DstSema.isSigned()); in convert() 61 return APFixedPoint(NewVal, DstSema); in convert()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APFixedPoint.h | 127 APFixedPoint convert(const FixedPointSemantics &DstSema,
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprScalar.cpp | 2773 auto DstSema = CGF.getContext().getFixedPointSemantics(Info.Ty); in EmitScalarPrePostIncDec() local 2774 Info.RHS = FPBuilder.CreateIntegerToFixed(Info.RHS, true, DstSema); in EmitScalarPrePostIncDec()
|