blob: 1a2ec61a3a4af6124575d04c1a86518e219ed71d [file] [log] [blame]
Michael Kupersteine86aa9a2015-02-01 16:15:07 +00001set(LLVM_TARGET_DEFINITIONS X86.td)
2
3tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
4tablegen(LLVM X86GenDisassemblerTables.inc -gen-disassembler)
5tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info)
6tablegen(LLVM X86GenAsmWriter.inc -gen-asm-writer)
7tablegen(LLVM X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
8tablegen(LLVM X86GenAsmMatcher.inc -gen-asm-matcher)
9tablegen(LLVM X86GenDAGISel.inc -gen-dag-isel)
10tablegen(LLVM X86GenFastISel.inc -gen-fast-isel)
11tablegen(LLVM X86GenCallingConv.inc -gen-callingconv)
12tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
13add_public_tablegen_target(X86CommonTableGen)
14
Zvi Rackover76dbf262016-11-15 06:34:33 +000015# Add GlobalISel files if the build option was enabled.
16set(GLOBAL_ISEL_FILES
17 X86CallLowering.cpp
18 )
19
20if(LLVM_BUILD_GLOBAL_ISEL)
21 set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES})
22else()
23 set(GLOBAL_ISEL_BUILD_FILES "")
24 set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES})
25endif()
26
27
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000028set(sources
29 X86AsmPrinter.cpp
Michael Kuperstein13fbd452015-02-01 16:56:04 +000030 X86CallFrameOptimization.cpp
Quentin Colombet494eb602015-05-22 18:10:47 +000031 X86ExpandPseudo.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000032 X86FastISel.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000033 X86FixupBWInsts.cpp
34 X86FixupLEAs.cpp
Michael Kuperstein3e3652a2016-07-07 22:50:23 +000035 X86FixupSetCC.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000036 X86FloatingPoint.cpp
37 X86FrameLowering.cpp
38 X86ISelDAGToDAG.cpp
39 X86ISelLowering.cpp
David L Kreitzer01a057a2016-10-14 18:20:41 +000040 X86InterleavedAccess.cpp
Vyacheslav Klochkov6daefcf2016-08-11 22:07:33 +000041 X86InstrFMA3Info.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000042 X86InstrInfo.cpp
43 X86MCInstLower.cpp
44 X86MachineFunctionInfo.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000045 X86OptimizeLEAs.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000046 X86PadShortFunction.cpp
47 X86RegisterInfo.cpp
48 X86SelectionDAGInfo.cpp
Craig Topper69653af2015-12-31 22:40:45 +000049 X86ShuffleDecodeConstantPool.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000050 X86Subtarget.cpp
51 X86TargetMachine.cpp
52 X86TargetObjectFile.cpp
53 X86TargetTransformInfo.cpp
54 X86VZeroUpper.cpp
Hans Wennborg8eb336c2016-05-18 16:10:17 +000055 X86WinAllocaExpander.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000056 X86WinEHState.cpp
Oren Ben Simhon489d6ef2016-11-17 09:59:40 +000057 X86CallingConv.cpp
Zvi Rackover76dbf262016-11-15 06:34:33 +000058 ${GLOBAL_ISEL_BUILD_FILES}
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000059 )
60
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000061add_llvm_target(X86CodeGen ${sources})
62
63add_subdirectory(AsmParser)
64add_subdirectory(Disassembler)
65add_subdirectory(InstPrinter)
66add_subdirectory(MCTargetDesc)
67add_subdirectory(TargetInfo)
68add_subdirectory(Utils)