[llvm-dev] [RFC] Compiled regression tests.
Michael Kruse via llvm-dev
llvm-dev at lists.llvm.org
Wed Jul 1 22:44:54 PDT 2020
Am Mi., 1. Juli 2020 um 14:36 Uhr schrieb Hal Finkel <hfinkel at anl.gov>:
> When I teach my compilers class, I tell my students to liberally add the
> ability to serialize to interpretable text all of their internal data
> structures. It will seem like extra work at first, but when they're
> trying to debug things later, it will be really helpful. I think this is
> a key lesson that I, at least, have learned from LLVM. It makes us all
> more productive in the end (in part because we often spend much more
> time debugging our code than writing it in the first place). Firing up
> an actual debugger is slow and (despite our best efforts) fragile,
> changing a textual input and running it through something that produces
> textual output is fast.
One of the first things I write for my data structure is indeed a dump
function. However, the output is not stable since I regularly
change/remove/add information that is dumped depending on whether
information is relevant, adds too much noise, or found a better
textual representation of the same thing.
Michael
More information about the llvm-dev
mailing list