Create a structure to hold most of the IR generation data.

Right now this is just a useless moving of a bunch of code to a
different source file, but pretty soon there'll be one of these per
lexical function we're currently parsing and it'll simplify a whole pile
of stuff.