This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Tensor] Allow builders of `tensor.empty` to accept encoding attribute.
ClosedPublic

Authored by mravishankar on Nov 2 2022, 3:51 PM.

Details

Summary

The RankedTensorType can have an optional encoding
attribute. Allowing the builders of tensor.empty to accept the
encoding attribute (optionally), allows building empty tensors with
the type having the encoding attribute.

Diff Detail

Event Timeline

mravishankar created this revision.Nov 2 2022, 3:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 2 2022, 3:51 PM
mravishankar requested review of this revision.Nov 2 2022, 3:51 PM
hanchung accepted this revision.Nov 2 2022, 4:28 PM
hanchung added a reviewer: springerm.

LGTM, maybe can wait for a day to see if others have comments.

This revision is now accepted and ready to land.Nov 2 2022, 4:29 PM
springerm accepted this revision.Nov 3 2022, 7:44 AM
nicolasvasilache accepted this revision.Nov 3 2022, 7:49 AM

Great to see a push on this!