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

Eli Friedman eli.friedman at gmail.com
Wed Oct 5 13:38:22 PDT 2011


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.

-Eli




More information about the llvm-commits mailing list