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.

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