This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Enhance the six comparison bang operators.
ClosedPublic

Authored by Paul-C-Anagnostopoulos on Nov 8 2020, 11:41 AM.

Details

Summary

All six comparison operators now work with strings.

In addition, the !eq and !ne operators work with records. This eliminates lots of !cast<string> operations that were necessary to compare record names as strings.

The Programmer's Reference is updated.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 8 2020, 11:41 AM
Paul-C-Anagnostopoulos requested review of this revision.Nov 8 2020, 11:41 AM
Paul-C-Anagnostopoulos added inline comments.
llvm/test/TableGen/compare.td
1–2

Oops, I forgot to add the RUN lines for the errors. I will do this.

I will auto-LGTM this revision in 36 hours.

This revision was not accepted when it landed; it landed in state Needs Review.Nov 13 2020, 6:57 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.