Files
clang-p2996/mlir/lib/AsmParser/AttributeParser.cpp
Matthias Springer 4548bff0e8 [mlir][Parser] Deduplicate floating-point parsing functionality (#116172)
The following functionality is duplicated in multiple places: trying to
parse an APFloat from a floating point literal or an integer in
hexadecimal representation (bit pattern). Move it to a common helper
function.

NFC apart from the slightly changed error messages. (We now print the
exact same error messages regardless of whether the float is parsed
standalone or inside of a tensor literal, etc.)
2024-11-18 17:29:54 +09:00

42 KiB