This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Add the !filter bang operator.
ClosedPublic

Authored by Paul-C-Anagnostopoulos on Nov 7 2020, 10:26 AM.

Details

Summary

I added the !filter bang operator to simplify various !foldl expressions and to improve efficiency. It eliminates all the intermediate list concatenations required when using !foldl.

I updated the Programmer's Reference and wrote a test.

I used the new operator in various .td files.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptNov 7 2020, 10:26 AM
Paul-C-Anagnostopoulos requested review of this revision.Nov 7 2020, 10:26 AM
lattner accepted this revision.Nov 7 2020, 1:20 PM

Very nice Paul!

This revision is now accepted and ready to land.Nov 7 2020, 1:20 PM
This revision was landed with ongoing or failed builds.Nov 9 2020, 7:57 AM
This revision was automatically updated to reflect the committed changes.