Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 1 | set(LLVM_TARGET_DEFINITIONS X86.td) |
| 2 | |
| 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) |
| 13 | add_public_tablegen_target(X86CommonTableGen) |
| 14 | |
Zvi Rackover | 76dbf26 | 2016-11-15 06:34:33 +0000 | [diff] [blame] | 15 | # Add GlobalISel files if the build option was enabled. |
| 16 | set(GLOBAL_ISEL_FILES |
| 17 | X86CallLowering.cpp |
| 18 | ) |
| 19 | |
| 20 | if(LLVM_BUILD_GLOBAL_ISEL) |
| 21 | set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES}) |
| 22 | else() |
| 23 | set(GLOBAL_ISEL_BUILD_FILES "") |
| 24 | set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES}) |
| 25 | endif() |
| 26 | |
| 27 | |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 28 | set(sources |
| 29 | X86AsmPrinter.cpp |
Michael Kuperstein | 13fbd45 | 2015-02-01 16:56:04 +0000 | [diff] [blame] | 30 | X86CallFrameOptimization.cpp |
Quentin Colombet | 494eb60 | 2015-05-22 18:10:47 +0000 | [diff] [blame] | 31 | X86ExpandPseudo.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 32 | X86FastISel.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 33 | X86FixupBWInsts.cpp |
| 34 | X86FixupLEAs.cpp |
Michael Kuperstein | 3e3652a | 2016-07-07 22:50:23 +0000 | [diff] [blame] | 35 | X86FixupSetCC.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 36 | X86FloatingPoint.cpp |
| 37 | X86FrameLowering.cpp |
| 38 | X86ISelDAGToDAG.cpp |
| 39 | X86ISelLowering.cpp |
David L Kreitzer | 01a057a | 2016-10-14 18:20:41 +0000 | [diff] [blame] | 40 | X86InterleavedAccess.cpp |
Vyacheslav Klochkov | 6daefcf | 2016-08-11 22:07:33 +0000 | [diff] [blame] | 41 | X86InstrFMA3Info.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 42 | X86InstrInfo.cpp |
| 43 | X86MCInstLower.cpp |
| 44 | X86MachineFunctionInfo.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 45 | X86OptimizeLEAs.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 46 | X86PadShortFunction.cpp |
| 47 | X86RegisterInfo.cpp |
| 48 | X86SelectionDAGInfo.cpp |
Craig Topper | 69653af | 2015-12-31 22:40:45 +0000 | [diff] [blame] | 49 | X86ShuffleDecodeConstantPool.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 50 | X86Subtarget.cpp |
| 51 | X86TargetMachine.cpp |
| 52 | X86TargetObjectFile.cpp |
| 53 | X86TargetTransformInfo.cpp |
| 54 | X86VZeroUpper.cpp |
Hans Wennborg | 8eb336c | 2016-05-18 16:10:17 +0000 | [diff] [blame] | 55 | X86WinAllocaExpander.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 56 | X86WinEHState.cpp |
Oren Ben Simhon | 489d6ef | 2016-11-17 09:59:40 +0000 | [diff] [blame] | 57 | X86CallingConv.cpp |
Zvi Rackover | 76dbf26 | 2016-11-15 06:34:33 +0000 | [diff] [blame] | 58 | ${GLOBAL_ISEL_BUILD_FILES} |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 59 | ) |
| 60 | |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 61 | add_llvm_target(X86CodeGen ${sources}) |
| 62 | |
| 63 | add_subdirectory(AsmParser) |
| 64 | add_subdirectory(Disassembler) |
| 65 | add_subdirectory(InstPrinter) |
| 66 | add_subdirectory(MCTargetDesc) |
| 67 | add_subdirectory(TargetInfo) |
| 68 | add_subdirectory(Utils) |