blob: 645ca49f2a1983e7ff0f1ec913928d7331f67786 [file] [log] [blame]
Michael Kupersteine86aa9a2015-02-01 16:15:07 +00001set(LLVM_TARGET_DEFINITIONS X86.td)
2
Nico Weber1cbd0962018-04-04 12:37:44 +00003tablegen(LLVM X86GenAsmMatcher.inc -gen-asm-matcher)
Michael Kupersteine86aa9a2015-02-01 16:15:07 +00004tablegen(LLVM X86GenAsmWriter.inc -gen-asm-writer)
5tablegen(LLVM X86GenAsmWriter1.inc -gen-asm-writer -asmwriternum=1)
Michael Kupersteine86aa9a2015-02-01 16:15:07 +00006tablegen(LLVM X86GenCallingConv.inc -gen-callingconv)
Nico Weber1cbd0962018-04-04 12:37:44 +00007tablegen(LLVM X86GenDAGISel.inc -gen-dag-isel)
8tablegen(LLVM X86GenDisassemblerTables.inc -gen-disassembler)
Ayman Musa850fc972017-03-07 08:11:19 +00009tablegen(LLVM X86GenEVEX2VEXTables.inc -gen-x86-EVEX2VEX-tables)
Simon Pilgrimf2b9d102018-12-31 14:51:53 +000010tablegen(LLVM X86GenExegesis.inc -gen-exegesis)
Nico Weber1cbd0962018-04-04 12:37:44 +000011tablegen(LLVM X86GenFastISel.inc -gen-fast-isel)
Quentin Colombet250e0502017-08-03 21:52:25 +000012tablegen(LLVM X86GenGlobalISel.inc -gen-global-isel)
Nico Weber1cbd0962018-04-04 12:37:44 +000013tablegen(LLVM X86GenInstrInfo.inc -gen-instr-info)
14tablegen(LLVM X86GenRegisterBank.inc -gen-register-bank)
15tablegen(LLVM X86GenRegisterInfo.inc -gen-register-info)
16tablegen(LLVM X86GenSubtargetInfo.inc -gen-subtarget)
Igor Bregerb4442f32017-02-10 07:05:56 +000017
Craig Toppere9f44e12018-01-07 21:03:43 +000018if (X86_GEN_FOLD_TABLES)
19 tablegen(LLVM X86GenFoldTables.inc -gen-x86-fold-tables)
20endif()
Ayman Musa993339b2017-10-08 09:20:32 +000021
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000022add_public_tablegen_target(X86CommonTableGen)
23
24set(sources
Vlad Tsyrkleviche3446012018-04-04 01:21:16 +000025 ShadowCallStack.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000026 X86AsmPrinter.cpp
Michael Kuperstein13fbd452015-02-01 16:56:04 +000027 X86CallFrameOptimization.cpp
Oren Ben Simhon1c6308e2018-01-09 08:51:18 +000028 X86CallingConv.cpp
Quentin Colombet250e0502017-08-03 21:52:25 +000029 X86CallLowering.cpp
Amjad Aboud4563c062017-07-16 17:39:56 +000030 X86CmovConversion.cpp
Rong Xu3d2efdf2018-10-09 22:03:40 +000031 X86CondBrFolding.cpp
Guy Blank92d5ce32017-10-22 11:43:08 +000032 X86DomainReassignment.cpp
Mircea Trofinf1a49e82018-11-30 01:01:52 +000033 X86DiscriminateMemOps.cpp
Quentin Colombet494eb602015-05-22 18:10:47 +000034 X86ExpandPseudo.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000035 X86FastISel.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000036 X86FixupBWInsts.cpp
37 X86FixupLEAs.cpp
Lama Saba92746832018-04-02 13:48:28 +000038 X86AvoidStoreForwardingBlocks.cpp
Michael Kuperstein3e3652a2016-07-07 22:50:23 +000039 X86FixupSetCC.cpp
Chandler Carruth19618fc2018-04-10 01:41:17 +000040 X86FlagsCopyLowering.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000041 X86FloatingPoint.cpp
42 X86FrameLowering.cpp
Quentin Colombet250e0502017-08-03 21:52:25 +000043 X86InstructionSelector.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000044 X86ISelDAGToDAG.cpp
45 X86ISelLowering.cpp
Oren Ben Simhon1c6308e2018-01-09 08:51:18 +000046 X86IndirectBranchTracking.cpp
David L Kreitzer01a057a2016-10-14 18:20:41 +000047 X86InterleavedAccess.cpp
Mircea Trofinf1a49e82018-11-30 01:01:52 +000048 X86InsertPrefetch.cpp
Vyacheslav Klochkov6daefcf2016-08-11 22:07:33 +000049 X86InstrFMA3Info.cpp
Craig Topper4e782132018-07-01 05:47:49 +000050 X86InstrFoldTables.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000051 X86InstrInfo.cpp
Gadi Haber19c4fc52016-12-28 10:12:48 +000052 X86EvexToVex.cpp
Quentin Colombet250e0502017-08-03 21:52:25 +000053 X86LegalizerInfo.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000054 X86MCInstLower.cpp
55 X86MachineFunctionInfo.cpp
Evandro Menezes94edf022017-02-01 02:54:34 +000056 X86MacroFusion.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000057 X86OptimizeLEAs.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000058 X86PadShortFunction.cpp
Quentin Colombet250e0502017-08-03 21:52:25 +000059 X86RegisterBankInfo.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000060 X86RegisterInfo.cpp
Chandler Carruthc58f2162018-01-22 22:05:25 +000061 X86RetpolineThunks.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000062 X86SelectionDAGInfo.cpp
Craig Topper69653af2015-12-31 22:40:45 +000063 X86ShuffleDecodeConstantPool.cpp
Chandler Carruth90358e12018-07-13 11:13:58 +000064 X86SpeculativeLoadHardening.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000065 X86Subtarget.cpp
66 X86TargetMachine.cpp
67 X86TargetObjectFile.cpp
68 X86TargetTransformInfo.cpp
69 X86VZeroUpper.cpp
Hans Wennborg8eb336c2016-05-18 16:10:17 +000070 X86WinAllocaExpander.cpp
Michael Kuperstein85de98f2016-06-28 17:11:15 +000071 X86WinEHState.cpp
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000072 )
73
Michael Kupersteine86aa9a2015-02-01 16:15:07 +000074add_llvm_target(X86CodeGen ${sources})
75
76add_subdirectory(AsmParser)
77add_subdirectory(Disassembler)
78add_subdirectory(InstPrinter)
79add_subdirectory(MCTargetDesc)
80add_subdirectory(TargetInfo)
81add_subdirectory(Utils)