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