This is an archive of the discontinued LLVM Phabricator instance.

[mlir][DenseElementsAttr] Fix storage size for bfloat16 when parsing from hex.
ClosedPublic

Authored by rriddle on Feb 25 2020, 12:05 PM.

Details

Summary

bfloat16 is stored internally as a double, so we can't direct use Type::getIntOrFloatBitWidth.

Diff Detail

Event Timeline

rriddle created this revision.Feb 25 2020, 12:05 PM
lucyrfox accepted this revision.Feb 25 2020, 12:18 PM

LGTM, thanks for the quick fix, River!

This revision is now accepted and ready to land.Feb 25 2020, 12:18 PM
This revision was automatically updated to reflect the committed changes.