[cfe-dev] Anemic support for processor based preprocessor defines

John McCall rjmccall at apple.com
Wed Sep 28 14:07:06 PDT 2011


On Sep 28, 2011, at 1:40 PM, Anton Korobeynikov wrote:
>> We can, but they were quite easy to lay out by hand. It's not clear to me
>> that its worth the effort to teach tablegen about them unless we want to
>> move all the architectures over, and expect the whole thing to grow a lot...
> Well... we can just autogenerate all those switches, etc. and reduce
> the "weight" of the source fileā€¦.

On general principle, please try macro-metaprogramming before adding yet another tblgen mode.  If it's not worth a macro-metaprogram, it's definitely not worth tblgen.

John.



More information about the cfe-dev mailing list