Wenbin Zhang
2010-Jul-21 03:53 UTC
[LLVMdev] Can we map a instruction in IR back to source code?
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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100720/4e63ff53/attachment.html>
Jianzhou Zhao
2010-Jul-21 11:17 UTC
[LLVMdev] Can we map a instruction in IR back to source code?
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
Maybe Matching Threads
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] the generation of getelementptr instruction
- [LLVMdev] a problem when using postDominatorTree
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?