1//===-- GCNProcessors.td - GCN Processor definitions ----------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8
9// The code produced for "generic" is only useful for tests and cannot
10// reasonably be expected to execute on any particular target.
11def : ProcessorModel<"generic", NoSchedModel,
12  [FeatureWavefrontSize64]
13>;
14
15def : ProcessorModel<"generic-hsa", NoSchedModel,
16  [FeatureWavefrontSize64, FeatureFlatAddressSpace]
17>;
18
19//===------------------------------------------------------------===//
20// GCN GFX6 (Southern Islands (SI)).
21//===------------------------------------------------------------===//
22
23def : ProcessorModel<"gfx600", SIFullSpeedModel,
24  FeatureISAVersion6_0_0.Features
25>;
26
27def : ProcessorModel<"tahiti", SIFullSpeedModel,
28  FeatureISAVersion6_0_0.Features
29>;
30
31def : ProcessorModel<"gfx601", SIQuarterSpeedModel,
32  FeatureISAVersion6_0_1.Features
33>;
34
35def : ProcessorModel<"hainan", SIQuarterSpeedModel,
36  FeatureISAVersion6_0_1.Features
37>;
38
39def : ProcessorModel<"oland", SIQuarterSpeedModel,
40  FeatureISAVersion6_0_1.Features
41>;
42
43def : ProcessorModel<"pitcairn", SIQuarterSpeedModel,
44  FeatureISAVersion6_0_1.Features
45>;
46
47def : ProcessorModel<"verde", SIQuarterSpeedModel,
48  FeatureISAVersion6_0_1.Features
49>;
50
51//===------------------------------------------------------------===//
52// GCN GFX7 (Sea Islands (CI)).
53//===------------------------------------------------------------===//
54
55def : ProcessorModel<"gfx700", SIQuarterSpeedModel,
56  FeatureISAVersion7_0_0.Features
57>;
58
59def : ProcessorModel<"kaveri", SIQuarterSpeedModel,
60  FeatureISAVersion7_0_0.Features
61>;
62
63def : ProcessorModel<"gfx701", SIFullSpeedModel,
64  FeatureISAVersion7_0_1.Features
65>;
66
67def : ProcessorModel<"hawaii", SIFullSpeedModel,
68  FeatureISAVersion7_0_1.Features
69>;
70
71def : ProcessorModel<"gfx702", SIQuarterSpeedModel,
72  FeatureISAVersion7_0_2.Features
73>;
74
75def : ProcessorModel<"gfx703", SIQuarterSpeedModel,
76  FeatureISAVersion7_0_3.Features
77>;
78
79def : ProcessorModel<"kabini", SIQuarterSpeedModel,
80  FeatureISAVersion7_0_3.Features
81>;
82
83def : ProcessorModel<"mullins", SIQuarterSpeedModel,
84  FeatureISAVersion7_0_3.Features
85>;
86
87def : ProcessorModel<"gfx704", SIQuarterSpeedModel,
88  FeatureISAVersion7_0_4.Features
89>;
90
91def : ProcessorModel<"bonaire", SIQuarterSpeedModel,
92  FeatureISAVersion7_0_4.Features
93>;
94
95//===------------------------------------------------------------===//
96// GCN GFX8 (Volcanic Islands (VI)).
97//===------------------------------------------------------------===//
98
99def : ProcessorModel<"gfx801", SIQuarterSpeedModel,
100  FeatureISAVersion8_0_1.Features
101>;
102
103def : ProcessorModel<"carrizo", SIQuarterSpeedModel,
104  FeatureISAVersion8_0_1.Features
105>;
106
107def : ProcessorModel<"gfx802", SIQuarterSpeedModel,
108  FeatureISAVersion8_0_2.Features
109>;
110
111def : ProcessorModel<"iceland", SIQuarterSpeedModel,
112  FeatureISAVersion8_0_2.Features
113>;
114
115def : ProcessorModel<"tonga", SIQuarterSpeedModel,
116  FeatureISAVersion8_0_2.Features
117>;
118
119def : ProcessorModel<"gfx803", SIQuarterSpeedModel,
120  FeatureISAVersion8_0_3.Features
121>;
122
123def : ProcessorModel<"fiji", SIQuarterSpeedModel,
124  FeatureISAVersion8_0_3.Features
125>;
126
127def : ProcessorModel<"polaris10", SIQuarterSpeedModel,
128  FeatureISAVersion8_0_3.Features
129>;
130
131def : ProcessorModel<"polaris11", SIQuarterSpeedModel,
132  FeatureISAVersion8_0_3.Features
133>;
134
135def : ProcessorModel<"gfx810", SIQuarterSpeedModel,
136  FeatureISAVersion8_1_0.Features
137>;
138
139def : ProcessorModel<"stoney", SIQuarterSpeedModel,
140  FeatureISAVersion8_1_0.Features
141>;
142
143//===------------------------------------------------------------===//
144// GCN GFX9.
145//===------------------------------------------------------------===//
146
147def : ProcessorModel<"gfx900", SIQuarterSpeedModel,
148  FeatureISAVersion9_0_0.Features
149>;
150
151def : ProcessorModel<"gfx902", SIQuarterSpeedModel,
152  FeatureISAVersion9_0_2.Features
153>;
154
155def : ProcessorModel<"gfx904", SIQuarterSpeedModel,
156  FeatureISAVersion9_0_4.Features
157>;
158
159def : ProcessorModel<"gfx906", SIQuarterSpeedModel,
160  FeatureISAVersion9_0_6.Features
161>;
162
163def : ProcessorModel<"gfx908", SIQuarterSpeedModel,
164  FeatureISAVersion9_0_8.Features
165>;
166
167def : ProcessorModel<"gfx909", SIQuarterSpeedModel,
168  FeatureISAVersion9_0_9.Features
169>;
170
171//===----------------------------------------------------------------------===//
172// GCN GFX10.
173//===----------------------------------------------------------------------===//
174
175def : ProcessorModel<"gfx1010", GFX10SpeedModel,
176  FeatureISAVersion10_1_0.Features
177>;
178
179def : ProcessorModel<"gfx1011", GFX10SpeedModel,
180  FeatureISAVersion10_1_1.Features
181>;
182
183def : ProcessorModel<"gfx1012", GFX10SpeedModel,
184  FeatureISAVersion10_1_2.Features
185>;
186