Map LLVM IR Instruction to the Corresponding Line in the LLVM Assembly Source File

Hi!
I want to know the exact line number in the “.ll” file that an instruction comes from. This helps me understand how different passes work and manipulate IR. Is it possible? How?
Thanks in advance!

You could try https://reviews.llvm.org/D40778

Michael