Oscar Fuentes | 889c1e7 | 2010-10-17 02:26:16 +0000 | [diff] [blame] | 1 | set(LLVM_REQUIRES_EH 1) |
| 2 | set(LLVM_REQUIRES_RTTI 1) |
| 3 | |
Oscar Fuentes | f4202ba | 2011-02-03 20:57:36 +0000 | [diff] [blame] | 4 | set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR}) |
| 5 | |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 6 | add_executable(tblgen |
Chandler Carruth | 89c787b | 2010-04-03 04:36:43 +0000 | [diff] [blame] | 7 | ARMDecoderEmitter.cpp |
Daniel Dunbar | d66cc5c | 2009-07-11 21:53:14 +0000 | [diff] [blame] | 8 | AsmMatcherEmitter.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 9 | AsmWriterEmitter.cpp |
Sean Callanan | a363413 | 2010-02-09 22:29:16 +0000 | [diff] [blame] | 10 | AsmWriterInst.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 11 | CallingConvEmitter.cpp |
Alexis Hunt | f4cdc84 | 2010-05-05 04:13:08 +0000 | [diff] [blame] | 12 | ClangASTNodesEmitter.cpp |
Alexis Hunt | 0f184c0 | 2010-06-17 00:10:16 +0000 | [diff] [blame] | 13 | ClangAttrEmitter.cpp |
Douglas Gregor | 9f20b83 | 2009-03-16 17:04:14 +0000 | [diff] [blame] | 14 | ClangDiagnosticsEmitter.cpp |
Argyrios Kyrtzidis | 4859696 | 2011-02-14 17:58:52 +0000 | [diff] [blame^] | 15 | ClangSACheckersEmitter.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 16 | CodeEmitterGen.cpp |
| 17 | CodeGenDAGPatterns.cpp |
| 18 | CodeGenInstruction.cpp |
| 19 | CodeGenTarget.cpp |
| 20 | DAGISelEmitter.cpp |
Chris Lattner | b02cdaa | 2010-02-15 08:04:42 +0000 | [diff] [blame] | 21 | DAGISelMatcherEmitter.cpp |
| 22 | DAGISelMatcherGen.cpp |
Chris Lattner | e732743 | 2010-02-24 07:06:50 +0000 | [diff] [blame] | 23 | DAGISelMatcherOpt.cpp |
Chris Lattner | b02cdaa | 2010-02-15 08:04:42 +0000 | [diff] [blame] | 24 | DAGISelMatcher.cpp |
Daniel Dunbar | e502433 | 2009-11-25 02:13:23 +0000 | [diff] [blame] | 25 | DisassemblerEmitter.cpp |
Ted Kremenek | ffe9c20 | 2010-01-29 01:10:25 +0000 | [diff] [blame] | 26 | EDEmitter.cpp |
Douglas Gregor | 9f20b83 | 2009-03-16 17:04:14 +0000 | [diff] [blame] | 27 | FastISelEmitter.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 28 | InstrEnumEmitter.cpp |
| 29 | InstrInfoEmitter.cpp |
| 30 | IntrinsicEmitter.cpp |
| 31 | LLVMCConfigurationEmitter.cpp |
Nate Begeman | dd59046 | 2010-05-28 01:08:32 +0000 | [diff] [blame] | 32 | NeonEmitter.cpp |
Douglas Gregor | 361a376 | 2009-11-18 23:20:09 +0000 | [diff] [blame] | 33 | OptParserEmitter.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 34 | Record.cpp |
| 35 | RegisterInfoEmitter.cpp |
Chris Lattner | 69b5913 | 2010-09-06 02:58:25 +0000 | [diff] [blame] | 36 | StringMatcher.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 37 | SubtargetEmitter.cpp |
| 38 | TGLexer.cpp |
| 39 | TGParser.cpp |
Dan Gohman | d7546ab | 2008-11-03 17:56:27 +0000 | [diff] [blame] | 40 | TGValueTypes.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 41 | TableGen.cpp |
| 42 | TableGenBackend.cpp |
Sean Callanan | 04cc307 | 2009-12-19 02:59:52 +0000 | [diff] [blame] | 43 | X86DisassemblerTables.cpp |
| 44 | X86RecognizableInstr.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 45 | ) |
| 46 | |
Michael J. Spencer | 447762d | 2010-11-29 18:16:10 +0000 | [diff] [blame] | 47 | target_link_libraries(tblgen LLVMSupport) |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 48 | if( MINGW ) |
| 49 | target_link_libraries(tblgen imagehlp psapi) |
| 50 | endif( MINGW ) |
Nick Lewycky | 99d71d1 | 2010-06-23 06:48:34 +0000 | [diff] [blame] | 51 | if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS ) |
Oscar Fuentes | 770c8e7 | 2009-05-22 20:55:15 +0000 | [diff] [blame] | 52 | target_link_libraries(tblgen pthread) |
| 53 | endif() |
Oscar Fuentes | f4202ba | 2011-02-03 20:57:36 +0000 | [diff] [blame] | 54 | |
| 55 | install(TARGETS tblgen RUNTIME DESTINATION bin) |