This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Add bytecode encodings for the builtin ElementsAttr attributes
ClosedPublic

Authored by rriddle on Sep 12 2022, 7:22 PM.

Details

Summary

This adds bytecode support for DenseArrayAttr, DenseIntOrFpElementsAttr,
DenseStringElementsAttr, and SparseElementsAttr.

Depends on D133743

Diff Detail

Event Timeline

rriddle created this revision.Sep 12 2022, 7:22 PM
rriddle requested review of this revision.Sep 12 2022, 7:23 PM
jpienaar accepted this revision.Sep 12 2022, 9:05 PM

Nice!

mlir/include/mlir/Bytecode/BytecodeImplementation.h
233

Same lifetime requirements as String above?

This revision is now accepted and ready to land.Sep 12 2022, 9:05 PM
This revision was automatically updated to reflect the committed changes.
rriddle marked an inline comment as done.
abeakkas added inline comments.
mlir/test/Dialect/Builtin/Bytecode/attrs.mlir
92

There's a small typo here. It should be "CHECK{LITERAL}" instead.