Home
last modified time | relevance | path

Searched refs:apf (Results 1 – 7 of 7) sorted by relevance

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp687 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended()); in getConstantValue() local
688 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
691 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
702 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended()); in getConstantValue() local
703 (void)apf.convertFromAPInt(GV.IntVal, in getConstantValue()
706 GV.IntVal = apf.bitcastToAPInt(); in getConstantValue()
719 APFloat apf = APFloat(APFloat::x87DoubleExtended(), GV.IntVal); in getConstantValue() local
722 (void)apf.convertToInteger(makeMutableArrayRef(v), BitWidth, in getConstantValue()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp1067 APFloat apf(floatTy.getFloatSemantics(), in fold() local
1069 apf.convertFromAPInt(a, /*IsSigned=*/false, in fold()
1071 return apf; in fold()
1093 APFloat apf(floatTy.getFloatSemantics(), in fold() local
1095 apf.convertFromAPInt(a, /*IsSigned=*/true, in fold()
1097 return apf; in fold()
1638 APFloat apf(floatTy.getFloatSemantics(), in matchAndRewrite() local
1640 apf.convertFromAPInt(rhsInt, !isUnsigned, APFloat::rmNearestTiesToEven); in matchAndRewrite()
1642 bool equal = apf == rhs; in matchAndRewrite()
/llvm-project-15.0.7/llvm/lib/IR/
H A DAsmWriter.cpp1378 APFloat apf = APF; in WriteConstantInternal() local
1384 bool IsSNAN = apf.isSignaling(); in WriteConstantInternal()
1385 apf.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, in WriteConstantInternal()
1388 APInt Payload = apf.bitcastToAPInt(); in WriteConstantInternal()
1389 apf = APFloat::getSNaN(APFloat::IEEEdouble(), apf.isNegative(), in WriteConstantInternal()
1393 Out << format_hex(apf.bitcastToAPInt().getZExtValue(), 0, /*Upper=*/true); in WriteConstantInternal()
H A DConstantFold.cpp473 APFloat apf(DestTy->getFltSemantics(), in ConstantFoldCastInstruction() local
475 apf.convertFromAPInt(api, opc==Instruction::SIToFP, in ConstantFoldCastInstruction()
477 return ConstantFP::get(V->getContext(), apf); in ConstantFoldCastInstruction()
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A D2009-01-19-fmod-constant-float-specials.ll6 ; ModuleID = 'apf.c'
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp100 auto apf = [&]() -> llvm::APFloat { in createRealConstant() local
117 return createRealConstant(loc, fltTy, apf()); in createRealConstant()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp4996 APFloat apf(EVTToAPFloatSemantics(VT), in getNode() local
4998 (void)apf.convertFromAPInt(Val, in getNode()
5001 return getConstantFP(apf, DL, VT); in getNode()