diff options
author | orbiri <orzivh@gmail.com> | 2024-05-04 13:58:14 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-04 12:58:14 +0200 |
commit | 1e3c630fd1e868c38a2ef6dab0be80bc8f65c4a1 (patch) | |
tree | f62d7658d82bae0001382ae362feafcd74f52f12 /llvm/lib/Support/VirtualFileSystem.cpp | |
parent | 294eecd4cbd8a1e0dcc0cdbe1238817b92ba7668 (diff) | |
download | llvm-1e3c630fd1e868c38a2ef6dab0be80bc8f65c4a1.zip llvm-1e3c630fd1e868c38a2ef6dab0be80bc8f65c4a1.tar.gz llvm-1e3c630fd1e868c38a2ef6dab0be80bc8f65c4a1.tar.bz2 |
[MLIR] Extend floating point parsing support (#90442)
Parsing support for floating point types was missing a few features:
1. Parsing floating point attributes from integer literals was supported
only for types with bitwidth smaller or equal to 64.
2. Downstream users could not use `AsmParser::parseFloat` to parse float
types which are printed as integer literals.
This commit addresses both these points. It extends
`Parser::parseFloatFromIntegerLiteral` to support arbitrary bitwidth,
and exposes a new API to parse arbitrary floating point given an
fltSemantics as input. The usage of this new API is introduced in the
Test Dialect.
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions