Home
last modified time | relevance | path

Searched refs:convertFromAPInt (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp140 APFloat::opStatus Status = F.convertFromAPInt(MaxInt, MaxInt.isSigned(), in fitsInFloatSemantics()
146 Status = F.convertFromAPInt(MinInt, MinInt.isSigned(), in fitsInFloatSemantics()
473 APFloat::opStatus S = Flt.convertFromAPInt(Val, Sema.isSigned(), RM); in convertToFloat()
H A DAPFloat.cpp2086 fs = MagicConstant.convertFromAPInt(IntegerConstant, false, in roundToIntegral()
2478 IEEEFloat::opStatus IEEEFloat::convertFromAPInt(const APInt &Val, bool isSigned, in convertFromAPInt() function in llvm::detail::IEEEFloat
4700 APFloat::opStatus DoubleAPFloat::convertFromAPInt(const APInt &Input, in convertFromAPInt() function in llvm::detail::DoubleAPFloat
4705 auto Ret = Tmp.convertFromAPInt(Input, IsSigned, RM); in convertFromAPInt()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h303 opStatus convertFromAPInt(const APInt &, bool, roundingMode);
670 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, roundingMode RM);
1113 opStatus convertFromAPInt(const APInt &Input, bool IsSigned, in convertFromAPInt() function
1115 APFLOAT_DISPATCH_ON_SEMANTICS(convertFromAPInt(Input, IsSigned, RM)); in convertFromAPInt()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1069 apf.convertFromAPInt(a, /*IsSigned=*/false, in fold()
1095 apf.convertFromAPInt(a, /*IsSigned=*/true, in fold()
1562 signedMax.convertFromAPInt(APInt::getSignedMaxValue(intWidth), true, in matchAndRewrite()
1578 unsignedMax.convertFromAPInt(APInt::getMaxValue(intWidth), false, in matchAndRewrite()
1595 signedMin.convertFromAPInt(APInt::getSignedMinValue(intWidth), true, in matchAndRewrite()
1610 unsignedMin.convertFromAPInt(APInt::getMinValue(intWidth), false, in matchAndRewrite()
1640 apf.convertFromAPInt(rhsInt, !isUnsigned, APFloat::rmNearestTiesToEven); in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp688 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
703 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
/llvm-project-15.0.7/lldb/source/Utility/
H A DScalar.cpp200 m_float.convertFromAPInt(m_integer, m_integer.isSigned(), in FloatPromote()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp768 DstVal.convertFromAPInt(*MaybeSrcVal, Opcode == TargetOpcode::G_SITOFP, in ConstantFoldIntToFloat()
H A DLegalizerHelper.cpp6080 TwoPExpFP.convertFromAPInt(TwoPExpInt, false, APFloat::rmNearestTiesToEven); in lowerFPTOUI()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp6493 SMax.convertFromAPInt(APInt::getSignedMaxValue(IntWidth), true, in foldFCmpIntToFPConst()
6505 UMax.convertFromAPInt(APInt::getMaxValue(IntWidth), false, in foldFCmpIntToFPConst()
6518 SMin.convertFromAPInt(APInt::getSignedMinValue(IntWidth), true, in foldFCmpIntToFPConst()
6529 UMin.convertFromAPInt(APInt::getMinValue(IntWidth), false, in foldFCmpIntToFPConst()
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp475 apf.convertFromAPInt(api, opc==Instruction::SIToFP, in ConstantFoldCastInstruction()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprScalar.cpp921 if (MinSrc.convertFromAPInt(Min, !Unsigned, APFloat::rmTowardZero) & in EmitFloatConversionCheck()
933 if (MaxSrc.convertFromAPInt(Max, !Unsigned, APFloat::rmTowardZero) & in EmitFloatConversionCheck()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DTargetLowering.cpp7425 APF.convertFromAPInt(SignMask, false, APFloat::rmNearestTiesToEven)) { in expandFP_TO_UINT()
9565 MinFloat.convertFromAPInt(MinInt, IsSigned, APFloat::rmTowardZero); in expandFP_TO_INT_SAT()
9567 MaxFloat.convertFromAPInt(MaxInt, IsSigned, APFloat::rmTowardZero); in expandFP_TO_INT_SAT()
H A DSelectionDAG.cpp4998 (void)apf.convertFromAPInt(Val, in getNode()
/llvm-project-15.0.7/llvm/lib/Target/RISCV/
H A DRISCVISelLowering.cpp1868 MaxVal.convertFromAPInt(APInt::getOneBitSet(Precision, Precision - 1), in lowerFTRUNC_FCEIL_FFLOOR()
1920 MaxVal.convertFromAPInt(APInt::getOneBitSet(Precision, Precision - 1), in lowerFROUND()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaOverload.cpp361 Result.convertFromAPInt(*IntConstantValue, IntConstantValue->isSigned(), in getNarrowingKind()
H A DSemaChecking.cpp13847 TargetFloatValue.convertFromAPInt( in CheckImplicitConversion()
H A DSemaExpr.cpp10275 Float.convertFromAPInt(Result, IntTy->hasSignedIntegerRepresentation(), in canConvertIntTyToFloatTy()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp2639 APFloat::opStatus St = Result.convertFromAPInt(Value, Value.isSigned(), in HandleIntToFloatCast()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86ISelLowering.cpp22793 APFloat::opStatus MinStatus = MinFloat.convertFromAPInt( in LowerFP_TO_INT_SAT()
22795 APFloat::opStatus MaxStatus = MaxFloat.convertFromAPInt( in LowerFP_TO_INT_SAT()