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

Che-Liang Chiou clchiou at gmail.com
Thu Oct 6 05:42:06 PDT 2011


Hi,

I have sent out proposal for discussion earlier (search title:
proposal: add macro expansion of for-loop to TableGen). If you have
any comments, please reply to that thread. Thanks!

Regards,
Che-Liang

On Thu, Oct 6, 2011 at 7:47 AM, Jakob Stoklund Olesen <stoklund at 2pi.dk> wrote:
>
> 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