Oscar Fuentes | cdc9549 | 2008-09-26 04:40:32 +0000 | [diff] [blame] | 1 | set(LLVM_TARGET_DEFINITIONS X86.td) |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 2 | |
Daniel Dunbar | 4a9c642 | 2011-11-04 19:04:23 +0000 | [diff] [blame] | 3 | tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info) |
| 4 | tablegen(LLVM X86GenDisassemblerTables.inc -gen-disassembler) |
| 5 | tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info) |
| 6 | tablegen(LLVM X86GenAsmWriter.inc -gen-asm-writer) |
| 7 | tablegen(LLVM X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1) |
| 8 | tablegen(LLVM X86GenAsmMatcher.inc -gen-asm-matcher) |
| 9 | tablegen(LLVM X86GenDAGISel.inc -gen-dag-isel) |
| 10 | tablegen(LLVM X86GenFastISel.inc -gen-fast-isel) |
| 11 | tablegen(LLVM X86GenCallingConv.inc -gen-callingconv) |
| 12 | tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget) |
Chandler Carruth | 97c069c | 2011-07-26 00:09:08 +0000 | [diff] [blame] | 13 | add_public_tablegen_target(X86CommonTableGen) |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 14 | |
Oscar Fuentes | bcbae01 | 2009-08-12 15:54:28 +0000 | [diff] [blame] | 15 | set(sources |
Daniel Dunbar | 0aff803 | 2010-07-20 00:08:13 +0000 | [diff] [blame] | 16 | X86AsmPrinter.cpp |
Chris Lattner | 17ec6b1 | 2009-09-20 06:45:52 +0000 | [diff] [blame] | 17 | X86COFFMachineModuleInfo.cpp |
Daniel Dunbar | 0aff803 | 2010-07-20 00:08:13 +0000 | [diff] [blame] | 18 | X86CodeEmitter.cpp |
Daniel Dunbar | 0aff803 | 2010-07-20 00:08:13 +0000 | [diff] [blame] | 19 | X86FastISel.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 20 | X86FloatingPoint.cpp |
Anton Korobeynikov | 441ae5b | 2011-01-10 12:39:23 +0000 | [diff] [blame] | 21 | X86FrameLowering.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 22 | X86ISelDAGToDAG.cpp |
| 23 | X86ISelLowering.cpp |
| 24 | X86InstrInfo.cpp |
| 25 | X86JITInfo.cpp |
Daniel Dunbar | 0aff803 | 2010-07-20 00:08:13 +0000 | [diff] [blame] | 26 | X86MCInstLower.cpp |
Chandler Carruth | e805b16 | 2011-12-20 08:42:11 +0000 | [diff] [blame] | 27 | X86MachineFunctionInfo.cpp |
Preston Gurd | a01daac | 2013-01-08 18:27:24 +0000 | [diff] [blame] | 28 | X86PadShortFunction.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 29 | X86RegisterInfo.cpp |
Daniel Dunbar | 0aff803 | 2010-07-20 00:08:13 +0000 | [diff] [blame] | 30 | X86SelectionDAGInfo.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 31 | X86Subtarget.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 32 | X86TargetMachine.cpp |
Shantonu Sen | b15840a | 2009-09-16 04:44:00 +0000 | [diff] [blame] | 33 | X86TargetObjectFile.cpp |
Chandler Carruth | 664e354 | 2013-01-07 01:37:14 +0000 | [diff] [blame] | 34 | X86TargetTransformInfo.cpp |
Bruno Cardoso Lopes | 2a3ffb5 | 2011-08-23 01:14:17 +0000 | [diff] [blame] | 35 | X86VZeroUpper.cpp |
Oscar Fuentes | a229b3c | 2008-09-22 01:08:49 +0000 | [diff] [blame] | 36 | ) |
Douglas Gregor | 6141511 | 2009-07-02 18:53:52 +0000 | [diff] [blame] | 37 | |
Oscar Fuentes | 6b5cb8a | 2009-08-14 19:56:04 +0000 | [diff] [blame] | 38 | if( CMAKE_CL_64 ) |
Oscar Fuentes | 68b7bb9 | 2011-01-02 19:32:31 +0000 | [diff] [blame] | 39 | # A workaround for a bug in cmake 2.8.3. See PR 8885. |
| 40 | if( CMAKE_VERSION STREQUAL "2.8.3" ) |
| 41 | include(CMakeDetermineCompilerId) |
| 42 | endif() |
| 43 | # end of workaround. |
Oscar Fuentes | bcbae01 | 2009-08-12 15:54:28 +0000 | [diff] [blame] | 44 | enable_language(ASM_MASM) |
Oscar Fuentes | 82135e5 | 2010-05-13 19:34:06 +0000 | [diff] [blame] | 45 | ADD_CUSTOM_COMMAND( |
| 46 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj |
Oscar Fuentes | 4e61b09 | 2010-11-16 22:07:47 +0000 | [diff] [blame] | 47 | MAIN_DEPENDENCY X86CompilationCallback_Win64.asm |
Oscar Fuentes | 82135e5 | 2010-05-13 19:34:06 +0000 | [diff] [blame] | 48 | COMMAND ${CMAKE_ASM_MASM_COMPILER} /Fo ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj /c ${CMAKE_CURRENT_SOURCE_DIR}/X86CompilationCallback_Win64.asm |
Oscar Fuentes | 82135e5 | 2010-05-13 19:34:06 +0000 | [diff] [blame] | 49 | ) |
Oscar Fuentes | a8eb604 | 2010-12-31 20:15:37 +0000 | [diff] [blame] | 50 | set(sources ${sources} ${CMAKE_CURRENT_BINARY_DIR}/X86CompilationCallback_Win64.obj) |
Oscar Fuentes | bcbae01 | 2009-08-12 15:54:28 +0000 | [diff] [blame] | 51 | endif() |
| 52 | |
| 53 | add_llvm_target(X86CodeGen ${sources}) |
Michael J. Spencer | 93c9b2e | 2010-09-13 23:59:48 +0000 | [diff] [blame] | 54 | |
NAKAMURA Takumi | 704de07 | 2012-06-24 13:32:01 +0000 | [diff] [blame] | 55 | add_dependencies(LLVMX86CodeGen intrinsics_gen) |
| 56 | |
Oscar Fuentes | ba1186c | 2011-02-20 02:55:27 +0000 | [diff] [blame] | 57 | add_subdirectory(AsmParser) |
| 58 | add_subdirectory(Disassembler) |
| 59 | add_subdirectory(InstPrinter) |
Evan Cheng | 3b960ac | 2011-06-24 23:53:19 +0000 | [diff] [blame] | 60 | add_subdirectory(MCTargetDesc) |
Oscar Fuentes | ba1186c | 2011-02-20 02:55:27 +0000 | [diff] [blame] | 61 | add_subdirectory(TargetInfo) |
| 62 | add_subdirectory(Utils) |