Home
last modified time | relevance | path

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

123

/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFPRange.cpp18 auto &Sem = Lower.getSemantics(); in makeEmpty()
26 auto &Sem = Lower.getSemantics(); in makeFull()
46 : Lower(Value.getSemantics(), APFloat::uninitialized), in ConstantFPRange()
47 Upper(Value.getSemantics(), APFloat::uninitialized) { in ConstantFPRange()
78 Lower = APFloat::getInf(Lower.getSemantics(), /*Negative=*/false); in canonicalizeRange()
79 Upper = APFloat::getInf(Upper.getSemantics(), /*Negative=*/true); in canonicalizeRange()
87 assert(&Lower.getSemantics() == &Upper.getSemantics() && in ConstantFPRange()
118 const fltSemantics &Sem = V.getSemantics(); in makeLessThan()
130 const fltSemantics &Sem = V.getSemantics(); in makeGreaterThan()
149 Lower = APFloat::getZero(Lower.getSemantics(), /*Negative=*/true); in extendZeroIfEqual()
[all …]
H A DConstants.cpp1078 Type *Ty = Type::getFloatingPointTy(Context, V.getSemantics()); in get()
1092 Type *EltTy = Type::getFloatingPointTy(Context, V.getSemantics()); in get()
1098 Type *EltTy = Type::getFloatingPointTy(Context, V.getSemantics()); in get()
1117 assert(&V.getSemantics() == &Ty->getScalarType()->getFltSemantics() && in ConstantFP()
1625 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1631 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1637 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1643 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1644 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1645 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType()
[all …]
H A DAsmWriter.cpp1507 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteAPFloatInternal()
1508 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteAPFloatInternal()
1515 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteAPFloatInternal()
1569 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteAPFloatInternal()
1575 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteAPFloatInternal()
1581 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteAPFloatInternal()
1587 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteAPFloatInternal()
1591 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteAPFloatInternal()
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DAPFloat.h28 if (usesLayout<IEEEFloat>(getSemantics())) \
30 if (usesLayout<DoubleAPFloat>(getSemantics())) \
540 const fltSemantics &getSemantics() const { return *semantics; } in getSemantics() function
1071 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue()
1073 if (usesLayout<IEEEFloat>(getSemantics())) in compareAbsoluteValue()
1075 if (usesLayout<DoubleAPFloat>(getSemantics())) in compareAbsoluteValue()
1206 assert(&getSemantics() == &RHS.getSemantics() && in add()
1208 if (usesLayout<IEEEFloat>(getSemantics())) in add()
1210 if (usesLayout<DoubleAPFloat>(getSemantics())) in add()
1215 assert(&getSemantics() == &RHS.getSemantics() && in subtract()
[all …]
H A DAPFixedPoint.h187 FixedPointSemantics getSemantics() const { return Sema; }
318 return hash_combine(Val.getSemantics(), Val.getValue());
335 return LHS.getSemantics() == RHS.getSemantics() &&
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFPRange.h44 return ConstantFPRange(getSemantics(), /*IsFullSet=*/false); in getEmpty()
49 return ConstantFPRange(getSemantics(), /*IsFullSet=*/true); in getFull()
150 const fltSemantics &getSemantics() const { return Lower.getSemantics(); } in getSemantics() function
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DFloating.h46 return APFloat(getSemantics(), APInt(BitWidth, Val)); in getValue()
48 return APFloat(getSemantics(), APInt(BitWidth, NumWords, Memory)); in getValue()
57 Semantics = llvm::APFloatBase::SemanticsToEnum(F.getSemantics()); in Floating()
103 return llvm::APFloatBase::semanticsSizeInBits(getSemantics()); in bitWidth()
118 const llvm::fltSemantics &getSemantics() const { in getSemantics() function
247 APFloat One(A.getSemantics(), 1); in increment()
267 APFloat One(A.getSemantics(), 1); in decrement()
H A DFixedPoint.h61 return V == llvm::APFixedPoint::getMin(V.getSemantics()); in isMin()
71 llvm::FixedPointSemantics getSemantics() const { return V.getSemantics(); } in getSemantics() function
100 uint32_t SemI = V.getSemantics().toOpaqueInt(); in serialize()
H A DInterp.h430 Floating Result = S.allocFloat(LHS.getSemantics()); in Addf()
450 Floating Result = S.allocFloat(LHS.getSemantics()); in Subf()
470 Floating Result = S.allocFloat(LHS.getSemantics()); in Mulf()
490 APFloat ResR(A.getSemantics()); in Mulc()
491 APFloat ResI(A.getSemantics()); in Mulc()
495 Floating RA = S.allocFloat(A.getSemantics()); in Mulc()
500 Floating RI = S.allocFloat(A.getSemantics()); in Mulc()
550 APFloat ResR(A.getSemantics()); in Divc()
551 APFloat ResI(A.getSemantics()); in Divc()
555 Floating RA = S.allocFloat(A.getSemantics()); in Divc()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVBaseInfo.cpp193 assert((&FPImm.getSemantics() == &APFloat::IEEEsingle() || in getLoadFPImm()
194 &FPImm.getSemantics() == &APFloat::IEEEdouble() || in getLoadFPImm()
195 &FPImm.getSemantics() == &APFloat::IEEEhalf()) && in getLoadFPImm()
/freebsd/contrib/llvm-project/llvm/lib/Support/
H A DAPFixedPoint.cpp199 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in add()
223 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in sub()
247 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in mul()
305 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in div()
565 const fltSemantics &FloatSema = Value.getSemantics(); in getFromFloatValue()
H A DAPFloat.cpp33 if (usesLayout<IEEEFloat>(getSemantics())) \
35 if (usesLayout<DoubleAPFloat>(getSemantics())) \
4819 int SignificandBits = Arg.getSemantics().precision - 1; in ilogb()
4827 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
4828 auto MinExp = X.getSemantics().minExponent; in scalbn()
4836 int SignificandBits = X.getSemantics().precision - 1; in scalbn()
4898 assert(&Floats[0].getSemantics() == &semIEEEdouble);
4899 assert(&Floats[1].getSemantics() == &semIEEEdouble);
5047 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial()
5048 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.td279 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics()))
293 let Read = [{ node.getFixedPoint().getSemantics() }];
314 node.getComplexFloatReal().getSemantics());
316 node.getComplexFloatImag().getSemantics()));
H A DAPValue.h679 assert(&R.getSemantics() == &I.getSemantics() &&
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyInstPrinter.cpp293 if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) && in toString()
295 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.cpp1341 APFloat::getZero(APF.getSemantics(), APF.isNegative())); in flushDenormalConstant()
1344 APFloat::getZero(APF.getSemantics(), false)); in flushDenormalConstant()
1970 return APFloat::getZero(V.getSemantics(), V.isNegative()); in FTZPreserveSign()
2175 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize()
2190 CI->getFunction()->getDenormalMode(Src.getSemantics()); in constantFoldCanonicalize()
2211 APFloat::getZero(Src.getSemantics(), !IsPositive)); in constantFoldCanonicalize()
2376 APFloat AlmostOne(U.getSemantics(), 1); in ConstantFoldScalarCall1()
2423 U = APFloat::getQNaN(U.getSemantics()); in ConstantFoldScalarCall1()
2695 if (APF > APFloat::getOne(APF.getSemantics(), true) && TLI->has(Func)) in ConstantFoldScalarCall1()
3139 APFloat NVCanonicalNaN(Res.getSemantics(), APInt(32, 0x7fffffff)); in ConstantFoldIntrinsicCall2()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/
H A DCIRAttrs.cpp191 APFloat::SemanticsToEnum(value.getSemantics())) in verify()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp4922 APFloat One(Value.getSemantics(), 1); in found()
14405 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
14417 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
15500 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator()
15528 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator()
15951 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
16045 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
16134 A = APFloat::copySign(APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), in HandleComplexComplexMul()
16136 B = APFloat::copySign(APFloat(B.getSemantics(), B.isInfinity() ? 1 : 0), in HandleComplexComplexMul()
16139 C = APFloat::copySign(APFloat(C.getSemantics()), C); in HandleComplexComplexMul()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1752 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1754 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
1761 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1763 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp741 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details()
743 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp96 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
/freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/
H A DCIRGenBuilder.h162 fv.convert(fpVal.getSemantics(), llvm::APFloat::rmNearestTiesToEven, in isNullValue()

123