[LLVMdev] identifying live in and live out variables in a basic block pass

Eli Friedman eli.friedman at gmail.com
Sun Sep 6 15:24:23 PDT 2009

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


More information about the llvm-dev mailing list