Fadi Abboud
2009-Sep-06 12:39 UTC
[LLVMdev] identifying live in and live out variables in a basic block pass
Hello, I need to identify the live in (but mostly the live out) variables in a basic block (pass) I went over the documentation but couldn't find a way to do it. can anyone help and if possible point me to some code snippets ... thanks - fadi. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090906/a066d275/attachment.html>
Eli Friedman
2009-Sep-06 22:24 UTC
[LLVMdev] identifying live in and live out variables in a basic block pass
On Sun, Sep 6, 2009 at 5:39 AM, Fadi Abboud<fadi at noto.ms> wrote:> Hello, > I need to identify the live in (but mostly the live out) variables in a > basic block (pass) > I went over the documentation but couldn't find a way to do it. > can anyone help and if possible point me to some code snippets ...By "variables", do you mean SSA values? You can do that simply by iterating over the uses and checking if any are outside of the current block. -Eli