[llvm-commits] [llvm] r141079 - in /llvm/trunk/lib/TableGen: CMakeLists.txt Main.cpp TGPreprocessor.cpp TGPreprocessor.h

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Oct 5 16:47:03 PDT 2011


On Oct 5, 2011, at 1:38 PM, Eli Friedman wrote:

> On Tue, Oct 4, 2011 at 8:14 AM, Che-Liang Chiou <clchiou at gmail.com> wrote:
>> Author: clchiou
>> Date: Tue Oct  4 10:14:51 2011
>> New Revision: 141079
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=141079&view=rev
>> Log:
>> tblgen: add preprocessor as a separate mode
>> 
>> This patch adds a preprocessor that can expand nested for-loops for
>> saving some copy-n-paste in *.td files.
>> 
>> The preprocessor is not yet integrated with TGParser, and so it has
>> no direct effect on *.td inputs.  However, you may preprocess an td
>> input (and only preprocess it).
>> 
>> To test the proprecessor, type:
>>  tblgen -E -o $@ $<
> 
> Has anyone reviewed this feature?  At first glance, this patch doesn't
> seem like the direction we want to go with TableGen.

We definitely shouldn't add both this and David's Greenspunning.

/jakob




More information about the llvm-commits mailing list