Remove unused DMD IRState implementations.
Remove unused, empty Ir type.

The codegen parameter was changed to IRState instead of
removing it to set the stage for an eventual eradication
of the gIR global.
Use IRState parameter instead of gIR where available.