Home
last modified time | relevance | path

Searched refs:APF (Results 1 – 25 of 29) 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.c379 #define APF (1 << 2) in v3d_qpu_flags_pack() macro
388 { APF, 0 }, in v3d_qpu_flags_pack()
395 { MC | APF, (1 << 5) | (1 << 4) }, in v3d_qpu_flags_pack()
406 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-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/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-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()
DSelectionDAG.cpp1253 APFloat APF = APFloat(Val); in getConstantFP() local
1254 APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, in getConstantFP()
1256 return getConstantFP(APF, DL, VT, isTarget); in getConstantFP()
7229 const APFloat &APF = CN->getValueAPF(); in getConstantFPSplatPow2ToLog2Int() local
7230 if (APF.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact) != in getConstantFPSplatPow2ToLog2Int()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1339 APFloat APF = APFloat(Val); in getConstantFP() local
1340 APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, in getConstantFP()
1342 return getConstantFP(APF, DL, VT, isTarget); in getConstantFP()
8620 const APFloat &APF = CN->getValueAPF(); in getConstantFPSplatPow2ToLog2Int() local
8621 if (APF.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact) != in getConstantFPSplatPow2ToLog2Int()
DLegalizeDAG.cpp293 APFloat APF = CFP->getValueAPF(); in ExpandConstantFP() local
299 if (!APF.isSignaling()) { in ExpandConstantFP()
302 if (ConstantFPSDNode::isValueValidForType(SVT, APF) && in ExpandConstantFP()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DSIISelLowering.cpp7714 const APFloat &APF = CRHS->getValueAPF(); in performSetCCCombine() local
7715 if (APF.isInfinity() && !APF.isNegative()) { in performSetCCCombine()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/
DPPCISelLowering.cpp7068 APFloat APF = APFloat(APFloat::PPCDoubleDouble(), APInt(128, TwoE31)); in LowerFP_TO_INT() local
7069 SDValue Tmp = DAG.getConstantFP(APF, dl, MVT::ppcf128); in LowerFP_TO_INT()

12