[ARM] MVE predicate store patterns
[llvm-complete.git] / utils / gn / secondary / llvm / lib / Target / X86 / BUILD.gn
blob3748189d61dddf53c78594979ef56e54bff2624d
1 import("//llvm/utils/TableGen/tablegen.gni")
3 declare_args() {
4   # Buggy, only use if you know what you're doing.
5   x86_gen_fold_tables = false
8 tablegen("X86GenCallingConv") {
9   visibility = [ ":LLVMX86CodeGen" ]
10   args = [ "-gen-callingconv" ]
11   td_file = "X86.td"
14 tablegen("X86GenDAGISel") {
15   visibility = [ ":LLVMX86CodeGen" ]
16   args = [ "-gen-dag-isel" ]
17   td_file = "X86.td"
20 tablegen("X86GenEVEX2VEXTables") {
21   visibility = [ ":LLVMX86CodeGen" ]
22   args = [ "-gen-x86-EVEX2VEX-tables" ]
23   td_file = "X86.td"
26 tablegen("X86GenFastISel") {
27   visibility = [ ":LLVMX86CodeGen" ]
28   args = [ "-gen-fast-isel" ]
29   td_file = "X86.td"
32 tablegen("X86GenGlobalISel") {
33   visibility = [ ":LLVMX86CodeGen" ]
34   args = [ "-gen-global-isel" ]
35   td_file = "X86.td"
38 tablegen("X86GenRegisterBank") {
39   visibility = [ ":LLVMX86CodeGen" ]
40   args = [ "-gen-register-bank" ]
41   td_file = "X86.td"
44 if (x86_gen_fold_tables) {
45   tablegen("X86GenFoldTables") {
46     visibility = [ ":LLVMX86CodeGen" ]
47     args = [ "-gen-x86-fold-tables" ]
48     td_file = "X86.td"
49   }
52 static_library("LLVMX86CodeGen") {
53   deps = [
54     ":X86GenCallingConv",
55     ":X86GenDAGISel",
56     ":X86GenEVEX2VEXTables",
57     ":X86GenFastISel",
58     ":X86GenGlobalISel",
59     ":X86GenRegisterBank",
60     "MCTargetDesc",
61     "TargetInfo",
62     "Utils",
63     "//llvm/include/llvm/Config:llvm-config",
64     "//llvm/lib/Analysis",
65     "//llvm/lib/CodeGen",
66     "//llvm/lib/CodeGen/AsmPrinter",
67     "//llvm/lib/CodeGen/GlobalISel",
68     "//llvm/lib/CodeGen/SelectionDAG",
69     "//llvm/lib/IR",
70     "//llvm/lib/MC",
71     "//llvm/lib/Support",
72     "//llvm/lib/Target",
73   ]
74   if (x86_gen_fold_tables) {
75     deps += [ ":X86GenFoldTables" ]
76   }
77   sources = [
78     "X86AsmPrinter.cpp",
79     "X86AvoidStoreForwardingBlocks.cpp",
80     "X86CallFrameOptimization.cpp",
81     "X86CallLowering.cpp",
82     "X86CallingConv.cpp",
83     "X86CmovConversion.cpp",
84     "X86CondBrFolding.cpp",
85     "X86DiscriminateMemOps.cpp",
86     "X86DomainReassignment.cpp",
87     "X86EvexToVex.cpp",
88     "X86ExpandPseudo.cpp",
89     "X86FastISel.cpp",
90     "X86FixupBWInsts.cpp",
91     "X86FixupLEAs.cpp",
92     "X86FixupSetCC.cpp",
93     "X86FlagsCopyLowering.cpp",
94     "X86FloatingPoint.cpp",
95     "X86FrameLowering.cpp",
96     "X86ISelDAGToDAG.cpp",
97     "X86ISelLowering.cpp",
98     "X86IndirectBranchTracking.cpp",
99     "X86InsertPrefetch.cpp",
100     "X86InstrFMA3Info.cpp",
101     "X86InstrFoldTables.cpp",
102     "X86InstrInfo.cpp",
103     "X86InstructionSelector.cpp",
104     "X86InterleavedAccess.cpp",
105     "X86LegalizerInfo.cpp",
106     "X86MCInstLower.cpp",
107     "X86MachineFunctionInfo.cpp",
108     "X86MacroFusion.cpp",
109     "X86OptimizeLEAs.cpp",
110     "X86PadShortFunction.cpp",
111     "X86RegisterBankInfo.cpp",
112     "X86RegisterInfo.cpp",
113     "X86RetpolineThunks.cpp",
114     "X86SelectionDAGInfo.cpp",
115     "X86ShuffleDecodeConstantPool.cpp",
116     "X86SpeculativeLoadHardening.cpp",
117     "X86Subtarget.cpp",
118     "X86TargetMachine.cpp",
119     "X86TargetObjectFile.cpp",
120     "X86TargetTransformInfo.cpp",
121     "X86VZeroUpper.cpp",
122     "X86WinAllocaExpander.cpp",
123     "X86WinEHState.cpp",
124   ]
127 # This is a bit different from most build files: Due to this group
128 # having the directory's name, "//llvm/lib/Target/X86" will refer to this
129 # target, which pulls in the code in this directory *and all subdirectories*.
130 # For most other directories, "//llvm/lib/Foo" only pulls in the code directly
131 # in "llvm/lib/Foo". The forwarding targets in //llvm/lib/Target expect this
132 # different behavior.
133 group("X86") {
134   deps = [
135     ":LLVMX86CodeGen",
136     "AsmParser",
137     "Disassembler",
138     "MCTargetDesc",
139     "TargetInfo",
140     "Utils",
141   ]