| /openbsd-src/gnu/llvm/llvm/include/llvm/ADT/ |
| H A D | APFloat.h | 26 if (usesLayout<IEEEFloat>(getSemantics())) \ 28 if (usesLayout<DoubleAPFloat>(getSemantics())) \ 386 const fltSemantics &getSemantics() const { return *semantics; } in getSemantics() function 867 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue() 869 if (usesLayout<IEEEFloat>(getSemantics())) in compareAbsoluteValue() 871 if (usesLayout<DoubleAPFloat>(getSemantics())) in compareAbsoluteValue() 985 assert(&getSemantics() == &RHS.getSemantics() && in add() 987 if (usesLayout<IEEEFloat>(getSemantics())) in add() 989 if (usesLayout<DoubleAPFloat>(getSemantics())) in add() 994 assert(&getSemantics() == &RHS.getSemantics() && in subtract() [all …]
|
| H A D | APFixedPoint.h | 176 FixedPointSemantics getSemantics() const { return Sema; } 298 return hash_combine(Val.getSemantics(), Val.getValue()); 315 return LHS.getSemantics() == RHS.getSemantics() &&
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/ |
| H A D | APFixedPoint.cpp | 183 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in add() 207 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in sub() 231 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in mul() 288 auto CommonFXSema = Sema.getCommonSemantics(Other.getSemantics()); in div() 542 const fltSemantics &FloatSema = Value.getSemantics(); in getFromFloatValue()
|
| H A D | APFloat.cpp | 31 if (usesLayout<IEEEFloat>(getSemantics())) \ 33 if (usesLayout<DoubleAPFloat>(getSemantics())) \ 4459 int SignificandBits = Arg.getSemantics().precision - 1; in ilogb() 4467 auto MaxExp = X.getSemantics().maxExponent; in scalbn() 4468 auto MinExp = X.getSemantics().minExponent; in scalbn() 4476 int SignificandBits = X.getSemantics().precision - 1; in scalbn() 4538 assert(&Floats[0].getSemantics() == &semIEEEdouble); 4539 assert(&Floats[1].getSemantics() == &semIEEEdouble); 4686 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial() 4687 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial() [all …]
|
| H A D | Z3Solver.cpp | 752 getFloatSort(llvm::APFloat::semanticsSizeInBits(Float.getSemantics())); in mkFloat() 798 if (useSemantics && !areEquivalent(Float.getSemantics(), Semantics)) { in toAPFloat()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Constants.cpp | 1034 Type *Ty = Type::getFloatingPointTy(Context, V.getSemantics()); in get() 1053 assert(&V.getSemantics() == &Ty->getFltSemantics() && in ConstantFP() 1544 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType() 1550 if (&Val2.getSemantics() == &APFloat::BFloat()) in isValueValidForType() 1556 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType() 1562 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType() 1563 &Val2.getSemantics() == &APFloat::BFloat() || in isValueValidForType() 1564 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType() 1565 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType() 1571 return &Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType() [all …]
|
| H A D | AsmWriter.cpp | 1362 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal() 1363 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal() 1370 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal() 1420 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteConstantInternal() 1427 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteConstantInternal() 1433 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteConstantInternal() 1439 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteConstantInternal() 1443 } else if (&APF.getSemantics() == &APFloat::BFloat()) { in WriteConstantInternal()
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | OptionalDiagnostic.h | 57 unsigned precision = llvm::APFloat::semanticsPrecision(F.getSemantics());
|
| H A D | PropertiesBase.td | 273 llvm::APFloatBase::SemanticsToEnum(node.getFloat().getSemantics())) 287 let Read = [{ node.getFixedPoint().getSemantics() }]; 308 node.getComplexFloatReal().getSemantics()); 310 node.getComplexFloatImag().getSemantics()));
|
| H A D | APValue.h | 605 assert(&R.getSemantics() == &I.getSemantics() &&
|
| H A D | Expr.h | 1665 return APFloatStorage::getValue(getSemantics()); in getValue() 1668 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue() 1686 const llvm::fltSemantics &getSemantics() const { in getSemantics() function
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/lldb/source/Utility/ |
| H A D | Scalar.cpp | 37 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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1953 APFloat::getZero(Src.getSemantics(), Src.isNegative())); in constantFoldCanonicalize() 1968 CI->getFunction()->getDenormalMode(Src.getSemantics()); in constantFoldCanonicalize() 1977 APFloat::getZero(Src.getSemantics(), !IsPositive)); in constantFoldCanonicalize() 2133 APFloat AlmostOne(U.getSemantics(), 1); in ConstantFoldScalarCall1() 2180 U = APFloat::getQNaN(U.getSemantics()); in ConstantFoldScalarCall1() 2889 const fltSemantics &Sem = S0.getSemantics(); in ConstantFoldAMDGCNCubeIntrinsic() 3387 return !(Op < APFloat(Op.getSemantics(), "-1") || in isMathLibCallNoop() 3388 Op > APFloat(Op.getSemantics(), "1")); in isMathLibCallNoop()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 4574 APFloat One(Value.getSemantics(), 1); in found() 12897 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator() 12909 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator() 13907 APFixedPoint Result(LHSFX.getSemantics()); in VisitBinaryOperator() 13935 FixedPointSemantics LHSSema = LHSFX.getSemantics(); in VisitBinaryOperator() 14336 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral() 14426 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr() 14514 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator() 14529 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator() 14600 APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), A); in VisitBinaryOperator() [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/ASTMatchers/ |
| H A D | ASTMatchersInternal.h | 1754 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle()) 1756 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble()) 1763 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle()) 1765 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGDumper.cpp | 633 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details() 635 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | FunctionComparator.cpp | 90 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
|
| /openbsd-src/gnu/llvm/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 | 6462 int MaxExponent = ilogb(APFloat::getLargest(RHS.getSemantics())); in foldFCmpIntToFPConst() 6522 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst() 6534 APFloat UMax(RHS.getSemantics()); in foldFCmpIntToFPConst() 6547 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst() 6558 APFloat UMin(RHS.getSemantics()); in foldFCmpIntToFPConst() 6711 DenormalMode Mode = F->getDenormalMode(C->getSemantics()); in foldFabsWithFcmpZero()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SystemZ/ |
| H A D | SystemZISelLowering.h | 782 isFP128 = (&FPImm.getSemantics() == &APFloat::IEEEquad()); in SystemZVectorConstantInfo()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Constants.h | 323 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 371 APFloat Val(ArgVal.getSemantics(), 1); in instCombineIntrinsic()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/GlobalISel/ |
| H A D | MachineIRBuilder.cpp | 327 assert(APFloat::getSizeInBits(Val.getValueAPF().getSemantics()) in buildFConstant()
|
| /openbsd-src/gnu/llvm/lldb/source/Plugins/Instruction/RISCV/ |
| H A D | EmulateInstructionRISCV.cpp | 1340 auto canonicalNaN = APFloat::getQNaN(rs1.getSemantics()); in F_MAX_MIN()
|