This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Width parameterization of BitEnum attributes
ClosedPublic

Authored by jfurtek on Apr 4 2022, 4:12 PM.

Details

Summary

This diff contains:

  • Parameterization of bit enum attributes in OpBase.td by bit width (e.g. 32

and 64). Previously, all enums were 32-bits. This brings enum functionality in
line with other integer attributes, and allows for bit enums greater than 32
bits.

  • SPIRV and Vector dialects were updated to use bit enum attributes with an explicit bit width

Diff Detail

Event Timeline

jfurtek created this revision.Apr 4 2022, 4:12 PM
jfurtek requested review of this revision.Apr 4 2022, 4:12 PM
mehdi_amini accepted this revision.Apr 4 2022, 4:15 PM

LG, thanks!

This revision is now accepted and ready to land.Apr 4 2022, 4:15 PM
jfurtek updated this revision to Diff 421315.Apr 7 2022, 12:41 PM

This diff contains:

Parameterization of bit enum attributes in OpBase.td by bit width (e.g. 32
and 64). Previously, all enums were 32-bits. This brings enum functionality in
line with other integer attributes, and allows for bit enums greater than 32
bits.
SPIRV and Vector dialects were updated to use bit enum attributes with an explicit bit width

(update to rebase)

(updated diff to rebase...)

I don't have commit privileges, and would appreciate someone landing these changes when convenient.

This revision was automatically updated to reflect the committed changes.