Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/ADT/
H A DAPFloat.h27 if (usesLayout<IEEEFloat>(getSemantics())) \
29 if (usesLayout<DoubleAPFloat>(getSemantics())) \
376 const fltSemantics &getSemantics() const { return *semantics; } in getSemantics() function
853 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue()
855 if (usesLayout<IEEEFloat>(getSemantics())) in compareAbsoluteValue()
857 if (usesLayout<DoubleAPFloat>(getSemantics())) in compareAbsoluteValue()
973 assert(&getSemantics() == &RHS.getSemantics() && in add()
975 if (usesLayout<IEEEFloat>(getSemantics())) in add()
977 if (usesLayout<DoubleAPFloat>(getSemantics())) in add()
982 assert(&getSemantics() == &RHS.getSemantics() && in subtract()
[all …]
H A DAPFixedPoint.h120 FixedPointSemantics getSemantics() const { return Sema; } in getSemantics() function
/netbsd-src/external/apache2/llvm/dist/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.cpp31 if (usesLayout<IEEEFloat>(getSemantics())) \
33 if (usesLayout<DoubleAPFloat>(getSemantics())) \
4176 int SignificandBits = Arg.getSemantics().precision - 1; in ilogb()
4184 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
4185 auto MinExp = X.getSemantics().minExponent; in scalbn()
4193 int SignificandBits = X.getSemantics().precision - 1; in scalbn()
4255 assert(&Floats[0].getSemantics() == &semIEEEdouble);
4256 assert(&Floats[1].getSemantics() == &semIEEEdouble);
4403 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial()
4404 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial()
[all …]
H A DZ3Solver.cpp750 getFloatSort(llvm::APFloat::semanticsSizeInBits(Float.getSemantics())); in mkFloat()
796 if (useSemantics && !areEquivalent(Float.getSemantics(), Semantics)) { in toAPFloat()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstants.cpp1047 Type *Ty = Type::getFloatingPointTy(Context, V.getSemantics()); in get()
1066 assert(&V.getSemantics() == &Ty->getFltSemantics() && in ConstantFP()
1612 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1618 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType()
1624 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1630 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1631 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType()
1632 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType()
1633 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType()
1639 return &Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
[all …]
H A DAsmWriter.cpp1359 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1360 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1367 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1417 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteConstantInternal()
1424 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteConstantInternal()
1430 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteConstantInternal()
1436 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteConstantInternal()
1440 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteConstantInternal()
/netbsd-src/external/apache2/llvm/dist/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.h1644 return APFloatStorage::getValue(getSemantics()); in getValue()
1647 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue()
1665 const llvm::fltSemantics &getSemantics() const { in getSemantics() function
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DExprConstant.cpp4521 APFloat One(Value.getSemantics(), 1); in found()
12546 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
12558 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
13474 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator()
13502 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator()
13857 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
13947 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
14035 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14050 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
14121 APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), A); in VisitBinaryOperator()
[all …]
/netbsd-src/external/apache2/llvm/dist/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())
/netbsd-src/external/apache2/llvm/dist/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.cpp5860 int MaxExponent = ilogb(APFloat::getLargest(RHS.getSemantics())); in foldFCmpIntToFPConst()
5920 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
5932 APFloat UMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
5945 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
5956 APFloat UMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp616 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details()
618 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp82 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
H A DSimplifyLibCalls.cpp1536 BaseR.convert(BaseF->getSemantics(), APFloat::rmTowardZero, &Ignored); in replacePowWithExp()
1723 APFloat LimF(ExpoF->getSemantics(), 33), in optimizePow()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp1958 APFloat AlmostOne(U.getSemantics(), 1); in ConstantFoldScalarCall1()
2005 U = APFloat::getQNaN(U.getSemantics()); in ConstantFoldScalarCall1()
2625 const fltSemantics &Sem = S0.getSemantics(); in ConstantFoldAMDGCNCubeIntrinsic()
3090 return !(Op < APFloat(Op.getSemantics(), "-1") || in isMathLibCallNoop()
3091 Op > APFloat(Op.getSemantics(), "1")); in isMathLibCallNoop()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstants.h321 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp210 APFloat Val(ArgVal.getSemantics(), 1); in instCombineIntrinsic()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/
H A DMachineIRBuilder.cpp289 assert(APFloat::getSizeInBits(Val.getValueAPF().getSemantics()) in buildFConstant()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprConstant.cpp2063 if (&Init.getSemantics() == &llvm::APFloat::IEEEhalf() && in tryEmitPrivate()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DMachineVerifier.cpp1010 if (APFloat::getSizeInBits(CF->getValueAPF().getSemantics()) != in verifyPreISelGenericInstruction()

12