Compute lists of sub-regs, super-regs, and overlapping regs.
[oota-llvm.git] / utils / TableGen / CMakeLists.txt
1 set(LLVM_REQUIRES_EH 1)
2 set(LLVM_REQUIRES_RTTI 1)
3
4 set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${LLVM_TOOLS_BINARY_DIR})
5
6 add_llvm_utility(tblgen
7   ARMDecoderEmitter.cpp
8   AsmMatcherEmitter.cpp
9   AsmWriterEmitter.cpp
10   AsmWriterInst.cpp
11   CallingConvEmitter.cpp
12   ClangASTNodesEmitter.cpp
13   ClangAttrEmitter.cpp
14   ClangDiagnosticsEmitter.cpp
15   ClangSACheckersEmitter.cpp
16   CodeEmitterGen.cpp
17   CodeGenDAGPatterns.cpp
18   CodeGenInstruction.cpp
19   CodeGenRegisters.cpp
20   CodeGenTarget.cpp
21   DAGISelEmitter.cpp
22   DAGISelMatcherEmitter.cpp
23   DAGISelMatcherGen.cpp
24   DAGISelMatcherOpt.cpp
25   DAGISelMatcher.cpp
26   DisassemblerEmitter.cpp
27   EDEmitter.cpp
28   FastISelEmitter.cpp
29   FixedLenDecoderEmitter.cpp
30   InstrEnumEmitter.cpp
31   InstrInfoEmitter.cpp
32   IntrinsicEmitter.cpp
33   LLVMCConfigurationEmitter.cpp
34   NeonEmitter.cpp
35   OptParserEmitter.cpp
36   Record.cpp
37   RegisterInfoEmitter.cpp
38   SetTheory.cpp
39   StringMatcher.cpp
40   SubtargetEmitter.cpp
41   TGLexer.cpp
42   TGParser.cpp
43   TGValueTypes.cpp
44   TableGen.cpp
45   TableGenBackend.cpp
46   X86DisassemblerTables.cpp
47   X86RecognizableInstr.cpp
48   )
49
50 target_link_libraries(tblgen LLVMSupport)
51 if( MINGW )
52   target_link_libraries(tblgen imagehlp psapi)
53 endif( MINGW )
54 if( LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD AND NOT BEOS )
55   target_link_libraries(tblgen pthread)
56 endif()
57
58 install(TARGETS tblgen RUNTIME DESTINATION bin)