Page MenuHomePhabricator

[mlir][Tablegen-LSP] Add support for a compilation database

Authored by rriddle on May 11 2022, 8:00 PM.



This provides a format for externally specifying the include directories
for a source file. The format of the tablegen database is exactly the
same as that for PDLL, namely it includes the absolute source file name and
the set of include directories. The database format is shared to simplify
the infra, and also because the format itself is general enough to share. Even
if we desire to expand in the future to contain the actual compilation command,
nothing there is specific enough that we would need two different formats.

As with PDLL, support for generating the database is added to our mlir_tablegen
cmake command.

Diff Detail

Event Timeline

rriddle created this revision.May 11 2022, 8:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 11 2022, 8:00 PM
rriddle requested review of this revision.May 11 2022, 8:00 PM
rriddle updated this revision to Diff 429626.May 16 2022, 12:40 AM
rriddle edited the summary of this revision. (Show Details)
jpienaar accepted this revision.May 25 2022, 10:44 AM

Nice thanks

This revision is now accepted and ready to land.May 25 2022, 10:44 AM