Generate IR for variable declaration.

Also treat formal parameters the same.