llvm-6502/lib/TableGen/CMakeLists.txt
Che-Liang Chiou f987425657 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 $@ $<



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141079 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-04 15:14:51 +00:00

18 lines
324 B
CMake

## FIXME: This only requires RTTI because tblgen uses it. Fix that.
set(LLVM_REQUIRES_RTTI 1)
set(LLVM_REQUIRES_EH 1)
add_llvm_library(LLVMTableGen
Error.cpp
Main.cpp
Record.cpp
TableGenBackend.cpp
TGLexer.cpp
TGParser.cpp
TGPreprocessor.cpp
)
add_llvm_library_dependencies(LLVMTableGen
LLVMSupport
)