8f4ff1701ed51267c242ae9b68e2540c11b2f7f8
[oota-llvm.git] / lib / Target / X86 / CMakeLists.txt
1 set(LLVM_TARGET_DEFINITIONS X86.td)
2
3 tablegen(X86GenRegisterInfo.h.inc -gen-register-desc-header)
4 tablegen(X86GenRegisterNames.inc -gen-register-enums)
5 tablegen(X86GenRegisterInfo.inc -gen-register-desc)
6 tablegen(X86GenDisassemblerTables.inc -gen-disassembler)
7 tablegen(X86GenInstrNames.inc -gen-instr-enums)
8 tablegen(X86GenInstrInfo.inc -gen-instr-desc)
9 tablegen(X86GenAsmWriter.inc -gen-asm-writer)
10 tablegen(X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
11 tablegen(X86GenAsmMatcher.inc -gen-asm-matcher)
12 tablegen(X86GenDAGISel.inc -gen-dag-isel)
13 tablegen(X86GenFastISel.inc -gen-fast-isel)
14 tablegen(X86GenCallingConv.inc -gen-callingconv)
15 tablegen(X86GenSubtarget.inc -gen-subtarget)
16
17 set(sources
18   X86CodeEmitter.cpp
19   X86COFFMachineModuleInfo.cpp
20   X86ELFWriterInfo.cpp
21   X86FloatingPoint.cpp
22   X86FloatingPointRegKill.cpp
23   X86ISelDAGToDAG.cpp
24   X86ISelLowering.cpp
25   X86InstrInfo.cpp
26   X86JITInfo.cpp
27   X86MCAsmInfo.cpp
28   X86MCCodeEmitter.cpp 
29   X86RegisterInfo.cpp
30   X86Subtarget.cpp
31   X86TargetMachine.cpp
32   X86TargetObjectFile.cpp
33   X86FastISel.cpp
34   )
35
36 if( CMAKE_CL_64 )
37   enable_language(ASM_MASM)
38   set(sources ${sources} X86CompilationCallback_Win64.asm)
39 endif()
40
41 add_llvm_target(X86CodeGen ${sources})
42
43 target_link_libraries (LLVMX86CodeGen LLVMSelectionDAG)