[llvm-dev] Another possible tracing feature for TableGen

Paul C. Anagnostopoulos via llvm-dev llvm-dev at lists.llvm.org
Sun Aug 9 09:33:15 PDT 2020

I had another idea for a TableGen tracing feature and would like some feedback. It's quite possible I'm on the wrong track here and that improved backend tracing is what folks really need.

The idea is to add a -trace option to the tblgen command line. With it you can list one or more record names. TableGen would produce a detailed trace of how the record is built: class inheritances, template argument values, surrounding let substitutions, record field values, etc.  An anonymous record could be traced once you knew its name.

It might make sense to include a trace level, too, since a fully detailed trace might sometimes show too much information.

More information about the llvm-dev mailing list