Paul C. Anagnostopoulos via llvm-dev
2020-Oct-03 14:45 UTC
[llvm-dev] New TableGen backend for debugging
I'd like to announce a new TableGen backend: Print Detailed Records. I hope this will help people when they are debugging complex TableGen files. It prints all the global variables, classes, and records with more detail than the default backend. In particular, it includes the source locations of the class and record definitions, and the source locations of the places where field values were set. It also includes the defm sequence for records that were generated by one or more defm statements. You can read about it here: https://llvm.org/docs/TableGen/BackGuide.html#the-printdetailedrecords-backend
Nemanja Ivanovic via llvm-dev
2020-Oct-07 12:12 UTC
[llvm-dev] New TableGen backend for debugging
This is really useful. Is there a way to produce this output automatically (by providing some CMake variable)? For example, something like: -DBUILD_TBLGEN_DEBUG=<Target> On Sat, Oct 3, 2020 at 10:48 AM Paul C. Anagnostopoulos via llvm-dev < llvm-dev at lists.llvm.org> wrote:> I'd like to announce a new TableGen backend: Print Detailed Records. I > hope this will help people when they are debugging complex TableGen files. > It prints all the global variables, classes, and records with more detail > than the default backend. In particular, it includes the source locations > of the class and record definitions, and the source locations of the places > where field values were set. It also includes the defm sequence for records > that were generated by one or more defm statements. > > You can read about it here: > > > https://llvm.org/docs/TableGen/BackGuide.html#the-printdetailedrecords-backend > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20201007/af629359/attachment-0001.html>
Paul C. Anagnostopoulos via llvm-dev
2020-Oct-07 13:32 UTC
[llvm-dev] New TableGen backend for debugging
I'm glad you find it useful. I haven't thought about it being done as part of the build, nor am I any sort of build guru. What do other people think? At 10/7/2020 08:12 AM, Nemanja Ivanovic wrote:>This is really useful. Is there a way to produce this output automatically (by providing some CMake variable)? For example, something like: >-DBUILD_TBLGEN_DEBUG=<Target> > >On Sat, Oct 3, 2020 at 10:48 AM Paul C. Anagnostopoulos via llvm-dev <<mailto:llvm-dev at lists.llvm.org>llvm-dev at lists.llvm.org> wrote: >I'd like to announce a new TableGen backend: Print Detailed Records. I hope this will help people when they are debugging complex TableGen files. It prints all the global variables, classes, and records with more detail than the default backend. In particular, it includes the source locations of the class and record definitions, and the source locations of the places where field values were set. It also includes the defm sequence for records that were generated by one or more defm statements. > >You can read about it here: > ><https://llvm.org/docs/TableGen/BackGuide.html#the-printdetailedrecords-backend>https://llvm.org/docs/TableGen/BackGuide.html#the-printdetailedrecords-backend