[llvm-dev] New TableGen backend for debugging

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 7 06:32:21 PDT 2020


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 



More information about the llvm-dev mailing list