labath wrote: Not completely finished (not least because it doesn't build), but I think the framework is obvious, so I though this would be a good idea for the first round of feedback. (context: #139170) https://github.com/llvm/llvm-project/pull/144543