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-08-04 05:52:25 +08:00
|
|
|
tablegen(LLVM X86GenRegisterBank.inc -gen-register-bank)
|
|
|
|
tablegen(LLVM X86GenGlobalISel.inc -gen-global-isel)
|
2017-02-10 15:05:56 +08:00
|
|
|
|
2018-01-08 05:03:43 +08:00
|
|
|
if (X86_GEN_FOLD_TABLES)
|
|
|
|
tablegen(LLVM X86GenFoldTables.inc -gen-x86-fold-tables)
|
|
|
|
endif()
|
2017-10-08 17:20:32 +08:00
|
|
|
|
2015-02-02 00:15:07 +08:00
|
|
|
add_public_tablegen_target(X86CommonTableGen)
|
|
|
|
|
|
|
|
set(sources
|
|
|
|
X86AsmPrinter.cpp
|
2015-02-02 00:56:04 +08:00
|
|
|
X86CallFrameOptimization.cpp
|
2018-01-09 16:51:18 +08:00
|
|
|
X86CallingConv.cpp
|
2017-08-04 05:52:25 +08:00
|
|
|
X86CallLowering.cpp
|
2017-07-17 01:39:56 +08:00
|
|
|
X86CmovConversion.cpp
|
2017-10-22 19:43:08 +08:00
|
|
|
X86DomainReassignment.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
|
2017-08-04 05:52:25 +08:00
|
|
|
X86InstructionSelector.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
X86ISelDAGToDAG.cpp
|
|
|
|
X86ISelLowering.cpp
|
2018-01-09 16:51:18 +08:00
|
|
|
X86IndirectBranchTracking.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
|
2017-08-04 05:52:25 +08:00
|
|
|
X86LegalizerInfo.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
|
2017-08-04 05:52:25 +08:00
|
|
|
X86RegisterBankInfo.cpp
|
2015-02-02 00:15:07 +08:00
|
|
|
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
|
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)
|