This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Enhance !empty and !size to handle strings and DAGs
ClosedPublic

Authored by Paul-C-Anagnostopoulos on Oct 18 2020, 1:08 PM.

Details

Summary

This patch enhances the TableGen !empty and !size operators so they can handle strings and DAGs in addition to lists. This is the first in a series of patches to improve TableGen's ability to build complex DAGs.

In the process, I fixed a bug in the type checking for !first, !empty, !size, and !tail.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptOct 18 2020, 1:08 PM
Paul-C-Anagnostopoulos requested review of this revision.Oct 18 2020, 1:08 PM
lattner accepted this revision.Oct 18 2020, 5:54 PM

nice!

This revision is now accepted and ready to land.Oct 18 2020, 5:54 PM