More reducing IRState size.
More IRState reductions, remove global 'gen' IRState.