/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | APFloat.h | 29 class APFloat; variable 603 std::unique_ptr<APFloat[]> Floats; 605 opStatus addImpl(const APFloat &a, const APFloat &aa, const APFloat &c, 606 const APFloat &cc, roundingMode RM); 616 DoubleAPFloat(const fltSemantics &S, APFloat &&First, APFloat &&Second); 632 APFloat &getFirst() { return Floats[0]; } in getFirst() 633 const APFloat &getFirst() const { return Floats[0]; } in getFirst() 634 APFloat &getSecond() { return Floats[1]; } in getSecond() 635 const APFloat &getSecond() const { return Floats[1]; } in getSecond() 653 class APFloat : public APFloatBase { [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | APFloat.h | 38 class APFloat; variable 435 bool getExactInverse(APFloat *inv) const; 594 std::unique_ptr<APFloat[]> Floats; 596 opStatus addImpl(const APFloat &a, const APFloat &aa, const APFloat &c, 597 const APFloat &cc, roundingMode RM); 607 DoubleAPFloat(const fltSemantics &S, APFloat &&First, APFloat &&Second); 623 APFloat &getFirst() { return Floats[0]; } in getFirst() 624 const APFloat &getFirst() const { return Floats[0]; } in getFirst() 625 APFloat &getSecond() { return Floats[1]; } in getSecond() 626 const APFloat &getSecond() const { return Floats[1]; } in getSecond() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/ |
D | NVPTXMCExpr.cpp | 19 NVPTXFloatMCExpr::create(VariantKind Kind, const APFloat &Flt, MCContext &Ctx) { in create() 26 APFloat APF = getAPFloat(); in printImpl() 35 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl() 40 APF.convert(APFloat::IEEEsingle(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl() 45 APF.convert(APFloat::IEEEdouble(), APFloat::rmNearestTiesToEven, &Ignored); in printImpl()
|
D | NVPTXMCExpr.h | 31 const APFloat Flt; 33 explicit NVPTXFloatMCExpr(VariantKind Kind, APFloat Flt) in NVPTXFloatMCExpr() 40 static const NVPTXFloatMCExpr *create(VariantKind Kind, const APFloat &Flt, 43 static const NVPTXFloatMCExpr *createConstantFPHalf(const APFloat &Flt, in createConstantFPHalf() 48 static const NVPTXFloatMCExpr *createConstantFPSingle(const APFloat &Flt, in createConstantFPSingle() 53 static const NVPTXFloatMCExpr *createConstantFPDouble(const APFloat &Flt, in createConstantFPDouble() 66 APFloat getAPFloat() const { return Flt; } in getAPFloat()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | APFloat.cpp | 136 if (&Sem == &llvm::APFloat::IEEEhalf()) in SemanticsToEnum() 138 else if (&Sem == &llvm::APFloat::IEEEsingle()) in SemanticsToEnum() 140 else if (&Sem == &llvm::APFloat::IEEEdouble()) in SemanticsToEnum() 142 else if (&Sem == &llvm::APFloat::x87DoubleExtended()) in SemanticsToEnum() 144 else if (&Sem == &llvm::APFloat::IEEEquad()) in SemanticsToEnum() 146 else if (&Sem == &llvm::APFloat::PPCDoubleDouble()) in SemanticsToEnum() 426 D->exponent += static_cast<APFloat::ExponentType>((dot - p) - (dot > p)); in interpretDecimal() 428 static_cast<APFloat::ExponentType>((p - D->firstSigDigit) in interpretDecimal() 3689 bool IEEEFloat::getExactInverse(APFloat *inv) const { in getExactInverse() 3713 *inv = APFloat(reciprocal, *semantics); in getExactInverse() [all …]
|
D | Z3Solver.cpp | 234 return llvm::APFloat::IEEEhalf(); in getFloatSemantics() 236 return llvm::APFloat::IEEEsingle(); in getFloatSemantics() 238 return llvm::APFloat::IEEEdouble(); in getFloatSemantics() 240 return llvm::APFloat::IEEEquad(); in getFloatSemantics() 247 return (llvm::APFloat::semanticsPrecision(LHS) == in areEquivalent() 248 llvm::APFloat::semanticsPrecision(RHS)) && in areEquivalent() 249 (llvm::APFloat::semanticsMinExponent(LHS) == in areEquivalent() 250 llvm::APFloat::semanticsMinExponent(RHS)) && in areEquivalent() 251 (llvm::APFloat::semanticsMaxExponent(LHS) == in areEquivalent() 252 llvm::APFloat::semanticsMaxExponent(RHS)) && in areEquivalent() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 132 APFloat FP(DestTy->getFltSemantics(), Result); in FoldBitCast() 1566 APFloat APF(V); in GetConstantFoldFPValue() 1568 APF.convert(Ty->getFltSemantics(), APFloat::rmNearestTiesToEven, &unused); in GetConstantFoldFPValue() 1572 return ConstantFP::get(Ty->getContext(), APFloat(V)); in GetConstantFoldFPValue() 1626 Constant *ConstantFoldSSEConvertToInt(const APFloat &Val, bool roundTowardZero, in ConstantFoldSSEConvertToInt() 1635 APFloat::roundingMode mode = roundTowardZero? APFloat::rmTowardZero in ConstantFoldSSEConvertToInt() 1636 : APFloat::rmNearestTiesToEven; in ConstantFoldSSEConvertToInt() 1637 APFloat::opStatus status = in ConstantFoldSSEConvertToInt() 1640 if (status != APFloat::opOK && in ConstantFoldSSEConvertToInt() 1641 (!roundTowardZero || status != APFloat::opInexact)) in ConstantFoldSSEConvertToInt() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Constants.cpp | 324 APFloat::getZero(APFloat::IEEEhalf())); in getNullValue() 327 APFloat::getZero(APFloat::IEEEsingle())); in getNullValue() 330 APFloat::getZero(APFloat::IEEEdouble())); in getNullValue() 333 APFloat::getZero(APFloat::x87DoubleExtended())); in getNullValue() 336 APFloat::getZero(APFloat::IEEEquad())); in getNullValue() 339 APFloat(APFloat::PPCDoubleDouble(), in getNullValue() 378 APFloat FL = APFloat::getAllOnesValue(Ty->getPrimitiveSizeInBits(), in getAllOnesValue() 753 return &APFloat::IEEEhalf(); in TypeToFloatSemantics() 755 return &APFloat::IEEEsingle(); in TypeToFloatSemantics() 757 return &APFloat::IEEEdouble(); in TypeToFloatSemantics() [all …]
|
D | ConstantFold.cpp | 174 APFloat(DestTy->getFltSemantics(), in FoldBitCast() 596 APFloat Val = FPC->getValueAPF(); in ConstantFoldCastInstruction() 597 Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf() : in ConstantFoldCastInstruction() 598 DestTy->isFloatTy() ? APFloat::IEEEsingle() : in ConstantFoldCastInstruction() 599 DestTy->isDoubleTy() ? APFloat::IEEEdouble() : in ConstantFoldCastInstruction() 600 DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended() : in ConstantFoldCastInstruction() 601 DestTy->isFP128Ty() ? APFloat::IEEEquad() : in ConstantFoldCastInstruction() 602 DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble() : in ConstantFoldCastInstruction() 603 APFloat::Bogus(), in ConstantFoldCastInstruction() 604 APFloat::rmNearestTiesToEven, &ignored); in ConstantFoldCastInstruction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/AsmParser/ |
D | LLLexer.cpp | 1008 APFloatVal = APFloat(APFloat::IEEEdouble(), in Lex0x() 1010 return lltok::APFloat; in Lex0x() 1019 APFloatVal = APFloat(APFloat::x87DoubleExtended(), APInt(80, Pair)); in Lex0x() 1020 return lltok::APFloat; in Lex0x() 1024 APFloatVal = APFloat(APFloat::IEEEquad(), APInt(128, Pair)); in Lex0x() 1025 return lltok::APFloat; in Lex0x() 1029 APFloatVal = APFloat(APFloat::PPCDoubleDouble(), APInt(128, Pair)); in Lex0x() 1030 return lltok::APFloat; in Lex0x() 1032 APFloatVal = APFloat(APFloat::IEEEhalf(), in Lex0x() 1034 return lltok::APFloat; in Lex0x() [all …]
|
D | LLLexer.h | 41 APFloat APFloatVal; 63 const APFloat &getAPFloatVal() const { return APFloatVal; } in getAPFloatVal()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/ |
D | ExecutionEngine.cpp | 693 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended()); in getConstantValue() 696 APFloat::rmNearestTiesToEven); in getConstantValue() 708 APFloat apf = APFloat::getZero(APFloat::x87DoubleExtended()); in getConstantValue() 711 APFloat::rmNearestTiesToEven); in getConstantValue() 725 APFloat apf = APFloat(APFloat::x87DoubleExtended(), GV.IntVal); in getConstantValue() 730 APFloat::rmTowardZero, &ignored); in getConstantValue() 845 APFloat apfLHS = APFloat(Sem, LHS.IntVal); in getConstantValue() 849 apfLHS.add(APFloat(Sem, RHS.IntVal), APFloat::rmNearestTiesToEven); in getConstantValue() 853 apfLHS.subtract(APFloat(Sem, RHS.IntVal), in getConstantValue() 854 APFloat::rmNearestTiesToEven); in getConstantValue() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | OpDescriptor.cpp | 26 Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem))); in makeConstantsWithType() 27 Cs.push_back(ConstantFP::get(Ctx, APFloat::getLargest(Sem))); in makeConstantsWithType() 28 Cs.push_back(ConstantFP::get(Ctx, APFloat::getSmallest(Sem))); in makeConstantsWithType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Type.h | 169 case HalfTyID: return APFloat::IEEEhalf(); in getFltSemantics() 170 case FloatTyID: return APFloat::IEEEsingle(); in getFltSemantics() 171 case DoubleTyID: return APFloat::IEEEdouble(); in getFltSemantics() 172 case X86_FP80TyID: return APFloat::x87DoubleExtended(); in getFltSemantics() 173 case FP128TyID: return APFloat::IEEEquad(); in getFltSemantics() 174 case PPC_FP128TyID: return APFloat::PPCDoubleDouble(); in getFltSemantics()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyInstPrinter.cpp | 185 static std::string toString(const APFloat &FP) { in toString() 187 if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) && in toString() 189 APFloat::getQNaN(FP.getSemantics(), /*Negative=*/true))) { in toString() 202 Buf, /*HexDigits=*/0, /*UpperCase=*/false, APFloat::rmNearestTiesToEven); in toString() 233 O << ::toString(APFloat(float(Op.getFPImm()))); in printOperand() 236 O << ::toString(APFloat(Op.getFPImm())); in printOperand()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Type.h | 171 case HalfTyID: return APFloat::IEEEhalf(); in getFltSemantics() 172 case FloatTyID: return APFloat::IEEEsingle(); in getFltSemantics() 173 case DoubleTyID: return APFloat::IEEEdouble(); in getFltSemantics() 174 case X86_FP80TyID: return APFloat::x87DoubleExtended(); in getFltSemantics() 175 case FP128TyID: return APFloat::IEEEquad(); in getFltSemantics() 176 case PPC_FP128TyID: return APFloat::PPCDoubleDouble(); in getFltSemantics()
|
D | Constants.h | 266 APFloat Val; 268 ConstantFP(Type *Ty, const APFloat& V); 288 static Constant *get(Type *Ty, const APFloat &V); 291 static ConstantFP *get(LLVMContext &Context, const APFloat &V); 301 static bool isValueValidForType(Type *Ty, const APFloat &V); 302 inline const APFloat &getValueAPF() const { return Val; } in getValueAPF() 322 bool isExactlyValue(const APFloat &V) const; 326 APFloat FV(V); in isExactlyValue() 327 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue() 616 APFloat getElementAsAPFloat(unsigned i) const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 315 const APFloat &F = CF->getValueAPF(); in walkForwards() 328 APFloat NewF = F; in walkForwards() 329 auto Res = NewF.roundToIntegral(APFloat::rmNearestTiesToEven); in walkForwards() 330 if (Res != APFloat::opOK || NewF.compare(F) != APFloat::cmpEqual) { in walkForwards() 339 APFloat::rmNearestTiesToEven, in walkForwards() 413 = APFloat::semanticsPrecision(ConvertedToTy->getFltSemantics()) - 1; in validateAndTransform() 454 APFloat::rmNearestTiesToEven, in convert()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAddSub.cpp | 69 void set(const APFloat& C); 84 APFloat *getFpValPtr() in getFpValPtr() 85 { return reinterpret_cast<APFloat *>(&FpValBuf.buffer[0]); } in getFpValPtr() 87 const APFloat *getFpValPtr() const in getFpValPtr() 88 { return reinterpret_cast<const APFloat *>(&FpValBuf.buffer[0]); } in getFpValPtr() 90 const APFloat &getFpVal() const { in getFpVal() 95 APFloat &getFpVal() { in getFpVal() 109 APFloat createAPFloatFromInt(const fltSemantics &Sem, int Val); 122 AlignedCharArrayUnion<APFloat> FpValBuf; 147 void set(const APFloat &Coefficient, Value *V) { in set() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | FunctionComparator.h | 30 class APFloat; variable 324 int cmpAPFloats(const APFloat &L, const APFloat &R) const;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | FunctionComparator.cpp | 74 int FunctionComparator::cmpAPFloats(const APFloat &L, const APFloat &R) const { in cmpAPFloats() 78 if (int Res = cmpNumbers(APFloat::semanticsPrecision(SL), in cmpAPFloats() 79 APFloat::semanticsPrecision(SR))) in cmpAPFloats() 81 if (int Res = cmpNumbers(APFloat::semanticsMaxExponent(SL), in cmpAPFloats() 82 APFloat::semanticsMaxExponent(SR))) in cmpAPFloats() 84 if (int Res = cmpNumbers(APFloat::semanticsMinExponent(SL), in cmpAPFloats() 85 APFloat::semanticsMinExponent(SR))) in cmpAPFloats() 87 if (int Res = cmpNumbers(APFloat::semanticsSizeInBits(SL), in cmpAPFloats() 88 APFloat::semanticsSizeInBits(SR))) in cmpAPFloats() 296 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); in cmpConstants() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | Utils.cpp | 325 APFloat llvm::getAPFloatFromSize(double Val, unsigned Size) { in getAPFloatFromSize() 327 return APFloat(float(Val)); in getAPFloatFromSize() 329 return APFloat(Val); in getAPFloatFromSize() 333 APFloat APF(Val); in getAPFloatFromSize() 334 APF.convert(APFloat::IEEEhalf(), APFloat::rmNearestTiesToEven, &Ignored); in getAPFloatFromSize()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/ |
D | ARMMCInstLower.cpp | 110 APFloat Val = MO.getFPImm()->getValueAPF(); in lowerOperand() 112 Val.convert(APFloat::IEEEdouble(), APFloat::rmTowardZero, &ignored); in lowerOperand()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 118 bool ConstantFPSDNode::isExactlyValue(const APFloat& V) const { in isExactlyValue() 123 const APFloat& Val) { in isValueValidForType() 127 APFloat Val2 = APFloat(Val); in isValueValidForType() 130 APFloat::rmNearestTiesToEven, in isValueValidForType() 1339 SDValue SelectionDAG::getConstantFP(const APFloat &V, const SDLoc &DL, EVT VT, in getConstantFP() 1380 return getConstantFP(APFloat((float)Val), DL, VT, isTarget); in getConstantFP() 1382 return getConstantFP(APFloat(Val), DL, VT, isTarget); in getConstantFP() 1386 APFloat APF = APFloat(Val); in getConstantFP() 1387 APF.convert(EVTToAPFloatSemantics(EltVT), APFloat::rmNearestTiesToEven, in getConstantFP() 2077 APFloat::cmpResult R = N1CFP->getValueAPF().compare(N2CFP->getValueAPF()); in FoldSetCC() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | Utils.h | 39 class APFloat; variable 148 APFloat getAPFloatFromSize(double Val, unsigned Size);
|