[llvm-dev] TableGen trace facility

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 5 05:26:37 PDT 2020


Your reply suggests that there is a way to see debug messages from TableGen. Is that what you meant? If so, can you explain how that works? (Sorry, I should know the answer to this question, but I'm quite the newbie.)

At 8/5/2020 04:15 AM, Madhur Amilkanthwar wrote:
>Hi Paul,
>If all you care about is debugging then for now we can just emit a few more debug messages which would help to "trace" the flow. To distinguish traces you can prefix it with some known string. I don't think you really need a 'trace' tag in the language spec for this.
>
>Debugging Tablegen has always been a nightmare and I don't think we can ever reach a stage where we can start a debugger and debug statements in .td files step-by-step. This is far from reality unless we fundamentally change the language.



More information about the llvm-dev mailing list