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

Anton Korobeynikov anton at korobeynikov.info
Wed Sep 28 13:31:14 PDT 2011


Hi Chandler,

> My proposed re-vamp would start by defining an enum for all of the processor
> variations, and a using a single stringswitch in the setCPU routine to map
> from string -> enum value. Then the if chains can become a switch with some
> small ifs or sub-switches within it.
Can we somehow tablegen'ify these defines?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-dev mailing list