RAJWINDER SINGH wrote: > Let us say there is an Instruction I in an IR. > Is there any function using which I can know that in which line number > this Instruction I lies in the original c++ file?? Try looking at http://llvm.org/docs/SourceLevelDebugging.html; it provides information on the source level debugging metadata in LLVM IR. -- John T.