/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APFloat.h | 27 if (usesLayout<IEEEFloat>(getSemantics())) \ 29 if (usesLayout<DoubleAPFloat>(getSemantics())) \ 445 const fltSemantics &getSemantics() const { return *semantics; } in getSemantics() function 956 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue() 958 if (usesLayout<IEEEFloat>(getSemantics())) in compareAbsoluteValue() 960 if (usesLayout<DoubleAPFloat>(getSemantics())) in compareAbsoluteValue() 1093 assert(&getSemantics() == &RHS.getSemantics() && in add() 1095 if (usesLayout<IEEEFloat>(getSemantics())) in add() 1097 if (usesLayout<DoubleAPFloat>(getSemantics())) in add() 1102 assert(&getSemantics() == &RHS.getSemantics() && in subtract() [all …]
|
H A D | APFixedPoint.h | 176 FixedPointSemantics getSemantics() const { return Sema; } 299 return hash_combine(Val.getSemantics(), Val.getValue()); 316 return LHS.getSemantics() == RHS.getSemantics() &&
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Floating.h | 66 return toSemantics(&Other.F.getSemantics(), RM); in toSemantics() 86 unsigned bitWidth() const { return F.semanticsSizeInBits(F.getSemantics()); } in bitWidth() 141 (APFloat::semanticsSizeInBits(F.getSemantics()) / 8); in bytesToSerialize() 146 *reinterpret_cast<const llvm::fltSemantics **>(Buff) = &F.getSemantics(); in serialize() 176 APFloat One(A.F.getSemantics(), 1); in increment() 189 APFloat One(A.F.getSemantics(), 1); in decrement()
|
H A D | Interp.h | 436 APFloat ResR(A.getSemantics()); in Mulc() 437 APFloat ResI(A.getSemantics()); in Mulc() 491 APFloat ResR(A.getSemantics()); in Divc() 492 APFloat ResI(A.getSemantics()); in Divc()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/ |
H A D | RISCVBaseInfo.cpp | 166 assert((&FPImm.getSemantics() == &APFloat::IEEEsingle() || in getLoadFPImm() 167 &FPImm.getSemantics() == &APFloat::IEEEdouble() || in getLoadFPImm() 168 &FPImm.getSemantics() == &APFloat::IEEEhalf()) && in getLoadFPImm()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 1057 Type *Ty = Type::getFloatingPointTy(Context, V.getSemantics()); in get() 1071 Type *EltTy = Type::getFloatingPointTy(Context, V.getSemantics()); in get() 1077 Type *EltTy = Type::getFloatingPointTy(Context, V.getSemantics()); in get() 1096 assert(&V.getSemantics() == &Ty->getScalarType()->getFltSemantics() && in ConstantFP() 1599 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType() 1605 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType() 1611 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType() 1617 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType() 1618 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType() 1619 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType() [all …]
|
H A D | AsmWriter.cpp | 1443 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteAPFloatInternal() 1444 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteAPFloatInternal() 1451 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteAPFloatInternal() 1505 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteAPFloatInternal() 1511 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteAPFloatInternal() 1517 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteAPFloatInternal() 1523 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteAPFloatInternal() 1527 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteAPFloatInternal()
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | APFixedPoint.cpp | 189 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in add() 213 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in sub() 237 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in mul() 294 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in div() 548 const fltSemantics &FloatSema = Value.getSemantics(); in getFromFloatValue()
|
H A D | APFloat.cpp | 33 if (usesLayout<IEEEFloat>(getSemantics())) \ 35 if (usesLayout<DoubleAPFloat>(getSemantics())) \ 4636 int SignificandBits = Arg.getSemantics().precision - 1; in ilogb() 4644 auto MaxExp = X.getSemantics().maxExponent; in scalbn() 4645 auto MinExp = X.getSemantics().minExponent; in scalbn() 4653 int SignificandBits = X.getSemantics().precision - 1; in scalbn() 4715 assert(&Floats[0].getSemantics() == &semIEEEdouble); 4716 assert(&Floats[1].getSemantics() == &semIEEEdouble); 4863 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial() 4864 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial() [all …]
|
H A D | Z3Solver.cpp | 764 getFloatSort(llvm::APFloat::semanticsSizeInBits(Float.getSemantics())); in mkFloat() 810 if (useSemantics && !areEquivalent(Float.getSemantics(), Semantics)) { in toAPFloat()
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | OptionalDiagnostic.h | 57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics());
|
H A D | PropertiesBase.td | 276 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics())) 290 let Read = [{ node.getFixedPoint().getSemantics() }]; 311 node.getComplexFloatReal().getSemantics()); 313 node.getComplexFloatImag().getSemantics()));
|
H A D | Expr.h | 1653 return APFloatStorage::getValue(getSemantics()); in getValue() 1656 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue() 1674 const llvm::fltSemantics &getSemantics() const { in getSemantics() function
|
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
H A D | WebAssemblyInstPrinter.cpp | 270 if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) && in toString() 272 APFloat::getQNaN(FP.getSemantics(), /*Negative=*/true))) { in toString()
|
/freebsd/contrib/llvm-project/lldb/source/Utility/ |
H A D | Scalar.cpp | 38 return GetFloatPromoKey(m_float.getSemantics()); in GetPromoKey() 65 a.FloatPromote(b.m_float.getSemantics()); in PromoteToMaxType() 206 if (GetFloatPromoKey(semantics) < GetFloatPromoKey(m_float.getSemantics())) in FloatPromote()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 1975 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize() 1990 CI->getFunction()->getDenormalMode(Src.getSemantics()); in constantFoldCanonicalize() 2011 APFloat::getZero(Src.getSemantics(), !IsPositive)); in constantFoldCanonicalize() 2181 APFloat AlmostOne(U.getSemantics(), 1); in ConstantFoldScalarCall1() 2228 U = APFloat::getQNaN(U.getSemantics()); in ConstantFoldScalarCall1() 3005 const fltSemantics &Sem = S0.getSemantics(); in ConstantFoldAMDGCNCubeIntrinsic() 3586 return !(Op < APFloat(Op.getSemantics(), "-1") || in isMathLibCallNoop() 3587 Op > APFloat(Op.getSemantics(), "1")); in isMathLibCallNoop()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ExprConstant.cpp | 4677 APFloat One(Value.getSemantics(), 1); in found() 13583 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator() 13595 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator() 14632 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator() 14660 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator() 15061 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral() 15153 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr() 15242 A = APFloat::copySign(APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), in HandleComplexComplexMul() 15244 B = APFloat::copySign(APFloat(B.getSemantics(), B.isInfinity() ? 1 : 0), in HandleComplexComplexMul() 15247 C = APFloat::copySign(APFloat(C.getSemantics()), C); in HandleComplexComplexMul() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/ |
H A D | ASTMatchersInternal.h | 1750 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle()) 1752 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble()) 1759 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle()) 1761 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAGDumper.cpp | 696 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details() 698 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | FunctionComparator.cpp | 90 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineAddSub.cpp | 285 convertToFpType(T.getSemantics()); in operator +=() 291 T.add(createAPFloatFromInt(T.getSemantics(), That.IntVal), RndMode); in operator +=() 311 isInt() ? That.getFpVal().getSemantics() : getFpVal().getSemantics(); in operator *=() 386 Addend0.set(APFloat(C0->getValueAPF().getSemantics()), nullptr); in drillValueDownOneStep()
|
H A D | InstCombineCompares.cpp | 7655 int MaxExponent = ilogb(APFloat::getLargest(RHS->getSemantics())); in foldFCmpIntToFPConst() 7713 APFloat SMax(RHS->getSemantics()); in foldFCmpIntToFPConst() 7725 APFloat UMax(RHS->getSemantics()); in foldFCmpIntToFPConst() 7738 APFloat SMin(RHS->getSemantics()); in foldFCmpIntToFPConst() 7749 APFloat UMin(RHS->getSemantics()); in foldFCmpIntToFPConst() 7900 DenormalMode Mode = F->getDenormalMode(C->getSemantics()); in foldFabsWithFcmpZero()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZISelLowering.h | 823 isFP128 = (&FPImm.getSemantics() == &APFloat::IEEEquad()); in SystemZVectorConstantInfo()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | Constants.h | 338 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 799 if (Val.isSigned() && Val == llvm::APFixedPoint::getMin(Val.getSemantics())) { in ConstructFixedPointLiteral()
|