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

Jianzhou Zhao jianzhou at seas.upenn.edu
Wed Jul 21 04:17:56 PDT 2010


Does this help?

http://llvm.org/docs/SourceLevelDebugging.html

2010/7/20 Wenbin Zhang <zhangwen at cse.ohio-state.edu>:
> 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?
>
> Thanks.
>
> Regards,
> --Wenbin
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>



-- 
Jianzhou




More information about the llvm-dev mailing list