]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - lib/Target/X86/CMakeLists.txt
Vendor import of llvm trunk r290819:
[FreeBSD/FreeBSD.git] / lib / Target / X86 / CMakeLists.txt
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
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
28 set(sources
29   X86AsmPrinter.cpp
30   X86CallFrameOptimization.cpp
31   X86ExpandPseudo.cpp
32   X86FastISel.cpp
33   X86FixupBWInsts.cpp
34   X86FixupLEAs.cpp
35   X86FixupSetCC.cpp
36   X86FloatingPoint.cpp
37   X86FrameLowering.cpp
38   X86ISelDAGToDAG.cpp
39   X86ISelLowering.cpp
40   X86InterleavedAccess.cpp
41   X86InstrFMA3Info.cpp
42   X86InstrInfo.cpp
43   X86EvexToVex.cpp
44   X86MCInstLower.cpp
45   X86MachineFunctionInfo.cpp
46   X86OptimizeLEAs.cpp
47   X86PadShortFunction.cpp
48   X86RegisterInfo.cpp
49   X86SelectionDAGInfo.cpp
50   X86ShuffleDecodeConstantPool.cpp
51   X86Subtarget.cpp
52   X86TargetMachine.cpp
53   X86TargetObjectFile.cpp
54   X86TargetTransformInfo.cpp
55   X86VZeroUpper.cpp
56   X86WinAllocaExpander.cpp
57   X86WinEHState.cpp
58   X86CallingConv.cpp
59   ${GLOBAL_ISEL_BUILD_FILES}
60   )
61
62 add_llvm_target(X86CodeGen ${sources})
63
64 add_subdirectory(AsmParser)
65 add_subdirectory(Disassembler)
66 add_subdirectory(InstPrinter)
67 add_subdirectory(MCTargetDesc)
68 add_subdirectory(TargetInfo)
69 add_subdirectory(Utils)