ostannard wrote: It turns out that tablegen already stores a full list of source locations when multiclasses are involved, so it was easy to implement that fully. https://github.com/llvm/llvm-project/pull/79028