This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Refactor TableGenParseFile to no longer use a callback
ClosedPublic

Authored by rriddle on May 9 2022, 3:33 PM.

Details

Summary

Now that TableGen no longer relies on global Record state, we can allow
for the client to own the RecordKeeper and SourceMgr. Given that TableGen
internally still relies on the global llvm::SrcMgr, this method unfortunately
still isn't thread-safe.

Diff Detail

Event Timeline

rriddle created this revision.May 9 2022, 3:33 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2022, 3:33 PM
rriddle requested review of this revision.May 9 2022, 3:33 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 9 2022, 3:33 PM
lattner accepted this revision.May 9 2022, 11:33 PM

nice, this is a more logical API

This revision is now accepted and ready to land.May 9 2022, 11:33 PM
rriddle updated this revision to Diff 428492.May 10 2022, 1:49 PM
rriddle edited the summary of this revision. (Show Details)
rriddle updated this revision to Diff 428561.May 10 2022, 9:27 PM
nhaehnle accepted this revision.May 11 2022, 9:42 AM
nhaehnle added a subscriber: nhaehnle.

Thank you for doing this! Not a detailed review but the interface and approach LGTM.