This has been done, example: Compiler Explorer
Reminder that if you include something like Target.td you will get a whole ton of output and we don’t have a way to filter that right now.
I’m hoping that [RFC][TableGen] New llvm-tblgen backend to print records/classes hierarchy as a dot graph may provide a way to do that for Compiler Explorer and Notebooks in the future.
Also we have the latest version of llvm-tblgen available now, in addition to 17.0.1.