[LLVMdev] Can we map a instruction in IR back to source code?

Wenbin Zhang zhangwen at cse.ohio-state.edu
Tue Jul 20 20:53:53 PDT 2010

Hi all,
Can we map an IR instruction to the correlated source code?

Or, if I want to recognize an assignment statement in the source code, can we quickly find all the related IR instructions according to a 'store'?
E.g., i = j +k + m[5] in IR will have some loads and some getelementptrs. Can we define which IRs are related to this assignment?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100720/4e63ff53/attachment.html>

More information about the llvm-dev mailing list