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) |
Ayman Musa | 850fc97 | 2017-03-07 08:11:19 +0000 | [diff] [blame^] | 13 | tablegen(LLVM X86GenEVEX2VEXTables.inc -gen-x86-EVEX2VEX-tables) |
Igor Breger | b4442f3 | 2017-02-10 07:05:56 +0000 | [diff] [blame] | 14 | if(LLVM_BUILD_GLOBAL_ISEL) |
| 15 | tablegen(LLVM X86GenRegisterBank.inc -gen-register-bank) |
Igor Breger | f7359d8 | 2017-02-22 12:25:09 +0000 | [diff] [blame] | 16 | tablegen(LLVM X86GenGlobalISel.inc -gen-global-isel) |
Igor Breger | b4442f3 | 2017-02-10 07:05:56 +0000 | [diff] [blame] | 17 | endif() |
| 18 | |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 19 | add_public_tablegen_target(X86CommonTableGen) |
| 20 | |
Zvi Rackover | 76dbf26 | 2016-11-15 06:34:33 +0000 | [diff] [blame] | 21 | # Add GlobalISel files if the build option was enabled. |
| 22 | set(GLOBAL_ISEL_FILES |
| 23 | X86CallLowering.cpp |
Igor Breger | b4442f3 | 2017-02-10 07:05:56 +0000 | [diff] [blame] | 24 | X86LegalizerInfo.cpp |
| 25 | X86RegisterBankInfo.cpp |
Igor Breger | f7359d8 | 2017-02-22 12:25:09 +0000 | [diff] [blame] | 26 | X86InstructionSelector.cpp |
Zvi Rackover | 76dbf26 | 2016-11-15 06:34:33 +0000 | [diff] [blame] | 27 | ) |
| 28 | |
| 29 | if(LLVM_BUILD_GLOBAL_ISEL) |
| 30 | set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES}) |
| 31 | else() |
| 32 | set(GLOBAL_ISEL_BUILD_FILES "") |
| 33 | set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES}) |
| 34 | endif() |
| 35 | |
| 36 | |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 37 | set(sources |
| 38 | X86AsmPrinter.cpp |
Michael Kuperstein | 13fbd45 | 2015-02-01 16:56:04 +0000 | [diff] [blame] | 39 | X86CallFrameOptimization.cpp |
Quentin Colombet | 494eb60 | 2015-05-22 18:10:47 +0000 | [diff] [blame] | 40 | X86ExpandPseudo.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 41 | X86FastISel.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 42 | X86FixupBWInsts.cpp |
| 43 | X86FixupLEAs.cpp |
Michael Kuperstein | 3e3652a | 2016-07-07 22:50:23 +0000 | [diff] [blame] | 44 | X86FixupSetCC.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 45 | X86FloatingPoint.cpp |
| 46 | X86FrameLowering.cpp |
| 47 | X86ISelDAGToDAG.cpp |
| 48 | X86ISelLowering.cpp |
David L Kreitzer | 01a057a | 2016-10-14 18:20:41 +0000 | [diff] [blame] | 49 | X86InterleavedAccess.cpp |
Vyacheslav Klochkov | 6daefcf | 2016-08-11 22:07:33 +0000 | [diff] [blame] | 50 | X86InstrFMA3Info.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 51 | X86InstrInfo.cpp |
Gadi Haber | 19c4fc5 | 2016-12-28 10:12:48 +0000 | [diff] [blame] | 52 | X86EvexToVex.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 53 | X86MCInstLower.cpp |
| 54 | X86MachineFunctionInfo.cpp |
Evandro Menezes | 94edf02 | 2017-02-01 02:54:34 +0000 | [diff] [blame] | 55 | X86MacroFusion.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 56 | X86OptimizeLEAs.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 57 | X86PadShortFunction.cpp |
| 58 | X86RegisterInfo.cpp |
| 59 | X86SelectionDAGInfo.cpp |
Craig Topper | 69653af | 2015-12-31 22:40:45 +0000 | [diff] [blame] | 60 | X86ShuffleDecodeConstantPool.cpp |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 61 | X86Subtarget.cpp |
| 62 | X86TargetMachine.cpp |
| 63 | X86TargetObjectFile.cpp |
| 64 | X86TargetTransformInfo.cpp |
| 65 | X86VZeroUpper.cpp |
Hans Wennborg | 8eb336c | 2016-05-18 16:10:17 +0000 | [diff] [blame] | 66 | X86WinAllocaExpander.cpp |
Michael Kuperstein | 85de98f | 2016-06-28 17:11:15 +0000 | [diff] [blame] | 67 | X86WinEHState.cpp |
Oren Ben Simhon | 489d6ef | 2016-11-17 09:59:40 +0000 | [diff] [blame] | 68 | X86CallingConv.cpp |
Zvi Rackover | 76dbf26 | 2016-11-15 06:34:33 +0000 | [diff] [blame] | 69 | ${GLOBAL_ISEL_BUILD_FILES} |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 70 | ) |
| 71 | |
Michael Kuperstein | e86aa9a | 2015-02-01 16:15:07 +0000 | [diff] [blame] | 72 | add_llvm_target(X86CodeGen ${sources}) |
| 73 | |
| 74 | add_subdirectory(AsmParser) |
| 75 | add_subdirectory(Disassembler) |
| 76 | add_subdirectory(InstPrinter) |
| 77 | add_subdirectory(MCTargetDesc) |
| 78 | add_subdirectory(TargetInfo) |
| 79 | add_subdirectory(Utils) |