tblgen automated code emitter?

Hi,

I noted that tblgen (in 2.5) seems to generate some code related to
code emission. Does this work? If so, how is it used/controlled?

Thanks,
someguy

Hi,

I noted that tblgen (in 2.5) seems to generate some code related to
code emission. Does this work? If so, how is it used/controlled?

Yes, it works. You can look at how ARM backend uses it. Basically you can specify the "static" portion of instruction encoding in instruction definitions in td files.

Evan