This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add function to create BFloat16 array attribute
ClosedPublic

Authored by ashay-github on Apr 18 2022, 9:34 PM.

Details

Summary

This patch adds a new function mlirDenseElementsAttrBFloat16Get(),
which accepts the shaped type, the number of BFloat16 values, and a
pointer to an array of BFloat16 values, each of which is a uint16_t
value.

Diff Detail

Event Timeline

ashay-github created this revision.Apr 18 2022, 9:34 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 18 2022, 9:34 PM
ashay-github requested review of this revision.Apr 18 2022, 9:34 PM
stellaraccident accepted this revision.Apr 18 2022, 9:48 PM

Excellent, thanks. Do you have commit access to land?

This revision is now accepted and ready to land.Apr 18 2022, 9:48 PM

@stellaraccident Thanks for approving. I do not have commit access yet. Could you (or someone) commit this for now please? Thanks!

This revision was automatically updated to reflect the committed changes.