This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Use double format when parsing bfloat16 hexadecimal values
ClosedPublic

Authored by rriddle on Jan 13 2020, 4:45 PM.

Details

Summary

bfloat16 doesn't have a valid APFloat format, so we have to use double semantics when storing it. This change makes sure that hexadecimal values can be round-tripped properly given this fact.

Diff Detail

Event Timeline

rriddle created this revision.Jan 13 2020, 4:45 PM

Unit tests: fail. 61743 tests passed, 1 failed and 780 were skipped.

failed: MLIR.IR/invalid.mlir

clang-tidy: unknown.

clang-format: pass.

Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

mehdi_amini accepted this revision.Jan 13 2020, 5:07 PM
This revision is now accepted and ready to land.Jan 13 2020, 5:07 PM
rriddle updated this revision to Diff 237822.Jan 13 2020, 5:18 PM

Fix invalid test.

Unit tests: pass. 61744 tests passed, 0 failed and 780 were skipped.

clang-tidy: unknown.

clang-format: pass.

Build artifacts: diff.json, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Unit tests: unknown.

clang-tidy: unknown.

clang-format: unknown.

Build artifacts: console-log.txt

This revision was automatically updated to reflect the committed changes.