blob: d7992180e56370761fe934913b21d393b493f2e0 [file] [log] [blame]
Matt Arsenault382d9452016-01-26 04:49:22 +00001//===-- AMDGPU.td - AMDGPU Tablegen files --------*- tablegen -*-===//
Tom Stellard75aadc22012-12-11 21:25:42 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
Matt Arsenault382d9452016-01-26 04:49:22 +00008//===------------------------------------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +00009
Tom Stellardbc5b5372014-06-13 16:38:59 +000010include "llvm/Target/Target.td"
Tom Stellard75aadc22012-12-11 21:25:42 +000011
Matt Arsenault382d9452016-01-26 04:49:22 +000012//===------------------------------------------------------------===//
13// Subtarget Features (device properties)
14//===------------------------------------------------------------===//
Tom Stellard783893a2013-11-18 19:43:33 +000015
Matt Arsenaultf5e29972014-06-20 06:50:05 +000016def FeatureFP64 : SubtargetFeature<"fp64",
Matt Arsenault382d9452016-01-26 04:49:22 +000017 "FP64",
18 "true",
19 "Enable double precision operations"
20>;
Matt Arsenaultf171cf22014-07-14 23:40:49 +000021
Jan Vesely39aeab42017-12-04 23:07:28 +000022def FeatureFMA : SubtargetFeature<"fmaf",
23 "FMA",
24 "true",
25 "Enable single precision FMA (not as fast as mul+add, but fused)"
26>;
27
Matt Arsenaultb035a572015-01-29 19:34:25 +000028def FeatureFastFMAF32 : SubtargetFeature<"fast-fmaf",
Matt Arsenault382d9452016-01-26 04:49:22 +000029 "FastFMAF32",
30 "true",
31 "Assuming f32 fma is at least as fast as mul + add"
32>;
Matt Arsenaultb035a572015-01-29 19:34:25 +000033
Dmitry Preobrazhenskye3271ae2018-02-05 12:45:43 +000034def FeatureMIMG_R128 : SubtargetFeature<"mimg-r128",
35 "MIMG_R128",
36 "true",
37 "Support 128-bit texture resources"
38>;
39
Matt Arsenaulte83690c2016-01-18 21:13:50 +000040def HalfRate64Ops : SubtargetFeature<"half-rate-64-ops",
Matt Arsenault382d9452016-01-26 04:49:22 +000041 "HalfRate64Ops",
42 "true",
43 "Most fp64 instructions are half rate instead of quarter"
44>;
Matt Arsenaultf171cf22014-07-14 23:40:49 +000045
Tom Stellard99792772013-06-07 20:28:49 +000046def FeatureR600ALUInst : SubtargetFeature<"R600ALUInst",
Matt Arsenault382d9452016-01-26 04:49:22 +000047 "R600ALUInst",
48 "false",
49 "Older version of ALU instructions encoding"
50>;
Tom Stellard99792772013-06-07 20:28:49 +000051
52def FeatureVertexCache : SubtargetFeature<"HasVertexCache",
Matt Arsenault382d9452016-01-26 04:49:22 +000053 "HasVertexCache",
54 "true",
55 "Specify use of dedicated vertex cache"
56>;
Tom Stellard99792772013-06-07 20:28:49 +000057
Tom Stellarda6c6e1b2013-06-07 20:37:48 +000058def FeatureCaymanISA : SubtargetFeature<"caymanISA",
Matt Arsenault382d9452016-01-26 04:49:22 +000059 "CaymanISA",
60 "true",
61 "Use Cayman ISA"
62>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +000063
Tom Stellard348273d2014-01-23 16:18:02 +000064def FeatureCFALUBug : SubtargetFeature<"cfalubug",
Matt Arsenault382d9452016-01-26 04:49:22 +000065 "CFALUBug",
66 "true",
67 "GPU has CF_ALU bug"
68>;
Changpeng Fangb41574a2015-12-22 20:55:23 +000069
Matt Arsenault3f981402014-09-15 15:41:53 +000070def FeatureFlatAddressSpace : SubtargetFeature<"flat-address-space",
Matt Arsenault382d9452016-01-26 04:49:22 +000071 "FlatAddressSpace",
72 "true",
73 "Support flat address space"
74>;
Matt Arsenault3f981402014-09-15 15:41:53 +000075
Matt Arsenaultacdc7652017-05-10 21:19:05 +000076def FeatureFlatInstOffsets : SubtargetFeature<"flat-inst-offsets",
77 "FlatInstOffsets",
78 "true",
79 "Flat instructions have immediate offset addressing mode"
80>;
81
82def FeatureFlatGlobalInsts : SubtargetFeature<"flat-global-insts",
83 "FlatGlobalInsts",
84 "true",
85 "Have global_* flat memory instructions"
86>;
87
88def FeatureFlatScratchInsts : SubtargetFeature<"flat-scratch-insts",
89 "FlatScratchInsts",
90 "true",
91 "Have scratch_* flat memory instructions"
92>;
93
Matt Arsenaultc37fe662017-07-20 17:42:47 +000094def FeatureAddNoCarryInsts : SubtargetFeature<"add-no-carry-insts",
95 "AddNoCarryInsts",
96 "true",
97 "Have VALU add/sub instructions without carry out"
98>;
99
Matt Arsenault7f681ac2016-07-01 23:03:44 +0000100def FeatureUnalignedBufferAccess : SubtargetFeature<"unaligned-buffer-access",
101 "UnalignedBufferAccess",
102 "true",
103 "Support unaligned global loads and stores"
104>;
105
Wei Ding205bfdb2017-02-10 02:15:29 +0000106def FeatureTrapHandler: SubtargetFeature<"trap-handler",
107 "TrapHandler",
108 "true",
109 "Trap handler support"
110>;
111
Tom Stellard64a9d082016-10-14 18:10:39 +0000112def FeatureUnalignedScratchAccess : SubtargetFeature<"unaligned-scratch-access",
113 "UnalignedScratchAccess",
114 "true",
115 "Support unaligned scratch loads and stores"
116>;
117
Matt Arsenaulte823d922017-02-18 18:29:53 +0000118def FeatureApertureRegs : SubtargetFeature<"aperture-regs",
119 "HasApertureRegs",
120 "true",
121 "Has Memory Aperture Base and Size Registers"
122>;
123
Matt Arsenault28f52e52017-10-25 07:00:51 +0000124def FeatureMadMixInsts : SubtargetFeature<"mad-mix-insts",
125 "HasMadMixInsts",
126 "true",
127 "Has v_mad_mix_f32, v_mad_mixlo_f16, v_mad_mixhi_f16 instructions"
128>;
129
Marek Olsak0f55fba2016-12-09 19:49:54 +0000130// XNACK is disabled if SH_MEM_CONFIG.ADDRESS_MODE = GPUVM on chips that support
131// XNACK. The current default kernel driver setting is:
132// - graphics ring: XNACK disabled
133// - compute ring: XNACK enabled
134//
135// If XNACK is enabled, the VMEM latency can be worse.
136// If XNACK is disabled, the 2 SGPRs can be used for general purposes.
Nicolai Haehnle5b504972016-01-04 23:35:53 +0000137def FeatureXNACK : SubtargetFeature<"xnack",
Matt Arsenault382d9452016-01-26 04:49:22 +0000138 "EnableXNACK",
139 "true",
140 "Enable XNACK support"
141>;
Tom Stellarde99fb652015-01-20 19:33:04 +0000142
Marek Olsak4d00dd22015-03-09 15:48:09 +0000143def FeatureSGPRInitBug : SubtargetFeature<"sgpr-init-bug",
Matt Arsenault382d9452016-01-26 04:49:22 +0000144 "SGPRInitBug",
145 "true",
Matt Arsenaulta7eb14af2017-08-06 18:13:23 +0000146 "VI SGPR initialization bug requiring a fixed SGPR allocation size"
Matt Arsenault382d9452016-01-26 04:49:22 +0000147>;
Tom Stellardde008d32016-01-21 04:28:34 +0000148
Tom Stellard3498e4f2013-06-07 20:28:55 +0000149class SubtargetFeatureFetchLimit <string Value> :
150 SubtargetFeature <"fetch"#Value,
Matt Arsenault382d9452016-01-26 04:49:22 +0000151 "TexVTXClauseSize",
152 Value,
153 "Limit the maximum number of fetches in a clause to "#Value
154>;
Tom Stellard99792772013-06-07 20:28:49 +0000155
Tom Stellard3498e4f2013-06-07 20:28:55 +0000156def FeatureFetchLimit8 : SubtargetFeatureFetchLimit <"8">;
157def FeatureFetchLimit16 : SubtargetFeatureFetchLimit <"16">;
158
Tom Stellard8c347b02014-01-22 21:55:40 +0000159class SubtargetFeatureWavefrontSize <int Value> : SubtargetFeature<
Matt Arsenault382d9452016-01-26 04:49:22 +0000160 "wavefrontsize"#Value,
161 "WavefrontSize",
162 !cast<string>(Value),
163 "The number of threads per wavefront"
164>;
Tom Stellard8c347b02014-01-22 21:55:40 +0000165
166def FeatureWavefrontSize16 : SubtargetFeatureWavefrontSize<16>;
167def FeatureWavefrontSize32 : SubtargetFeatureWavefrontSize<32>;
168def FeatureWavefrontSize64 : SubtargetFeatureWavefrontSize<64>;
169
Tom Stellardec87f842015-05-25 16:15:54 +0000170class SubtargetFeatureLDSBankCount <int Value> : SubtargetFeature <
Matt Arsenault382d9452016-01-26 04:49:22 +0000171 "ldsbankcount"#Value,
172 "LDSBankCount",
173 !cast<string>(Value),
174 "The number of LDS banks per compute unit."
175>;
Tom Stellardec87f842015-05-25 16:15:54 +0000176
177def FeatureLDSBankCount16 : SubtargetFeatureLDSBankCount<16>;
178def FeatureLDSBankCount32 : SubtargetFeatureLDSBankCount<32>;
179
Tom Stellard880a80a2014-06-17 16:53:14 +0000180class SubtargetFeatureLocalMemorySize <int Value> : SubtargetFeature<
Matt Arsenault382d9452016-01-26 04:49:22 +0000181 "localmemorysize"#Value,
182 "LocalMemorySize",
183 !cast<string>(Value),
184 "The size of local memory in bytes"
185>;
Tom Stellard880a80a2014-06-17 16:53:14 +0000186
Tom Stellardd7e6f132015-04-08 01:09:26 +0000187def FeatureGCN : SubtargetFeature<"gcn",
Matt Arsenault382d9452016-01-26 04:49:22 +0000188 "IsGCN",
189 "true",
190 "GCN or newer GPU"
191>;
Tom Stellardd7e6f132015-04-08 01:09:26 +0000192
Tom Stellardd7e6f132015-04-08 01:09:26 +0000193def FeatureGCN3Encoding : SubtargetFeature<"gcn3-encoding",
Matt Arsenault382d9452016-01-26 04:49:22 +0000194 "GCN3Encoding",
195 "true",
196 "Encoding format for VI"
197>;
Tom Stellardd1f0f022015-04-23 19:33:54 +0000198
199def FeatureCIInsts : SubtargetFeature<"ci-insts",
Matt Arsenault382d9452016-01-26 04:49:22 +0000200 "CIInsts",
201 "true",
Matt Arsenaultc6baa852017-10-02 20:31:18 +0000202 "Additional instructions for CI+"
Matt Arsenault382d9452016-01-26 04:49:22 +0000203>;
204
Matt Arsenault2021f082017-02-18 19:12:26 +0000205def FeatureGFX9Insts : SubtargetFeature<"gfx9-insts",
206 "GFX9Insts",
207 "true",
Matt Arsenaultc6baa852017-10-02 20:31:18 +0000208 "Additional instructions for GFX9+"
Matt Arsenault2021f082017-02-18 19:12:26 +0000209>;
210
Matt Arsenault9d82ee72016-02-27 08:53:55 +0000211def FeatureSMemRealTime : SubtargetFeature<"s-memrealtime",
212 "HasSMemRealTime",
Matt Arsenault61738cb2016-02-27 08:53:46 +0000213 "true",
Matt Arsenault9d82ee72016-02-27 08:53:55 +0000214 "Has s_memrealtime instruction"
215>;
216
Matt Arsenaultc88ba362016-10-29 04:05:06 +0000217def FeatureInv2PiInlineImm : SubtargetFeature<"inv-2pi-inline-imm",
218 "HasInv2PiInlineImm",
219 "true",
220 "Has 1 / (2 * pi) as inline immediate"
221>;
222
Matt Arsenault9d82ee72016-02-27 08:53:55 +0000223def Feature16BitInsts : SubtargetFeature<"16-bit-insts",
224 "Has16BitInsts",
225 "true",
226 "Has i16/f16 instructions"
Matt Arsenault61738cb2016-02-27 08:53:46 +0000227>;
228
Matt Arsenault9be7b0d2017-02-27 18:49:11 +0000229def FeatureVOP3P : SubtargetFeature<"vop3p",
230 "HasVOP3PInsts",
231 "true",
232 "Has VOP3P packed instructions"
233>;
234
Matt Arsenaultcc88ce32016-10-12 18:00:51 +0000235def FeatureMovrel : SubtargetFeature<"movrel",
236 "HasMovrel",
237 "true",
238 "Has v_movrel*_b32 instructions"
239>;
240
241def FeatureVGPRIndexMode : SubtargetFeature<"vgpr-index-mode",
242 "HasVGPRIndexMode",
243 "true",
244 "Has VGPR mode register indexing"
245>;
246
Matt Arsenault7b647552016-10-28 21:55:15 +0000247def FeatureScalarStores : SubtargetFeature<"scalar-stores",
248 "HasScalarStores",
249 "true",
250 "Has store scalar memory instructions"
251>;
252
Sam Kolton07dbde22017-01-20 10:01:25 +0000253def FeatureSDWA : SubtargetFeature<"sdwa",
254 "HasSDWA",
255 "true",
256 "Support SDWA (Sub-DWORD Addressing) extension"
257>;
258
Sam Kolton3c4933f2017-06-22 06:26:41 +0000259def FeatureSDWAOmod : SubtargetFeature<"sdwa-omod",
260 "HasSDWAOmod",
261 "true",
262 "Support OMod with SDWA (Sub-DWORD Addressing) extension"
263>;
264
265def FeatureSDWAScalar : SubtargetFeature<"sdwa-scalar",
266 "HasSDWAScalar",
267 "true",
268 "Support scalar register with SDWA (Sub-DWORD Addressing) extension"
269>;
270
271def FeatureSDWASdst : SubtargetFeature<"sdwa-sdst",
272 "HasSDWASdst",
273 "true",
274 "Support scalar dst for VOPC with SDWA (Sub-DWORD Addressing) extension"
275>;
276
277def FeatureSDWAMac : SubtargetFeature<"sdwa-mav",
278 "HasSDWAMac",
279 "true",
280 "Support v_mac_f32/f16 with SDWA (Sub-DWORD Addressing) extension"
281>;
282
Sam Koltona179d252017-06-27 15:02:23 +0000283def FeatureSDWAOutModsVOPC : SubtargetFeature<"sdwa-out-mods-vopc",
284 "HasSDWAOutModsVOPC",
Sam Kolton3c4933f2017-06-22 06:26:41 +0000285 "true",
286 "Support clamp for VOPC with SDWA (Sub-DWORD Addressing) extension"
287>;
288
Sam Kolton07dbde22017-01-20 10:01:25 +0000289def FeatureDPP : SubtargetFeature<"dpp",
290 "HasDPP",
291 "true",
292 "Support DPP (Data Parallel Primitives) extension"
293>;
294
Dmitry Preobrazhenskyff64aa52017-08-16 13:51:56 +0000295def FeatureIntClamp : SubtargetFeature<"int-clamp-insts",
296 "HasIntClamp",
297 "true",
298 "Support clamp for integer destination"
299>;
300
Changpeng Fang44dfa1d2018-01-12 21:12:19 +0000301def FeatureUnpackedD16VMem : SubtargetFeature<"unpacked-d16-vmem",
302 "HasUnpackedD16VMem",
303 "true",
304 "Has unpacked d16 vmem instructions"
305>;
306
Matt Arsenault382d9452016-01-26 04:49:22 +0000307//===------------------------------------------------------------===//
308// Subtarget Features (options and debugging)
309//===------------------------------------------------------------===//
310
311// Some instructions do not support denormals despite this flag. Using
312// fp32 denormals also causes instructions to run at the double
313// precision rate for the device.
314def FeatureFP32Denormals : SubtargetFeature<"fp32-denormals",
315 "FP32Denormals",
316 "true",
317 "Enable single precision denormal handling"
318>;
319
Matt Arsenaulta6867fd2017-01-23 22:31:03 +0000320// Denormal handling for fp64 and fp16 is controlled by the same
321// config register when fp16 supported.
322// TODO: Do we need a separate f16 setting when not legal?
323def FeatureFP64FP16Denormals : SubtargetFeature<"fp64-fp16-denormals",
324 "FP64FP16Denormals",
Matt Arsenault382d9452016-01-26 04:49:22 +0000325 "true",
Matt Arsenaulta6867fd2017-01-23 22:31:03 +0000326 "Enable double and half precision denormal handling",
Matt Arsenault382d9452016-01-26 04:49:22 +0000327 [FeatureFP64]
328>;
329
Matt Arsenaulta6867fd2017-01-23 22:31:03 +0000330def FeatureFP64Denormals : SubtargetFeature<"fp64-denormals",
331 "FP64FP16Denormals",
332 "true",
333 "Enable double and half precision denormal handling",
334 [FeatureFP64, FeatureFP64FP16Denormals]
335>;
336
337def FeatureFP16Denormals : SubtargetFeature<"fp16-denormals",
338 "FP64FP16Denormals",
339 "true",
340 "Enable half precision denormal handling",
341 [FeatureFP64FP16Denormals]
342>;
343
Matt Arsenault2fdf2a12017-02-21 23:35:48 +0000344def FeatureDX10Clamp : SubtargetFeature<"dx10-clamp",
345 "DX10Clamp",
346 "true",
347 "clamp modifier clamps NaNs to 0.0"
348>;
349
Matt Arsenaultf639c322016-01-28 20:53:42 +0000350def FeatureFPExceptions : SubtargetFeature<"fp-exceptions",
351 "FPExceptions",
352 "true",
353 "Enable floating point exceptions"
354>;
355
Matt Arsenault24ee0782016-02-12 02:40:47 +0000356class FeatureMaxPrivateElementSize<int size> : SubtargetFeature<
357 "max-private-element-size-"#size,
358 "MaxPrivateElementSize",
359 !cast<string>(size),
360 "Maximum private access size may be "#size
361>;
362
363def FeatureMaxPrivateElementSize4 : FeatureMaxPrivateElementSize<4>;
364def FeatureMaxPrivateElementSize8 : FeatureMaxPrivateElementSize<8>;
365def FeatureMaxPrivateElementSize16 : FeatureMaxPrivateElementSize<16>;
366
Matt Arsenault45b98182017-11-15 00:45:43 +0000367def FeatureEnableHugePrivateBuffer : SubtargetFeature<
368 "huge-private-buffer",
369 "EnableHugePrivateBuffer",
370 "true",
371 "Enable private/scratch buffer sizes greater than 128 GB"
372>;
373
Matt Arsenault382d9452016-01-26 04:49:22 +0000374def FeatureVGPRSpilling : SubtargetFeature<"vgpr-spilling",
375 "EnableVGPRSpilling",
376 "true",
377 "Enable spilling of VGPRs to scratch memory"
378>;
379
380def FeatureDumpCode : SubtargetFeature <"DumpCode",
381 "DumpCode",
382 "true",
383 "Dump MachineInstrs in the CodeEmitter"
384>;
385
386def FeatureDumpCodeLower : SubtargetFeature <"dumpcode",
387 "DumpCode",
388 "true",
389 "Dump MachineInstrs in the CodeEmitter"
390>;
391
Matt Arsenault382d9452016-01-26 04:49:22 +0000392def FeaturePromoteAlloca : SubtargetFeature <"promote-alloca",
393 "EnablePromoteAlloca",
394 "true",
395 "Enable promote alloca pass"
396>;
397
398// XXX - This should probably be removed once enabled by default
399def FeatureEnableLoadStoreOpt : SubtargetFeature <"load-store-opt",
400 "EnableLoadStoreOpt",
401 "true",
402 "Enable SI load/store optimizer pass"
403>;
404
405// Performance debugging feature. Allow using DS instruction immediate
406// offsets even if the base pointer can't be proven to be base. On SI,
407// base pointer values that won't give the same result as a 16-bit add
408// are not safe to fold, but this will override the conservative test
409// for the base pointer.
410def FeatureEnableUnsafeDSOffsetFolding : SubtargetFeature <
411 "unsafe-ds-offset-folding",
412 "EnableUnsafeDSOffsetFolding",
413 "true",
414 "Force using DS instruction immediate offsets on SI"
415>;
416
Matt Arsenault382d9452016-01-26 04:49:22 +0000417def FeatureEnableSIScheduler : SubtargetFeature<"si-scheduler",
418 "EnableSIScheduler",
419 "true",
420 "Enable SI Machine Scheduler"
421>;
422
Matt Arsenault7aad8fd2017-01-24 22:02:15 +0000423// Unless +-flat-for-global is specified, turn on FlatForGlobal for
424// all OS-es on VI and newer hardware to avoid assertion failures due
425// to missing ADDR64 variants of MUBUF instructions.
426// FIXME: moveToVALU should be able to handle converting addr64 MUBUF
427// instructions.
428
Matt Arsenault382d9452016-01-26 04:49:22 +0000429def FeatureFlatForGlobal : SubtargetFeature<"flat-for-global",
430 "FlatForGlobal",
431 "true",
Matt Arsenaultd8f7ea32017-01-27 17:42:26 +0000432 "Force to generate flat instruction for global"
Matt Arsenault382d9452016-01-26 04:49:22 +0000433>;
Tom Stellardd1f0f022015-04-23 19:33:54 +0000434
Konstantin Zhuravlyovbe6c0ca2017-06-02 17:40:26 +0000435def FeatureAutoWaitcntBeforeBarrier : SubtargetFeature <
436 "auto-waitcnt-before-barrier",
437 "AutoWaitcntBeforeBarrier",
438 "true",
439 "Hardware automatically inserts waitcnt before barrier"
440>;
441
Konstantin Zhuravlyoveda425e2017-10-14 15:59:07 +0000442def FeatureCodeObjectV3 : SubtargetFeature <
443 "code-object-v3",
444 "CodeObjectV3",
445 "true",
446 "Generate code object version 3"
447>;
448
Tom Stellardd1f0f022015-04-23 19:33:54 +0000449// Dummy feature used to disable assembler instructions.
450def FeatureDisable : SubtargetFeature<"",
Matt Arsenault382d9452016-01-26 04:49:22 +0000451 "FeatureDisable","true",
452 "Dummy feature to disable assembler instructions"
453>;
Tom Stellardd1f0f022015-04-23 19:33:54 +0000454
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000455class SubtargetFeatureGeneration <string Value,
456 list<SubtargetFeature> Implies> :
457 SubtargetFeature <Value, "Gen", "AMDGPUSubtarget::"#Value,
458 Value#" GPU generation", Implies>;
459
Tom Stellard880a80a2014-06-17 16:53:14 +0000460def FeatureLocalMemorySize0 : SubtargetFeatureLocalMemorySize<0>;
461def FeatureLocalMemorySize32768 : SubtargetFeatureLocalMemorySize<32768>;
462def FeatureLocalMemorySize65536 : SubtargetFeatureLocalMemorySize<65536>;
463
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000464def FeatureR600 : SubtargetFeatureGeneration<"R600",
Matt Arsenault382d9452016-01-26 04:49:22 +0000465 [FeatureR600ALUInst, FeatureFetchLimit8, FeatureLocalMemorySize0]
466>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000467
468def FeatureR700 : SubtargetFeatureGeneration<"R700",
Matt Arsenault382d9452016-01-26 04:49:22 +0000469 [FeatureFetchLimit16, FeatureLocalMemorySize0]
470>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000471
472def FeatureEvergreen : SubtargetFeatureGeneration<"EVERGREEN",
Matt Arsenault382d9452016-01-26 04:49:22 +0000473 [FeatureFetchLimit16, FeatureLocalMemorySize32768]
474>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000475
476def FeatureNorthernIslands : SubtargetFeatureGeneration<"NORTHERN_ISLANDS",
Matt Arsenault382d9452016-01-26 04:49:22 +0000477 [FeatureFetchLimit16, FeatureWavefrontSize64,
478 FeatureLocalMemorySize32768]
Tom Stellard880a80a2014-06-17 16:53:14 +0000479>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000480
481def FeatureSouthernIslands : SubtargetFeatureGeneration<"SOUTHERN_ISLANDS",
Dmitry Preobrazhenskye3271ae2018-02-05 12:45:43 +0000482 [FeatureFP64, FeatureLocalMemorySize32768, FeatureMIMG_R128,
Matt Arsenault8728c5f2017-08-07 14:58:04 +0000483 FeatureWavefrontSize64, FeatureGCN,
Matt Arsenaultcc88ce32016-10-12 18:00:51 +0000484 FeatureLDSBankCount32, FeatureMovrel]
Matt Arsenault382d9452016-01-26 04:49:22 +0000485>;
Tom Stellarda6c6e1b2013-06-07 20:37:48 +0000486
Tom Stellard6e1ee472013-10-29 16:37:28 +0000487def FeatureSeaIslands : SubtargetFeatureGeneration<"SEA_ISLANDS",
Dmitry Preobrazhenskye3271ae2018-02-05 12:45:43 +0000488 [FeatureFP64, FeatureLocalMemorySize65536, FeatureMIMG_R128,
Matt Arsenault382d9452016-01-26 04:49:22 +0000489 FeatureWavefrontSize64, FeatureGCN, FeatureFlatAddressSpace,
Matt Arsenault8728c5f2017-08-07 14:58:04 +0000490 FeatureCIInsts, FeatureMovrel]
Matt Arsenault382d9452016-01-26 04:49:22 +0000491>;
Marek Olsak5df00d62014-12-07 12:18:57 +0000492
493def FeatureVolcanicIslands : SubtargetFeatureGeneration<"VOLCANIC_ISLANDS",
Dmitry Preobrazhenskye3271ae2018-02-05 12:45:43 +0000494 [FeatureFP64, FeatureLocalMemorySize65536, FeatureMIMG_R128,
Matt Arsenault382d9452016-01-26 04:49:22 +0000495 FeatureWavefrontSize64, FeatureFlatAddressSpace, FeatureGCN,
Matt Arsenault9d82ee72016-02-27 08:53:55 +0000496 FeatureGCN3Encoding, FeatureCIInsts, Feature16BitInsts,
Matt Arsenault7b647552016-10-28 21:55:15 +0000497 FeatureSMemRealTime, FeatureVGPRIndexMode, FeatureMovrel,
Sam Kolton3c4933f2017-06-22 06:26:41 +0000498 FeatureScalarStores, FeatureInv2PiInlineImm,
Dmitry Preobrazhenskyff64aa52017-08-16 13:51:56 +0000499 FeatureSDWA, FeatureSDWAOutModsVOPC, FeatureSDWAMac, FeatureDPP,
500 FeatureIntClamp
Matt Arsenault9d82ee72016-02-27 08:53:55 +0000501 ]
Matt Arsenault382d9452016-01-26 04:49:22 +0000502>;
Marek Olsak5df00d62014-12-07 12:18:57 +0000503
Matt Arsenaulte823d922017-02-18 18:29:53 +0000504def FeatureGFX9 : SubtargetFeatureGeneration<"GFX9",
505 [FeatureFP64, FeatureLocalMemorySize65536,
506 FeatureWavefrontSize64, FeatureFlatAddressSpace, FeatureGCN,
507 FeatureGCN3Encoding, FeatureCIInsts, Feature16BitInsts,
508 FeatureSMemRealTime, FeatureScalarStores, FeatureInv2PiInlineImm,
Konstantin Zhuravlyovf6284062017-04-21 19:57:53 +0000509 FeatureApertureRegs, FeatureGFX9Insts, FeatureVOP3P, FeatureVGPRIndexMode,
Dmitry Preobrazhenskyff64aa52017-08-16 13:51:56 +0000510 FeatureFastFMAF32, FeatureDPP, FeatureIntClamp,
Sam Kolton3c4933f2017-06-22 06:26:41 +0000511 FeatureSDWA, FeatureSDWAOmod, FeatureSDWAScalar, FeatureSDWASdst,
Matt Arsenaultc37fe662017-07-20 17:42:47 +0000512 FeatureFlatInstOffsets, FeatureFlatGlobalInsts, FeatureFlatScratchInsts,
513 FeatureAddNoCarryInsts
Matt Arsenaulte823d922017-02-18 18:29:53 +0000514 ]
515>;
516
Yaxun Liu94add852016-10-26 16:37:56 +0000517class SubtargetFeatureISAVersion <int Major, int Minor, int Stepping,
518 list<SubtargetFeature> Implies>
519 : SubtargetFeature <
520 "isaver"#Major#"."#Minor#"."#Stepping,
521 "IsaVersion",
522 "ISAVersion"#Major#"_"#Minor#"_"#Stepping,
523 "Instruction set version number",
524 Implies
525>;
526
Wei Ding7c3e5112017-06-10 03:53:19 +0000527def FeatureISAVersion6_0_0 : SubtargetFeatureISAVersion <6,0,0,
528 [FeatureSouthernIslands,
Matt Arsenault8bcf2f22017-06-26 03:01:36 +0000529 FeatureFastFMAF32,
Wei Ding7c3e5112017-06-10 03:53:19 +0000530 HalfRate64Ops,
531 FeatureLDSBankCount32]>;
532
533def FeatureISAVersion6_0_1 : SubtargetFeatureISAVersion <6,0,1,
534 [FeatureSouthernIslands,
535 FeatureLDSBankCount32]>;
Matt Arsenault8bcf2f22017-06-26 03:01:36 +0000536
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000537def FeatureISAVersion7_0_0 : SubtargetFeatureISAVersion <7,0,0,
Yaxun Liu94add852016-10-26 16:37:56 +0000538 [FeatureSeaIslands,
539 FeatureLDSBankCount32]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000540
Yaxun Liu94add852016-10-26 16:37:56 +0000541def FeatureISAVersion7_0_1 : SubtargetFeatureISAVersion <7,0,1,
542 [FeatureSeaIslands,
543 HalfRate64Ops,
544 FeatureLDSBankCount32,
545 FeatureFastFMAF32]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000546
Yaxun Liu94add852016-10-26 16:37:56 +0000547def FeatureISAVersion7_0_2 : SubtargetFeatureISAVersion <7,0,2,
548 [FeatureSeaIslands,
Marek Olsak23ae31c2016-12-09 19:49:58 +0000549 FeatureLDSBankCount16]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000550
Wei Ding7c3e5112017-06-10 03:53:19 +0000551def FeatureISAVersion7_0_3 : SubtargetFeatureISAVersion <7,0,3,
552 [FeatureSeaIslands,
553 FeatureLDSBankCount16]>;
554
Konstantin Zhuravlyovc40d9f22017-12-08 20:52:28 +0000555def FeatureISAVersion7_0_4 : SubtargetFeatureISAVersion <7,0,4,
556 [FeatureSeaIslands,
557 FeatureLDSBankCount32]>;
558
Yaxun Liu94add852016-10-26 16:37:56 +0000559def FeatureISAVersion8_0_1 : SubtargetFeatureISAVersion <8,0,1,
560 [FeatureVolcanicIslands,
Konstantin Zhuravlyov68107652017-08-24 20:03:07 +0000561 FeatureFastFMAF32,
562 HalfRate64Ops,
Yaxun Liu94add852016-10-26 16:37:56 +0000563 FeatureLDSBankCount32,
Changpeng Fang44dfa1d2018-01-12 21:12:19 +0000564 FeatureXNACK,
565 FeatureUnpackedD16VMem]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000566
Yaxun Liu94add852016-10-26 16:37:56 +0000567def FeatureISAVersion8_0_2 : SubtargetFeatureISAVersion <8,0,2,
568 [FeatureVolcanicIslands,
569 FeatureLDSBankCount32,
Changpeng Fang44dfa1d2018-01-12 21:12:19 +0000570 FeatureSGPRInitBug,
571 FeatureUnpackedD16VMem]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000572
Yaxun Liu94add852016-10-26 16:37:56 +0000573def FeatureISAVersion8_0_3 : SubtargetFeatureISAVersion <8,0,3,
574 [FeatureVolcanicIslands,
Changpeng Fang44dfa1d2018-01-12 21:12:19 +0000575 FeatureLDSBankCount32,
576 FeatureUnpackedD16VMem]>;
Matt Arsenaultf3dd8632016-11-01 00:55:14 +0000577
Yaxun Liu94add852016-10-26 16:37:56 +0000578def FeatureISAVersion8_1_0 : SubtargetFeatureISAVersion <8,1,0,
579 [FeatureVolcanicIslands,
580 FeatureLDSBankCount16,
581 FeatureXNACK]>;
582
Wei Ding7c3e5112017-06-10 03:53:19 +0000583def FeatureISAVersion9_0_0 : SubtargetFeatureISAVersion <9,0,0,
584 [FeatureGFX9,
Matt Arsenault28f52e52017-10-25 07:00:51 +0000585 FeatureMadMixInsts,
586 FeatureLDSBankCount32
587 ]>;
Wei Ding7c3e5112017-06-10 03:53:19 +0000588
Wei Ding7c3e5112017-06-10 03:53:19 +0000589def FeatureISAVersion9_0_2 : SubtargetFeatureISAVersion <9,0,2,
590 [FeatureGFX9,
Matt Arsenault28f52e52017-10-25 07:00:51 +0000591 FeatureMadMixInsts,
Konstantin Zhuravlyov331f97e172018-02-16 21:26:25 +0000592 FeatureLDSBankCount32,
593 FeatureXNACK
Matt Arsenault28f52e52017-10-25 07:00:51 +0000594 ]>;
Wei Ding7c3e5112017-06-10 03:53:19 +0000595
Tom Stellard3498e4f2013-06-07 20:28:55 +0000596//===----------------------------------------------------------------------===//
Konstantin Zhuravlyov8c273ad2016-04-18 16:28:23 +0000597// Debugger related subtarget features.
598//===----------------------------------------------------------------------===//
599
600def FeatureDebuggerInsertNops : SubtargetFeature<
601 "amdgpu-debugger-insert-nops",
602 "DebuggerInsertNops",
603 "true",
Konstantin Zhuravlyove3d322a2016-05-13 18:21:28 +0000604 "Insert one nop instruction for each high level source statement"
Konstantin Zhuravlyov8c273ad2016-04-18 16:28:23 +0000605>;
606
Konstantin Zhuravlyov29ddd2b2016-05-24 18:37:18 +0000607def FeatureDebuggerReserveRegs : SubtargetFeature<
608 "amdgpu-debugger-reserve-regs",
609 "DebuggerReserveRegs",
Konstantin Zhuravlyov1d99c4d2016-04-26 15:43:14 +0000610 "true",
Konstantin Zhuravlyov29ddd2b2016-05-24 18:37:18 +0000611 "Reserve registers for debugger usage"
Konstantin Zhuravlyov1d99c4d2016-04-26 15:43:14 +0000612>;
613
Konstantin Zhuravlyovf2f3d142016-06-25 03:11:28 +0000614def FeatureDebuggerEmitPrologue : SubtargetFeature<
615 "amdgpu-debugger-emit-prologue",
616 "DebuggerEmitPrologue",
617 "true",
618 "Emit debugger prologue"
619>;
620
Konstantin Zhuravlyov8c273ad2016-04-18 16:28:23 +0000621//===----------------------------------------------------------------------===//
Tom Stellard75aadc22012-12-11 21:25:42 +0000622
623def AMDGPUInstrInfo : InstrInfo {
624 let guessInstructionProperties = 1;
Matt Arsenault1ecac062015-02-18 02:15:32 +0000625 let noNamedPositionallyEncodedOperands = 1;
Tom Stellard75aadc22012-12-11 21:25:42 +0000626}
627
Tom Stellard9d7ddd52014-11-14 14:08:00 +0000628def AMDGPUAsmParser : AsmParser {
629 // Some of the R600 registers have the same name, so this crashes.
630 // For example T0_XYZW and T0_XY both have the asm name T0.
631 let ShouldEmitMatchRegisterName = 0;
632}
633
Konstantin Zhuravlyovda4687c2016-09-27 14:42:48 +0000634def AMDGPUAsmWriter : AsmWriter {
635 int PassSubtarget = 1;
636}
637
Sam Koltond63d8a72016-09-09 09:37:51 +0000638def AMDGPUAsmVariants {
639 string Default = "Default";
640 int Default_ID = 0;
641 string VOP3 = "VOP3";
642 int VOP3_ID = 1;
643 string SDWA = "SDWA";
644 int SDWA_ID = 2;
Sam Koltonf7659d712017-05-23 10:08:55 +0000645 string SDWA9 = "SDWA9";
646 int SDWA9_ID = 3;
Sam Koltond63d8a72016-09-09 09:37:51 +0000647 string DPP = "DPP";
Sam Koltonf7659d712017-05-23 10:08:55 +0000648 int DPP_ID = 4;
Sam Koltonfb0d9d92016-09-12 14:42:43 +0000649 string Disable = "Disable";
Sam Koltonf7659d712017-05-23 10:08:55 +0000650 int Disable_ID = 5;
Sam Koltond63d8a72016-09-09 09:37:51 +0000651}
652
653def DefaultAMDGPUAsmParserVariant : AsmParserVariant {
654 let Variant = AMDGPUAsmVariants.Default_ID;
655 let Name = AMDGPUAsmVariants.Default;
656}
657
658def VOP3AsmParserVariant : AsmParserVariant {
659 let Variant = AMDGPUAsmVariants.VOP3_ID;
660 let Name = AMDGPUAsmVariants.VOP3;
661}
662
663def SDWAAsmParserVariant : AsmParserVariant {
664 let Variant = AMDGPUAsmVariants.SDWA_ID;
665 let Name = AMDGPUAsmVariants.SDWA;
666}
667
Sam Koltonf7659d712017-05-23 10:08:55 +0000668def SDWA9AsmParserVariant : AsmParserVariant {
669 let Variant = AMDGPUAsmVariants.SDWA9_ID;
670 let Name = AMDGPUAsmVariants.SDWA9;
671}
672
673
Sam Koltond63d8a72016-09-09 09:37:51 +0000674def DPPAsmParserVariant : AsmParserVariant {
675 let Variant = AMDGPUAsmVariants.DPP_ID;
676 let Name = AMDGPUAsmVariants.DPP;
677}
678
Tom Stellard75aadc22012-12-11 21:25:42 +0000679def AMDGPU : Target {
680 // Pull in Instruction Info:
681 let InstructionSet = AMDGPUInstrInfo;
Tom Stellard9d7ddd52014-11-14 14:08:00 +0000682 let AssemblyParsers = [AMDGPUAsmParser];
Sam Koltond63d8a72016-09-09 09:37:51 +0000683 let AssemblyParserVariants = [DefaultAMDGPUAsmParserVariant,
684 VOP3AsmParserVariant,
685 SDWAAsmParserVariant,
Sam Koltonf7659d712017-05-23 10:08:55 +0000686 SDWA9AsmParserVariant,
Sam Koltond63d8a72016-09-09 09:37:51 +0000687 DPPAsmParserVariant];
Konstantin Zhuravlyovda4687c2016-09-27 14:42:48 +0000688 let AssemblyWriters = [AMDGPUAsmWriter];
Geoff Berryf8bf2ec2018-02-23 18:25:08 +0000689 let AllowRegisterRenaming = 1;
Tom Stellard75aadc22012-12-11 21:25:42 +0000690}
691
Tom Stellardbc5b5372014-06-13 16:38:59 +0000692// Dummy Instruction itineraries for pseudo instructions
693def ALU_NULL : FuncUnit;
694def NullALU : InstrItinClass;
695
Tom Stellard0e70de52014-05-16 20:56:45 +0000696//===----------------------------------------------------------------------===//
697// Predicate helper class
698//===----------------------------------------------------------------------===//
699
Tom Stellardd1f0f022015-04-23 19:33:54 +0000700def TruePredicate : Predicate<"true">;
Matt Arsenault382d9452016-01-26 04:49:22 +0000701
Tom Stellardd1f0f022015-04-23 19:33:54 +0000702def isSICI : Predicate<
703 "Subtarget->getGeneration() == AMDGPUSubtarget::SOUTHERN_ISLANDS ||"
704 "Subtarget->getGeneration() == AMDGPUSubtarget::SEA_ISLANDS"
Matt Arsenault8728c5f2017-08-07 14:58:04 +0000705>, AssemblerPredicate<"!FeatureGCN3Encoding">;
Tom Stellardd1f0f022015-04-23 19:33:54 +0000706
Tom Stellard5ebdfbe2015-12-24 03:18:18 +0000707def isVI : Predicate <
708 "Subtarget->getGeneration() >= AMDGPUSubtarget::VOLCANIC_ISLANDS">,
709 AssemblerPredicate<"FeatureGCN3Encoding">;
710
Matt Arsenault2021f082017-02-18 19:12:26 +0000711def isGFX9 : Predicate <
712 "Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9">,
713 AssemblerPredicate<"FeatureGFX9Insts">;
714
Matt Arsenaulte823d922017-02-18 18:29:53 +0000715// TODO: Either the name to be changed or we simply use IsCI!
Matt Arsenault382d9452016-01-26 04:49:22 +0000716def isCIVI : Predicate <
Matt Arsenaulte823d922017-02-18 18:29:53 +0000717 "Subtarget->getGeneration() >= AMDGPUSubtarget::SEA_ISLANDS">,
718 AssemblerPredicate<"FeatureCIInsts">;
Matt Arsenault382d9452016-01-26 04:49:22 +0000719
Matt Arsenault9698f1c2017-06-20 19:54:14 +0000720def HasFlatAddressSpace : Predicate<"Subtarget->hasFlatAddressSpace()">,
721 AssemblerPredicate<"FeatureFlatAddressSpace">;
722
723def HasFlatGlobalInsts : Predicate<"Subtarget->hasFlatGlobalInsts()">,
724 AssemblerPredicate<"FeatureFlatGlobalInsts">;
Matt Arsenaultca7b0a12017-07-21 15:36:16 +0000725def HasFlatScratchInsts : Predicate<"Subtarget->hasFlatScratchInsts()">,
726 AssemblerPredicate<"FeatureFlatScratchInsts">;
Matt Arsenaulted6e8f02017-09-01 18:36:06 +0000727def HasD16LoadStore : Predicate<"Subtarget->hasD16LoadStore()">,
728 AssemblerPredicate<"FeatureGFX9Insts">;
Matt Arsenault382d9452016-01-26 04:49:22 +0000729
Changpeng Fang44dfa1d2018-01-12 21:12:19 +0000730def HasUnpackedD16VMem : Predicate<"Subtarget->hasUnpackedD16VMem()">,
731 AssemblerPredicate<"FeatureUnpackedD16VMem">;
732def HasPackedD16VMem : Predicate<"!Subtarget->hasUnpackedD16VMem()">,
733 AssemblerPredicate<"!FeatureUnpackedD16VMem">;
734
Matt Arsenault3f71c0e2017-11-29 00:55:57 +0000735
736def LDSRequiresM0Init : Predicate<"Subtarget->ldsRequiresM0Init()">;
737def NotLDSRequiresM0Init : Predicate<"!Subtarget->ldsRequiresM0Init()">;
738
Matt Arsenaultefa1d652017-09-01 18:38:02 +0000739def HasDSAddTid : Predicate<"Subtarget->getGeneration() >= AMDGPUSubtarget::GFX9">,
740 AssemblerPredicate<"FeatureGFX9Insts">;
741
Matt Arsenaultc37fe662017-07-20 17:42:47 +0000742def HasAddNoCarryInsts : Predicate<"Subtarget->hasAddNoCarryInsts()">,
743 AssemblerPredicate<"FeatureAddNoCarryInsts">;
744
745def NotHasAddNoCarryInsts : Predicate<"!Subtarget->hasAddNoCarryInsts()">,
746 AssemblerPredicate<"!FeatureAddNoCarryInsts">;
747
Matt Arsenault9be7b0d2017-02-27 18:49:11 +0000748def Has16BitInsts : Predicate<"Subtarget->has16BitInsts()">,
749 AssemblerPredicate<"Feature16BitInsts">;
750def HasVOP3PInsts : Predicate<"Subtarget->hasVOP3PInsts()">,
751 AssemblerPredicate<"FeatureVOP3P">;
Tom Stellard115a6152016-11-10 16:02:37 +0000752
Sam Kolton07dbde22017-01-20 10:01:25 +0000753def HasSDWA : Predicate<"Subtarget->hasSDWA()">,
Sam Koltonf7659d712017-05-23 10:08:55 +0000754 AssemblerPredicate<"FeatureSDWA,FeatureVolcanicIslands">;
755
756def HasSDWA9 : Predicate<"Subtarget->hasSDWA()">,
757 AssemblerPredicate<"FeatureSDWA,FeatureGFX9">;
Sam Kolton07dbde22017-01-20 10:01:25 +0000758
759def HasDPP : Predicate<"Subtarget->hasDPP()">,
760 AssemblerPredicate<"FeatureDPP">;
761
Dmitry Preobrazhenskyff64aa52017-08-16 13:51:56 +0000762def HasIntClamp : Predicate<"Subtarget->hasIntClamp()">,
763 AssemblerPredicate<"FeatureIntClamp">;
764
Matt Arsenault28f52e52017-10-25 07:00:51 +0000765def HasMadMixInsts : Predicate<"Subtarget->hasMadMixInsts()">,
766 AssemblerPredicate<"FeatureMadMixInsts">;
Matt Arsenaultd7e23032017-09-07 18:05:07 +0000767
Matt Arsenaultcc852232017-10-10 20:22:07 +0000768def EnableLateCFGStructurize : Predicate<
769 "EnableLateStructurizeCFG">;
Matt Arsenault90c75932017-10-03 00:06:41 +0000770
771// Exists to help track down where SubtargetPredicate isn't set rather
772// than letting tablegen crash with an unhelpful error.
773def InvalidPred : Predicate<"predicate not set on instruction or pattern">;
774
Tom Stellard0e70de52014-05-16 20:56:45 +0000775class PredicateControl {
Matt Arsenault90c75932017-10-03 00:06:41 +0000776 Predicate SubtargetPredicate = InvalidPred;
Tom Stellardd1f0f022015-04-23 19:33:54 +0000777 Predicate SIAssemblerPredicate = isSICI;
Tom Stellard5ebdfbe2015-12-24 03:18:18 +0000778 Predicate VIAssemblerPredicate = isVI;
Tom Stellardd7e6f132015-04-08 01:09:26 +0000779 list<Predicate> AssemblerPredicates = [];
Tom Stellardd1f0f022015-04-23 19:33:54 +0000780 Predicate AssemblerPredicate = TruePredicate;
Tom Stellard0e70de52014-05-16 20:56:45 +0000781 list<Predicate> OtherPredicates = [];
Matt Arsenault90c75932017-10-03 00:06:41 +0000782 list<Predicate> Predicates = !listconcat([SubtargetPredicate,
783 AssemblerPredicate],
Tom Stellardd7e6f132015-04-08 01:09:26 +0000784 AssemblerPredicates,
Tom Stellard0e70de52014-05-16 20:56:45 +0000785 OtherPredicates);
786}
787
Matt Arsenault90c75932017-10-03 00:06:41 +0000788class AMDGPUPat<dag pattern, dag result> : Pat<pattern, result>,
789 PredicateControl;
790
791
Tom Stellard75aadc22012-12-11 21:25:42 +0000792// Include AMDGPU TD files
793include "R600Schedule.td"
Konstantin Zhuravlyov27b0a032017-11-10 20:01:58 +0000794include "R600Processors.td"
Tom Stellard75aadc22012-12-11 21:25:42 +0000795include "SISchedule.td"
Konstantin Zhuravlyov27b0a032017-11-10 20:01:58 +0000796include "GCNProcessors.td"
Tom Stellard75aadc22012-12-11 21:25:42 +0000797include "AMDGPUInstrInfo.td"
798include "AMDGPUIntrinsics.td"
799include "AMDGPURegisterInfo.td"
Tom Stellardca166212017-01-30 21:56:46 +0000800include "AMDGPURegisterBanks.td"
Tom Stellard75aadc22012-12-11 21:25:42 +0000801include "AMDGPUInstructions.td"
Christian Konig2c8f6d52013-03-07 09:03:52 +0000802include "AMDGPUCallingConv.td"