[clang] [llvm] [APFloat] Add APFloat support for FP6 data types (PR #94735)
Durgadoss R via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 06:57:28 PDT 2024
================
@@ -47,6 +47,10 @@ static std::string convertToString(double d, unsigned Prec, unsigned Pad,
return std::string(Buffer.data(), Buffer.size());
}
+static bool hasNanOrInf(APFloat::Semantics S) {
+ return (S != APFloat::S_Float6E3M2FN) && (S != APFloat::S_Float6E2M3FN);
+}
----------------
durga4github wrote:
Sure, moved it as a static-helper inside APFloat and using that here
https://github.com/llvm/llvm-project/pull/94735
More information about the llvm-commits
mailing list