Home
last modified time | relevance | path

Searched refs:APF (Results 1 – 25 of 35) sorted by relevance

12

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.cpp27 APFloat APF = getAPFloat(); in printImpl() local
36 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
41 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
46 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
50 APInt API = APF.bitcastToAPInt(); in printImpl()
DNVPTXAsmPrinter.cpp1693 APFloat APF = APFloat(Fp->getValueAPF()); // make a copy in printFPConstant() local
1701 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1705 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1709 APInt API = APF.bitcastToAPInt(); in printFPConstant()
/external/llvm/lib/Target/NVPTX/
DNVPTXMCExpr.cpp26 APFloat APF = getAPFloat(); in printImpl() local
33 APF.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
38 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
42 APInt API = APF.bitcastToAPInt(); in printImpl()
DNVPTXAsmPrinter.cpp1708 APFloat APF = APFloat(Fp->getValueAPF()); // make a copy in printFPConstant() local
1716 APF.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1720 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored); in printFPConstant()
1724 APInt API = APF.bitcastToAPInt(); in printFPConstant()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp233 APFloat APF(Val); in getAPFloatFromSize() local
234 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in getAPFloatFromSize()
235 return APF; in getAPFloatFromSize()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DAsmWriter.cpp1290 const APFloat &APF = CFP->getValueAPF(); in WriteConstantInternal() local
1291 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1292 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1299 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1300 bool isInf = APF.isInfinity(); in WriteConstantInternal()
1301 bool isNaN = APF.isNaN(); in WriteConstantInternal()
1303 double Val = isDouble ? APF.convertToDouble() : APF.convertToFloat(); in WriteConstantInternal()
1305 APF.toString(StrVal, 6, 0, false); in WriteConstantInternal()
1326 APFloat apf = APF; in WriteConstantInternal()
1339 APInt API = APF.bitcastToAPInt(); in WriteConstantInternal()
[all …]
DCore.cpp1172 APFloat APF = cFP->getValueAPF(); in LLVMConstRealGetDouble() local
1173 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &APFLosesInfo); in LLVMConstRealGetDouble()
1175 return APF.convertToDouble(); in LLVMConstRealGetDouble()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp867 APFloat APF = APFloat(MI->getOperand(0).getFPImm()->getValueAPF()); in emitDebugValueComment() local
869 OS << (double)APF.convertToFloat(); in emitDebugValueComment()
871 OS << APF.convertToDouble(); in emitDebugValueComment()
876 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, in emitDebugValueComment()
878 OS << "(long double) " << APF.convertToDouble(); in emitDebugValueComment()
2197 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP);
2347 static void emitGlobalConstantFP(APFloat APF, Type *ET, AsmPrinter &AP) { in emitGlobalConstantFP() argument
2348 APInt API = APF.bitcastToAPInt(); in emitGlobalConstantFP()
2354 APF.toString(StrVal); in emitGlobalConstantFP()
/external/mesa3d/src/broadcom/qpu/
Dqpu_pack.c378 #define APF (1 << 2) in v3d_qpu_flags_pack() macro
387 { APF, 0 }, in v3d_qpu_flags_pack()
394 { MC | APF, (1 << 5) | (1 << 4) }, in v3d_qpu_flags_pack()
405 flags_present |= APF; in v3d_qpu_flags_pack()
/external/llvm/lib/Analysis/
DConstantFolding.cpp1365 APFloat APF(V); in GetConstantFoldFPValue() local
1367 APF.convert(APFloat::IEEEhalf, APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1368 return ConstantFP::get(Ty->getContext(), APF); in GetConstantFoldFPValue()
1456 APFloat APF = Op->getValueAPF(); in getValueAsDouble() local
1457 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1458 return APF.convertToDouble(); in getValueAsDouble()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DConstantFolding.cpp1493 APFloat APF(V); in GetConstantFoldFPValue() local
1495 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue()
1496 return ConstantFP::get(Ty->getContext(), APF); in GetConstantFoldFPValue()
1585 APFloat APF = Op->getValueAPF(); in getValueAsDouble() local
1586 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &unused); in getValueAsDouble()
1587 return APF.convertToDouble(); in getValueAsDouble()
/external/swiftshader/third_party/LLVM/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp565 APFloat APF = APFloat(MI->getOperand(0).getFPImm()->getValueAPF()); in EmitDebugValueComment() local
567 OS << (double)APF.convertToFloat(); in EmitDebugValueComment()
569 OS << APF.convertToDouble(); in EmitDebugValueComment()
574 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, in EmitDebugValueComment()
576 OS << "(long double) " << APF.convertToDouble(); in EmitDebugValueComment()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/CodeGen/GlobalISel/
DPatternMatchTest.cpp311 APFloat APF((float).5); in TEST() local
312 auto *CFP = ConstantFP::get(Context, APF); in TEST()
/external/llvm/lib/CodeGen/AsmPrinter/
DAsmPrinter.cpp750 APFloat APF = APFloat(MI->getOperand(0).getFPImm()->getValueAPF()); in emitDebugValueComment() local
752 OS << (double)APF.convertToFloat(); in emitDebugValueComment()
754 OS << APF.convertToDouble(); in emitDebugValueComment()
759 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, in emitDebugValueComment()
761 OS << "(long double) " << APF.convertToDouble(); in emitDebugValueComment()
/external/swiftshader/third_party/LLVM/lib/Target/CBackend/
DCBackend.cpp656 APFloat APF = APFloat(CFP->getValueAPF()); // copy in isFPCSafeToPrint() local
658 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored); in isFPCSafeToPrint()
661 sprintf(Buffer, "%a", APF.convertToDouble()); in isFPCSafeToPrint()
665 return APF.bitwiseIsEqual(APFloat(atof(Buffer))); in isFPCSafeToPrint()
668 std::string StrVal = ftostr(APF); in isFPCSafeToPrint()
679 return APF.bitwiseIsEqual(APFloat(atof(StrVal.c_str()))); in isFPCSafeToPrint()
/external/swiftshader/third_party/LLVM/lib/Target/CppBackend/
DCPPBackend.cpp204 APFloat APF = APFloat(CFP->getValueAPF()); // copy in printCFP() local
206 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &ignored); in printCFP()
211 sprintf(Buffer, "%A", APF.convertToDouble()); in printCFP()
215 APF.bitwiseIsEqual(APFloat(atof(Buffer)))) { in printCFP()
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DIndVarSimplify.cpp231 static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { in ConvertToSInt() argument
233 if (&APF.getSemantics() == &APFloat::PPCDoubleDouble) in ConvertToSInt()
237 if (APF.convertToInteger(&UIntVal, 64, true, APFloat::rmTowardZero, in ConvertToSInt()
/external/llvm/lib/Target/Hexagon/
DHexagonISelDAGToDAG.cpp923 const APFloat &APF = CN->getValueAPF(); in SelectConstantFP() local
928 APF.convertToFloat(), dl, MVT::f32))); in SelectConstantFP()
935 APF.convertToDouble(), dl, MVT::f64))); in SelectConstantFP()
/external/llvm/lib/CodeGen/
DMachineInstr.cpp379 APFloat APF = getFPImm()->getValueAPF(); in print() local
381 APF.convert(APFloat::IEEEsingle, APFloat::rmNearestTiesToEven, &Unused); in print()
382 OS << "half " << APF.convertToFloat(); in print()
/external/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp226 static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { in ConvertToSInt() argument
230 if (APF.convertToInteger(&UIntVal, 64, true, APFloat::rmTowardZero, in ConvertToSInt()
/external/swiftshader/third_party/LLVM/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp1382 APFloat APF = APFloat(APInt(128, TwoE31)); in ExpandFloatOp_FP_TO_UINT() local
1383 SDValue Tmp = DAG.getConstantFP(APF, MVT::ppcf128); in ExpandFloatOp_FP_TO_UINT()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DIndVarSimplify.cpp267 static bool ConvertToSInt(const APFloat &APF, int64_t &IntVal) { in ConvertToSInt() argument
271 if (APF.convertToInteger(makeMutableArrayRef(UIntVal), 64, true, in ConvertToSInt()
/external/llvm/lib/IR/
DCore.cpp981 APFloat APF = cFP->getValueAPF(); in LLVMConstRealGetDouble() local
982 APF.convert(APFloat::IEEEdouble, APFloat::rmNearestTiesToEven, &APFLosesInfo); in LLVMConstRealGetDouble()
984 return APF.convertToDouble(); in LLVMConstRealGetDouble()
/external/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp2847 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine() local
2848 if (APF.isInfinity() && !APF.isNegative()) { in performSetCCCombine()
/external/llvm/lib/CodeGen/SelectionDAG/
DLegalizeFloatTypes.cpp1634 APFloat APF = APFloat(APFloat::PPCDoubleDouble, APInt(128, TwoE31)); in ExpandFloatOp_FP_TO_UINT() local
1635 SDValue Tmp = DAG.getConstantFP(APF, dl, MVT::ppcf128); in ExpandFloatOp_FP_TO_UINT()

12