nir/dead_variables: Add a a mode parameter

This allows dead_variables to be used on any type of variable.
3 files changed