https://github.com/fhahn approved this pull request. LGTM, thanks, with just one comment whether it would be worth replacing `provenance` with `write_provenance` https://github.com/llvm/llvm-project/pull/116990