[cfe-dev] First shot at Bug 4127 - The clang driver should support cross compilation

David Chisnall theraven at sucs.org
Tue Jan 10 02:41:46 PST 2012


On 10 Jan 2012, at 10:00, James Molloy wrote:

>  * This can take two forms - hard-baked and JSON. The hard-baked version I see being a tablegen file similar (as possible) to the JSON representation, which is compiled into Clang for speed.

Is there any reason why you can't create a tool that parses the JSON and emits a C++ class so that it can be exactly the same for the cases that don't require any custom executable logic?  This would make prototyping new platforms a lot easier, since it would mean that you'd just poke the JSON until it worked and then add it to the list of JSON files to be transformed into C++ in the default build when it was ready (and people shipping clang for their obscure platform could just add it as part of their default build, even if it were of no interest to anyone else).

David

-- Sent from my brain



More information about the cfe-dev mailing list