Home
last modified time | relevance | path

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

/NextBSD/contrib/llvm/lib/IR/
HDConstants.cpp721 if (&V.getSemantics() == &APFloat::IEEEhalf) in get()
723 else if (&V.getSemantics() == &APFloat::IEEEsingle) in get()
725 else if (&V.getSemantics() == &APFloat::IEEEdouble) in get()
727 else if (&V.getSemantics() == &APFloat::x87DoubleExtended) in get()
729 else if (&V.getSemantics() == &APFloat::IEEEquad) in get()
732 assert(&V.getSemantics() == &APFloat::PPCDoubleDouble && in get()
754 assert(&V.getSemantics() == TypeToFloatSemantics(Ty) && in ConstantFP()
1336 if (&Val2.getSemantics() == &APFloat::IEEEhalf) in isValueValidForType()
1342 if (&Val2.getSemantics() == &APFloat::IEEEsingle) in isValueValidForType()
1348 if (&Val2.getSemantics() == &APFloat::IEEEhalf || in isValueValidForType()
[all …]
HDAsmWriter.cpp1088 if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEsingle || in WriteConstantInternal()
1089 &CFP->getValueAPF().getSemantics() == &APFloat::IEEEdouble) { in WriteConstantInternal()
1096 bool isHalf = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEhalf; in WriteConstantInternal()
1097 bool isDouble = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble; in WriteConstantInternal()
1145 if (&CFP->getValueAPF().getSemantics() == &APFloat::x87DoubleExtended) { in WriteConstantInternal()
1167 } else if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEquad) { in WriteConstantInternal()
1170 } else if (&CFP->getValueAPF().getSemantics() == &APFloat::PPCDoubleDouble) { in WriteConstantInternal()
1173 } else if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEhalf) { in WriteConstantInternal()
/NextBSD/contrib/llvm/tools/clang/lib/AST/
HDExprConstant.cpp379 llvm::APFloat::semanticsPrecision(F.getSemantics()); in operator <<()
2983 APFloat One(Value.getSemantics(), 1); in found()
6862 LHS.FloatImag = APFloat(LHS.FloatReal.getSemantics()); in VisitBinaryOperator()
6874 RHS.FloatImag = APFloat(RHS.FloatReal.getSemantics()); in VisitBinaryOperator()
7838 Result.FloatReal = APFloat(Imag.getSemantics()); in VisitImaginaryLiteral()
7918 Result.FloatImag = APFloat(Real.getSemantics()); in VisitCastExpr()
8004 Result.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
8019 RHS.FloatImag = APFloat(Real.getSemantics()); in VisitBinaryOperator()
8090 APFloat(A.getSemantics(), A.isInfinity() ? 1 : 0), A); in VisitBinaryOperator()
8092 APFloat(B.getSemantics(), B.isInfinity() ? 1 : 0), B); in VisitBinaryOperator()
[all …]
HDExpr.cpp740 setSemantics(V.getSemantics()); in FloatingLiteral()
762 const llvm::fltSemantics &FloatingLiteral::getSemantics() const { in getSemantics() function in FloatingLiteral
HDItaniumMangle.cpp3315 mangleFloat(llvm::APFloat(Imag->getValue().getSemantics())); in mangleExpression()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineAddSub.cpp265 convertToFpType(T.getSemantics()); in operator +=()
271 T.add(createAPFloatFromInt(T.getSemantics(), That.IntVal), RndMode); in operator +=()
286 convertToFpType(T.getSemantics()); in operator -=()
292 T.subtract(createAPFloatFromInt(T.getSemantics(), IntVal), RndMode); in operator -=()
312 isInt() ? That.getFpVal().getSemantics() : getFpVal().getSemantics(); in operator *=()
390 Addend0.set(APFloat(C0->getValueAPF().getSemantics()), nullptr); in drillValueDownOneStep()
HDInstCombineMulDivRem.cpp1190 APFloat Reciprocal(FpVal.getSemantics()); in CvtFDivConstToReciprocal()
1194 Reciprocal = APFloat(FpVal.getSemantics(), 1.0f); in CvtFDivConstToReciprocal()
HDInstCombineCompares.cpp3790 APFloat SMax(RHS.getSemantics()); in FoldFCmp_IntToFP_Cst()
3802 APFloat UMax(RHS.getSemantics()); in FoldFCmp_IntToFP_Cst()
3815 APFloat SMin(RHS.getSemantics()); in FoldFCmp_IntToFP_Cst()
3826 APFloat SMin(RHS.getSemantics()); in FoldFCmp_IntToFP_Cst()
HDInstCombineCalls.cpp1102 APFloat Val(ArgVal.getSemantics(), 1.0); in visitCallInst()
/NextBSD/contrib/llvm/tools/clang/include/clang/AST/
HDAPValue.h370 assert(&R.getSemantics() == &I.getSemantics() && in setComplexFloat()
HDExpr.h1378 return APFloatStorage::getValue(getSemantics()); in getValue()
1381 assert(&getSemantics() == &Val.getSemantics() && "Inconsistent semantics"); in setValue()
1398 const llvm::fltSemantics &getSemantics() const;
/NextBSD/contrib/llvm/tools/clang/include/clang/ASTMatchers/
HDASTMatchersInternal.h1322 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle)
1324 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble)
1331 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEsingle)
1333 if ((&Node.getSemantics()) == &llvm::APFloat::IEEEdouble)
/NextBSD/contrib/llvm/lib/CodeGen/SelectionDAG/
HDSelectionDAGDumper.cpp402 if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle) in print_details()
404 else if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEdouble) in print_details()
HDDAGCombiner.cpp8279 APFloat Recip(N1APF.getSemantics(), 1); // 1.0 in visitFDIV()
/NextBSD/contrib/llvm/include/llvm/ADT/
HDAPFloat.h435 const fltSemantics &getSemantics() const { return *semantics; } in getSemantics() function
/NextBSD/contrib/llvm/lib/Transforms/IPO/
HDMergeFunctions.cpp429 if (int Res = cmpNumbers((uint64_t)&L.getSemantics(), in cmpAPFloats()
430 (uint64_t)&R.getSemantics())) in cmpAPFloats()
/NextBSD/contrib/llvm/lib/Support/
HDAPFloat.cpp3932 auto MaxExp = X.getSemantics().maxExponent; in scalbn()
3933 auto MinExp = X.getSemantics().minExponent; in scalbn()
3936 return APFloat::getInf(X.getSemantics(), X.isNegative()); in scalbn()
3939 return APFloat::getZero(X.getSemantics(), X.isNegative()); in scalbn()
/NextBSD/contrib/llvm/include/llvm/IR/
HDConstants.h295 FV.convert(Val.getSemantics(), APFloat::rmNearestTiesToEven, &ignored); in isExactlyValue()
/NextBSD/contrib/llvm/lib/Target/CppBackend/
HDCPPBackend.cpp207 if (&V.getSemantics() == &APFloat::IEEEdouble) { in ftostr()
210 } else if (&V.getSemantics() == &APFloat::IEEEsingle) { in ftostr()
/NextBSD/contrib/llvm/tools/clang/lib/CodeGen/
HDCGExprConstant.cpp1317 if (&Init.getSemantics() == &llvm::APFloat::IEEEhalf && in EmitConstantValue()
/NextBSD/contrib/llvm/include/llvm/CodeGen/
HDSelectionDAGNodes.h1486 Tmp.convert(Value->getValueAPF().getSemantics(),
/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXInstrInfo.td680 if (&(N->getValueAPF().getSemantics()) != &llvm::APFloat::IEEEsingle)
687 if (&(N->getValueAPF().getSemantics()) != &llvm::APFloat::IEEEdouble)
/NextBSD/contrib/llvm/tools/clang/lib/Serialization/
HDASTReaderStmt.cpp468 Reader.ReadAPFloat(Record, E->getSemantics(), Idx)); in VisitFloatingLiteral()
/NextBSD/contrib/llvm/lib/AsmParser/
HDLLParser.cpp4000 if (&ID.APFloatVal.getSemantics() == &APFloat::IEEEdouble) { in ConvertValIDToValue()
/NextBSD/contrib/llvm/tools/clang/lib/Sema/
HDSemaChecking.cpp6788 unsigned precision = llvm::APFloat::semanticsPrecision(Value.getSemantics()); in DiagnoseFloatingLiteralImpCast()