[llvm-commits] An addition operator for TableGen

Jakob Stoklund Olesen stoklund at 2pi.dk
Fri Jan 25 09:33:35 PST 2013


On Jan 24, 2013, at 4:57 PM, Hal Finkel <hfinkel at anl.gov> wrote:

> Hello again,
> 
> Please review the attached patch which adds an addition operator !add(a, b) to TableGen. I'd like to use this to cleanup the PPC register definitions (associated patch also attached). This patch is based on David Greene's !mul proposal.

Hi Hal,

I think it is great to add expressions to TableGen, but as Sean pointed out, the syntax proposed here is really gross.

Surely a gaggle of compiler engineers can do better!

/jakob




More information about the llvm-commits mailing list