summaryrefslogtreecommitdiff
path: root/lib/TableGen/TGPreprocessor.cpp
Commit message (Collapse)AuthorAge
* Revert r141079: tblgen: add preprocessor as a separate modeChe-Liang Chiou2011-10-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141492 91177308-0d34-0410-b5e6-96231b3b80d8
* Replace snprintf with raw_string_ostream.Francois Pichet2011-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141116 91177308-0d34-0410-b5e6-96231b3b80d8
* Unbreak MSVC build.Francois Pichet2011-10-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141093 91177308-0d34-0410-b5e6-96231b3b80d8
* tblgen: add preprocessor as a separate modeChe-Liang Chiou2011-10-04
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 $@ $< git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141079 91177308-0d34-0410-b5e6-96231b3b80d8