arsenm added a comment. Needs some testing, especially MIR print and parse. Can you not simply look through the existing Value to find the provenance? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107354/new/ https://reviews.llvm.org/D107354