Home
last modified time | relevance | path

Searched refs:getSemantics (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h27 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 DAPFixedPoint.h176 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 DFloating.h66 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 DInterp.h436 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 DRISCVBaseInfo.cpp166 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 DConstants.cpp1057 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 DAsmWriter.cpp1443 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 DAPFixedPoint.cpp189 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 DAPFloat.cpp33 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 DZ3Solver.cpp764 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 DOptionalDiagnostic.h57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics());
H A DPropertiesBase.td276 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics()))
290 let Read = [{ node.getFixedPoint().getSemantics() }];
311 node.getComplexFloatReal().getSemantics());
313 node.getComplexFloatImag().getSemantics()));
H A DExpr.h1653 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 DWebAssemblyInstPrinter.cpp270 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 DScalar.cpp38 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 DConstantFolding.cpp1975 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 DExprConstant.cpp4677 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 DASTMatchersInternal.h1750 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 DSelectionDAGDumper.cpp696 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 DFunctionComparator.cpp90 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAddSub.cpp285 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 DInstCombineCompares.cpp7655 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 DSystemZISelLowering.h823 isFP128 = (&FPImm.getSemantics() == &APFloat::IEEEquad()); in SystemZVectorConstantInfo()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h338 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/freebsd/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp799 if (Val.isSigned() && Val == llvm::APFixedPoint::getMin(Val.getSemantics())) { in ConstructFixedPointLiteral()

12