Home
last modified time | relevance | path

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

12

/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DAPFloat.h826 assert(&getSemantics() == &RHS.getSemantics() && in compareAbsoluteValue()
942 assert(&getSemantics() == &RHS.getSemantics() && in add()
951 assert(&getSemantics() == &RHS.getSemantics() && in subtract()
960 assert(&getSemantics() == &RHS.getSemantics() && in multiply()
969 assert(&getSemantics() == &RHS.getSemantics() && in divide()
978 assert(&getSemantics() == &RHS.getSemantics() && in remainder()
987 assert(&getSemantics() == &RHS.getSemantics() && in mod()
997 assert(&getSemantics() == &Multiplicand.getSemantics() && in fusedMultiplyAdd()
999 assert(&getSemantics() == &Addend.getSemantics() && in fusedMultiplyAdd()
1103 assert(&getSemantics() == &RHS.getSemantics() && in compare()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp787 if (&V.getSemantics() == &APFloat::IEEEhalf()) in get()
789 else if (&V.getSemantics() == &APFloat::IEEEsingle()) in get()
791 else if (&V.getSemantics() == &APFloat::IEEEdouble()) in get()
795 else if (&V.getSemantics() == &APFloat::IEEEquad()) in get()
820 assert(&V.getSemantics() == TypeToFloatSemantics(Ty) && in ConstantFP()
1291 if (&Val2.getSemantics() == &APFloat::IEEEhalf()) in isValueValidForType()
1297 if (&Val2.getSemantics() == &APFloat::IEEEsingle()) in isValueValidForType()
1303 if (&Val2.getSemantics() == &APFloat::IEEEhalf() || in isValueValidForType()
1304 &Val2.getSemantics() == &APFloat::IEEEsingle() || in isValueValidForType()
1305 &Val2.getSemantics() == &APFloat::IEEEdouble()) in isValueValidForType()
[all …]
H A DAsmWriter.cpp1297 if (&APF.getSemantics() == &APFloat::IEEEsingle() || in WriteConstantInternal()
1298 &APF.getSemantics() == &APFloat::IEEEdouble()) { in WriteConstantInternal()
1305 bool isDouble = &APF.getSemantics() == &APFloat::IEEEdouble(); in WriteConstantInternal()
1346 if (&APF.getSemantics() == &APFloat::x87DoubleExtended()) { in WriteConstantInternal()
1353 } else if (&APF.getSemantics() == &APFloat::IEEEquad()) { in WriteConstantInternal()
1359 } else if (&APF.getSemantics() == &APFloat::PPCDoubleDouble()) { in WriteConstantInternal()
1365 } else if (&APF.getSemantics() == &APFloat::IEEEhalf()) { in WriteConstantInternal()
H A DVerifier.cpp4023 Assert(&Accuracy.getSemantics() == &APFloat::IEEEsingle(), in visitInstruction()
/freebsd-12.1/contrib/llvm/lib/Support/
H A DAPFloat.cpp3808 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
3809 auto MinExp = X.getSemantics().minExponent; in scalbn()
3879 assert(&Floats[0].getSemantics() == &semIEEEdouble);
4027 assert(&A.getSemantics() == &semIEEEdouble); in addWithSpecial()
4028 assert(&AA.getSemantics() == &semIEEEdouble); in addWithSpecial()
4029 assert(&C.getSemantics() == &semIEEEdouble); in addWithSpecial()
4030 assert(&CC.getSemantics() == &semIEEEdouble); in addWithSpecial()
4446 if (&getSemantics() == &ToSemantics) { in convert()
4450 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
4453 if (usesLayout<IEEEFloat>(getSemantics()) && in convert()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/WebAssembly/InstPrinter/
H A DWebAssemblyInstPrinter.cpp196 if (FP.isNaN() && !FP.bitwiseIsEqual(APFloat::getQNaN(FP.getSemantics())) && in toString()
198 APFloat::getQNaN(FP.getSemantics(), /*Negative=*/true))) { in toString()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DExprConstant.cpp608 llvm::APFloat::semanticsPrecision(F.getSemantics()); in operator <<()
3624 APFloat One(Value.getSemantics(), 1); in found()
9137 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
9149 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in EvaluateComparisonBinaryOperator()
10218 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
10302 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
10388 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
10403 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
10478 C = APFloat::copySign(APFloat(C.getSemantics()), C); in VisitBinaryOperator()
10480 D = APFloat::copySign(APFloat(D.getSemantics()), D); in VisitBinaryOperator()
[all …]
H A DExpr.cpp836 setSemantics(V.getSemantics()); in FloatingLiteral()
858 const llvm::fltSemantics &FloatingLiteral::getSemantics() const { in getSemantics() function in FloatingLiteral
H A DItaniumMangle.cpp4173 mangleFloat(llvm::APFloat(Imag->getValue().getSemantics())); in mangleExpression()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/AST/
H A DAPValue.h430 assert(&R.getSemantics() == &I.getSemantics() && in setComplexFloat()
H A DExpr.h1460 return APFloatStorage::getValue(getSemantics()); in getValue()
1463 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue()
1480 const llvm::fltSemantics &getSemantics() const;
/freebsd-12.1/contrib/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.cpp5098 int MaxExponent = ilogb(APFloat::getLargest(RHS.getSemantics())); in foldFCmpIntToFPConst()
5158 APFloat SMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
5170 APFloat UMax(RHS.getSemantics()); in foldFCmpIntToFPConst()
5183 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
5194 APFloat SMin(RHS.getSemantics()); in foldFCmpIntToFPConst()
H A DInstCombineCalls.cpp3350 APFloat Val(ArgVal.getSemantics(), 1.0); in visitCallInst()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h1524 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1526 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
1533 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle())
1535 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble())
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGDumper.cpp551 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details()
553 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp78 const fltSemantics &SL = L.getSemantics(), &SR = R.getSemantics(); in cmpAPFloats()
H A DSimplifyLibCalls.cpp1277 BaseR.convert(BaseF->getSemantics(), APFloat::rmTowardZero, &Ignored); in replacePowWithExp()
1428 APFloat LimF(ExpoF->getSemantics(), 33.0), in optimizePow()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DZ3ConstraintManager.cpp659 getFloatSort(llvm::APFloat::semanticsSizeInBits(Float.getSemantics())); in mkFloat()
705 if (useSemantics && !areEquivalent(Float.getSemantics(), Semantics)) { in toAPFloat()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstants.h328 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp2391 return Op.compare(APFloat(Op.getSemantics(), "-1")) != in isMathLibCallNoop()
2393 Op.compare(APFloat(Op.getSemantics(), "1")) != in isMathLibCallNoop()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGExprConstant.cpp1891 if (&Init.getSemantics() == &llvm::APFloat::IEEEhalf() && in tryEmitPrivate()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Serialization/
H A DASTReaderStmt.cpp587 E->setValue(Record.getContext(), Record.readAPFloat(E->getSemantics())); in VisitFloatingLiteral()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXInstrInfo.td810 return &N->getValueAPF().getSemantics() == &llvm::APFloat::IEEEsingle() &&
815 return &N->getValueAPF().getSemantics() == &llvm::APFloat::IEEEdouble() &&
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp7878 APFloat CanonicalQNaN = APFloat::getQNaN(C.getSemantics()); in getCanonicalConstantFP()
8866 APFloat Zero = APFloat::getZero(F.getSemantics()); in performClampCombine()
8873 APFloat One(F.getSemantics(), "1.0"); in performClampCombine()

12