This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ods] Add tablegen field for (optional) concise printing of BitEnum attributes
AbandonedPublic

Authored by jfurtek on Apr 8 2022, 10:28 AM.

Details

Summary

This diff introduces a tablegen field for bit enum attributes
(printBitEnumPrimaryGroups) to control printing when the enum uses "group"
cases. An example would be an implementation that uses a fastmath enum value
as an alias for individual fastmath flags. The proposed field would allow
printing of simply fast for the enum value, instead of the more verbose list
that would include fast as well as the individual flags (e.g. reassoc,nnan,
ninf,nsz,arcp,contract,afn,fast).

Diff Detail

Event Timeline

jfurtek created this revision.Apr 8 2022, 10:28 AM
Herald added a project: Restricted Project. · View Herald Transcript
jfurtek requested review of this revision.Apr 8 2022, 10:28 AM
jfurtek planned changes to this revision.Apr 11 2022, 6:08 PM

Will wait for pending EnumAttr.td changes to land...

jfurtek abandoned this revision.Apr 15 2022, 12:57 PM

abandoning - will resubmit new diff from updated repo