This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add function to create Float16 array attribute
ClosedPublic

Authored by fortianyou on Jul 19 2022, 2:17 AM.

Details

Summary

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

This commit is repeating https://reviews.llvm.org/D123981 + #761 but for Float16

Diff Detail

Event Timeline

fortianyou created this revision.Jul 19 2022, 2:17 AM
fortianyou requested review of this revision.Jul 19 2022, 2:17 AM
This revision is now accepted and ready to land.Jul 19 2022, 11:10 AM

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

This revision was automatically updated to reflect the committed changes.

Just pushed it. Please keep an eye on the CI emails in case this breaks any of the bots.