This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Generate CmpFPredicate as an EnumAttr in tablegen
ClosedPublic

Authored by rriddle on Mar 3 2020, 9:38 AM.

Details

Summary

This allows for attaching the attribute to CmpF as a proper argument, and thus enables the removal of a bunch of c++ code.

Diff Detail

Event Timeline

rriddle created this revision.Mar 3 2020, 9:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2020, 9:38 AM
ftynse accepted this revision.Mar 3 2020, 10:07 AM

Nice cleanup, thanks!

I also considered changing the syntax to drop the quotes (we now have enough support to parse a keyword and check if it is one of the allowed options).

This revision is now accepted and ready to land.Mar 3 2020, 10:07 AM
This revision was automatically updated to reflect the committed changes.