-add_executable(tblgen
+set(LLVM_REQUIRES_EH 1)
+set(LLVM_REQUIRES_RTTI 1)
+set(LLVM_LINK_COMPONENTS Support)
+
+add_tablegen(llvm-tblgen LLVM
+ AsmMatcherEmitter.cpp
AsmWriterEmitter.cpp
+ AsmWriterInst.cpp
CallingConvEmitter.cpp
CodeEmitterGen.cpp
CodeGenDAGPatterns.cpp
CodeGenInstruction.cpp
+ CodeGenRegisters.cpp
CodeGenTarget.cpp
DAGISelEmitter.cpp
+ DAGISelMatcherEmitter.cpp
+ DAGISelMatcherGen.cpp
+ DAGISelMatcherOpt.cpp
+ DAGISelMatcher.cpp
+ DFAPacketizerEmitter.cpp
+ DisassemblerEmitter.cpp
+ EDEmitter.cpp
+ FastISelEmitter.cpp
+ FixedLenDecoderEmitter.cpp
InstrEnumEmitter.cpp
InstrInfoEmitter.cpp
IntrinsicEmitter.cpp
- LLVMCConfigurationEmitter.cpp
- Record.cpp
+ PseudoLoweringEmitter.cpp
RegisterInfoEmitter.cpp
+ SetTheory.cpp
+ StringMatcher.cpp
SubtargetEmitter.cpp
- TGLexer.cpp
- TGParser.cpp
TGValueTypes.cpp
TableGen.cpp
- TableGenBackend.cpp
- FastISelEmitter.cpp
- ClangDiagnosticsEmitter.cpp
+ X86DisassemblerTables.cpp
+ X86ModRMFilters.cpp
+ X86RecognizableInstr.cpp
)
-
-target_link_libraries(tblgen LLVMSupport LLVMSystem)
-if( MINGW )
- target_link_libraries(tblgen imagehlp psapi)
-endif( MINGW )