[Mlir-commits] [mlir] [mlir][Parser] Deduplicate floating-point parsing functionality (PR #116172)
Matthias Springer
llvmlistbot at llvm.org
Mon Nov 18 00:18:39 PST 2024
================
@@ -99,6 +99,29 @@ FailureOr<APFloat> detail::parseFloatFromIntegerLiteral(
return APFloat(semantics, truncatedValue);
}
+FailureOr<APFloat>
+detail::parseFloatFromLiteral(function_ref<InFlightDiagnostic()> emitError,
----------------
matthias-springer wrote:
You're right, I didn't notice that all the helper classes have a reference to the parser. That also makes #116171 obsolete.
https://github.com/llvm/llvm-project/pull/116172
More information about the Mlir-commits
mailing list