2010-10-17 04:26:16 +02:00
|
|
|
set(LLVM_REQUIRES_EH 1)
|
|
|
|
set(LLVM_REQUIRES_RTTI 1)
|
|
|
|
|
2011-02-03 21:57:36 +01:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
|
|
|
|
|
2011-02-20 23:06:10 +01:00
|
|
|
add_llvm_utility(tblgen
|
2010-04-03 06:36:43 +02:00
|
|
|
ARMDecoderEmitter.cpp
|
2009-07-11 23:53:14 +02:00
|
|
|
AsmMatcherEmitter.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
AsmWriterEmitter.cpp
|
2010-02-09 23:29:16 +01:00
|
|
|
AsmWriterInst.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
CallingConvEmitter.cpp
|
2010-05-05 06:13:08 +02:00
|
|
|
ClangASTNodesEmitter.cpp
|
2010-06-17 02:10:16 +02:00
|
|
|
ClangAttrEmitter.cpp
|
2009-03-16 18:04:14 +01:00
|
|
|
ClangDiagnosticsEmitter.cpp
|
2011-02-14 18:58:52 +01:00
|
|
|
ClangSACheckersEmitter.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
CodeEmitterGen.cpp
|
|
|
|
CodeGenDAGPatterns.cpp
|
|
|
|
CodeGenInstruction.cpp
|
|
|
|
CodeGenTarget.cpp
|
|
|
|
DAGISelEmitter.cpp
|
2010-02-15 09:04:42 +01:00
|
|
|
DAGISelMatcherEmitter.cpp
|
|
|
|
DAGISelMatcherGen.cpp
|
2010-02-24 08:06:50 +01:00
|
|
|
DAGISelMatcherOpt.cpp
|
2010-02-15 09:04:42 +01:00
|
|
|
DAGISelMatcher.cpp
|
2009-11-25 03:13:23 +01:00
|
|
|
DisassemblerEmitter.cpp
|
2010-01-29 02:10:25 +01:00
|
|
|
EDEmitter.cpp
|
2009-03-16 18:04:14 +01:00
|
|
|
FastISelEmitter.cpp
|
2011-02-18 23:06:23 +01:00
|
|
|
FixedLenDecoderEmitter.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
InstrEnumEmitter.cpp
|
|
|
|
InstrInfoEmitter.cpp
|
|
|
|
IntrinsicEmitter.cpp
|
|
|
|
LLVMCConfigurationEmitter.cpp
|
2010-05-28 03:08:32 +02:00
|
|
|
NeonEmitter.cpp
|
2009-11-19 00:20:09 +01:00
|
|
|
OptParserEmitter.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
Record.cpp
|
|
|
|
RegisterInfoEmitter.cpp
|
2010-09-06 04:58:25 +02:00
|
|
|
StringMatcher.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
SubtargetEmitter.cpp
|
|
|
|
TGLexer.cpp
|
|
|
|
TGParser.cpp
|
2008-11-03 18:56:27 +01:00
|
|
|
TGValueTypes.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
TableGen.cpp
|
|
|
|
TableGenBackend.cpp
|
2009-12-19 03:59:52 +01:00
|
|
|
X86DisassemblerTables.cpp
|
|
|
|
X86RecognizableInstr.cpp
|
2008-09-22 03:08:49 +02:00
|
|
|
)
|
|
|
|
|
2010-11-29 19:16:10 +01:00
|
|
|
target_link_libraries(tblgen LLVMSupport)
|
2008-09-22 03:08:49 +02:00
|
|
|
if( MINGW )
|
|
|
|
target_link_libraries(tblgen imagehlp psapi)
|
|
|
|
endif( MINGW )
|
2010-06-23 08:48:34 +02:00
|
|
|
if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
|
2009-05-22 22:55:15 +02:00
|
|
|
target_link_libraries(tblgen pthread)
|
|
|
|
endif()
|
2011-02-03 21:57:36 +01:00
|
|
|
|
|
|
|
install(TARGETS tblgen RUNTIME DESTINATION bin)
|