Initial work on IR the generator.

It doesn't really do much but it is a nice
starting point.