2015-02-02 00:15:07 +08:00
|
|
|
set(LLVM_TARGET_DEFINITIONS X86.td)
|
|
|
|
|
|
|
|
tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
|
|
|
|
tablegen(LLVM X86GenDisassemblerTables.inc -gen-disassembler)
|
|
|
|
tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info)
|
|
|
|
tablegen(LLVM X86GenAsmWriter.inc -gen-asm-writer)
|
|
|
|
tablegen(LLVM X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
|
|
|
|
tablegen(LLVM X86GenAsmMatcher.inc -gen-asm-matcher)
|
|
|
|
tablegen(LLVM X86GenDAGISel.inc -gen-dag-isel)
|
|
|
|
tablegen(LLVM X86GenFastISel.inc -gen-fast-isel)
|
|
|
|
tablegen(LLVM X86GenCallingConv.inc -gen-callingconv)
|
|
|
|
tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
|
2017-03-07 16:11:19 +08:00
|
|
|
tablegen(LLVM X86GenEVEX2VEXTables.inc -gen-x86-EVEX2VEX-tables)
|
2017-02-10 15:05:56 +08:00
|
|
|
if(LLVM_BUILD_GLOBAL_ISEL)
|
|
|
|
tablegen(LLVM X86GenRegisterBank.inc -gen-register-bank)
|
2017-02-22 20:25:09 +08:00
|
|
|
tablegen(LLVM X86GenGlobalISel.inc -gen-global-isel)
|
2017-02-10 15:05:56 +08:00
|
|
|
endif()
|
|
|
|
|
2015-02-02 00:15:07 +08:00
|
|
|
add_public_tablegen_target(X86CommonTableGen)
|
|
|
|
|
2016-11-15 14:34:33 +08:00
|
|
|
# Add GlobalISel files if the build option was enabled.
|
|
|
|
set(GLOBAL_ISEL_FILES
|
|
|
|
X86CallLowering.cpp
|
2017-02-10 15:05:56 +08:00
|
|
|
X86LegalizerInfo.cpp
|
|
|
|
X86RegisterBankInfo.cpp
|
2017-02-22 20:25:09 +08:00
|
|
|
X86InstructionSelector.cpp
|
2016-11-15 14:34:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(LLVM_BUILD_GLOBAL_ISEL)
|
|
|
|
set(GLOBAL_ISEL_BUILD_FILES ${GLOBAL_ISEL_FILES})
|
|
|
|
else()
|
|
|
|
set(GLOBAL_ISEL_BUILD_FILES "")
|
|
|
|
set(LLVM_OPTIONAL_SOURCES LLVMGlobalISel ${GLOBAL_ISEL_FILES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
2015-02-02 00:15:07 +08:00
|
|
|
set(sources
|
|
|
|
X86AsmPrinter.cpp
|
2015-02-02 00:56:04 +08:00
|
|
|
X86CallFrameOptimization.cpp
|
2015-05-23 02:10:47 +08:00
|
|
|
X86ExpandPseudo.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86FastISel.cpp
|
2016-06-29 01:11:15 +08:00
|
|
|
X86FixupBWInsts.cpp
|
|
|
|
X86FixupLEAs.cpp
|
2016-07-08 06:50:23 +08:00
|
|
|
X86FixupSetCC.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86FloatingPoint.cpp
|
|
|
|
X86FrameLowering.cpp
|
|
|
|
X86ISelDAGToDAG.cpp
|
|
|
|
X86ISelLowering.cpp
|
2016-10-15 02:20:41 +08:00
|
|
|
X86InterleavedAccess.cpp
|
2016-08-12 06:07:33 +08:00
|
|
|
X86InstrFMA3Info.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86InstrInfo.cpp
|
2016-12-28 18:12:48 +08:00
|
|
|
X86EvexToVex.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86MCInstLower.cpp
|
|
|
|
X86MachineFunctionInfo.cpp
|
2017-02-01 10:54:34 +08:00
|
|
|
X86MacroFusion.cpp
|
2016-06-29 01:11:15 +08:00
|
|
|
X86OptimizeLEAs.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86PadShortFunction.cpp
|
|
|
|
X86RegisterInfo.cpp
|
|
|
|
X86SelectionDAGInfo.cpp
|
2016-01-01 06:40:45 +08:00
|
|
|
X86ShuffleDecodeConstantPool.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86Subtarget.cpp
|
|
|
|
X86TargetMachine.cpp
|
|
|
|
X86TargetObjectFile.cpp
|
|
|
|
X86TargetTransformInfo.cpp
|
|
|
|
X86VZeroUpper.cpp
|
2016-05-19 00:10:17 +08:00
|
|
|
X86WinAllocaExpander.cpp
|
2016-06-29 01:11:15 +08:00
|
|
|
X86WinEHState.cpp
|
2016-11-17 17:59:40 +08:00
|
|
|
X86CallingConv.cpp
|
2016-11-15 14:34:33 +08:00
|
|
|
${GLOBAL_ISEL_BUILD_FILES}
|
2015-02-02 00:15:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_llvm_target(X86CodeGen ${sources})
|
|
|
|
|
|
|
|
add_subdirectory(AsmParser)
|
|
|
|
add_subdirectory(Disassembler)
|
|
|
|
add_subdirectory(InstPrinter)
|
|
|
|
add_subdirectory(MCTargetDesc)
|
|
|
|
add_subdirectory(TargetInfo)
|
|
|
|
add_subdirectory(Utils)
|