Home
last modified time | relevance | path

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

12

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h853 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue()
973 assert(&getSemantics() == &RHS.getSemantics() && in add()
982 assert(&getSemantics() == &RHS.getSemantics() && in subtract()
991 assert(&getSemantics() == &RHS.getSemantics() && in multiply()
1000 assert(&getSemantics() == &RHS.getSemantics() && in divide()
1009 assert(&getSemantics() == &RHS.getSemantics() && in remainder()
1018 assert(&getSemantics() == &RHS.getSemantics() && in mod()
1028 assert(&getSemantics() == &Multiplicand.getSemantics() && in fusedMultiplyAdd()
1030 assert(&getSemantics() == &Addend.getSemantics() && in fusedMultiplyAdd()
1173 assert(&getSemantics() == &RHS.getSemantics() && in compare()
[all …]
H A DAPFixedPoint.h120 FixedPointSemantics getSemantics() const { return Sema; } in getSemantics() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp178 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in add()
202 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in sub()
226 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in mul()
283 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in div()
511 const fltSemantics &FloatSema = Value.getSemantics(); in getFromFloatValue()
H A DAPFloat.cpp4184 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
4185 auto MinExp = X.getSemantics().minExponent; in scalbn()
4403 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial()
4404 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial()
4405 assert(&C.getSemantics() == &semIEEEdouble); in addWithSpecial()
4406 assert(&CC.getSemantics() == &semIEEEdouble); in addWithSpecial()
4796 const fltSemantics& S = F.getSemantics(); in Storage()
4827 if (&getSemantics() == &ToSemantics) { in convert()
4831 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
4834 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
[all …]
H A DZ3Solver.cpp750 getFloatSort(llvm::APFloat::semanticsSizeInBits(Float.getSemantics())); in mkFloat()
796 if (useSemantics && !areEquivalent(Float.getSemantics(), Semantics)) { in toAPFloat()
/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1068 assert(&V.getSemantics() == &Ty->getFltSemantics() && in ConstantFP()
1614 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1620 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1626 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1632 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1633 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1635 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType()
1642 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1648 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1651 &Val2.getSemantics() == &APFloat::IEEEquad(); in isValueValidForType()
[all …]
H A DAsmWriter.cpp1348 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1349 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1356 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1406 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteConstantInternal()
1413 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteConstantInternal()
1419 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteConstantInternal()
1425 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteConstantInternal()
1429 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteConstantInternal()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DOptionalDiagnostic.h57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics());
H A DPropertiesBase.td269 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics()))
283 let Read = [{ node.getFixedPoint().getSemantics() }];
304 node.getComplexFloatReal().getSemantics());
306 node.getComplexFloatImag().getSemantics()));
H A DAPValue.h605 assert(&R.getSemantics() == &I.getSemantics() &&
H A DExpr.h1641 return APFloatStorage::getValue(getSemantics()); in getValue()
1644 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue()
1662 const llvm::fltSemantics &getSemantics() const { in getSemantics() function
/freebsd-13.1/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-13.1/contrib/llvm-project/lldb/source/Utility/
H A DScalar.cpp37 return GetFloatPromoKey(m_float.getSemantics()); in GetPromoKey()
64 a.FloatPromote(b.m_float.getSemantics()); in PromoteToMaxType()
205 if (GetFloatPromoKey(semantics) < GetFloatPromoKey(m_float.getSemantics())) in FloatPromote()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp4524 APFloat One(Value.getSemantics(), 1); in found()
12581 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
12593 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
13509 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator()
13537 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator()
13895 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
13985 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
14073 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14088 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14163 C = APFloat::copySign(APFloat(C.getSemantics()), C); in VisitBinaryOperator()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1782 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1784 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
1791 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1793 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
/freebsd-13.1/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.cpp5969 int MaxExponent = ilogb(APFloat::getLargest(RHS.getSemantics())); in foldFCmpIntToFPConst()
6029 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
6041 APFloat UMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
6054 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
6065 APFloat UMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp618 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details()
620 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp82 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
H A DSimplifyLibCalls.cpp1538 BaseR.convert(BaseF->getSemantics(), APFloat::rmTowardZero, &Ignored); in replacePowWithExp()
1726 APFloat LimF(ExpoF->getSemantics(), 33), in optimizePow()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp2053 APFloat AlmostOne(U.getSemantics(), 1); in ConstantFoldScalarCall1()
2100 U = APFloat::getQNaN(U.getSemantics()); in ConstantFoldScalarCall1()
2759 const fltSemantics &Sem = S0.getSemantics(); in ConstantFoldAMDGCNCubeIntrinsic()
3254 return !(Op < APFloat(Op.getSemantics(), "-1") || in isMathLibCallNoop()
3255 Op > APFloat(Op.getSemantics(), "1")); in isMathLibCallNoop()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstants.h323 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp210 APFloat Val(ArgVal.getSemantics(), 1); in instCombineIntrinsic()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp289 assert(APFloat::getSizeInBits(Val.getValueAPF().getSemantics()) in buildFConstant()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp2063 if (&Init.getSemantics() == &llvm::APFloat::IEEEhalf() && in tryEmitPrivate()

12