[Codegen] Alter the default promotion for saturating adds and subs
[llvm-complete.git] / lib / Target / AMDGPU / GCNProcessors.td
blobb926041afb2fe2bf72de3e77821b848d597fb4d2
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 //===----------------------------------------------------------------------===//
9 // The code produced for "generic" is only useful for tests and cannot
10 // reasonably be expected to execute on any particular target.
11 def : ProcessorModel<"generic", NoSchedModel,
12   [FeatureWavefrontSize64]
15 def : ProcessorModel<"generic-hsa", NoSchedModel,
16   [FeatureWavefrontSize64, FeatureFlatAddressSpace]
19 //===------------------------------------------------------------===//
20 // GCN GFX6 (Southern Islands (SI)).
21 //===------------------------------------------------------------===//
23 def : ProcessorModel<"gfx600", SIFullSpeedModel,
24   FeatureISAVersion6_0_0.Features
27 def : ProcessorModel<"tahiti", SIFullSpeedModel,
28   FeatureISAVersion6_0_0.Features
31 def : ProcessorModel<"gfx601", SIQuarterSpeedModel,
32   FeatureISAVersion6_0_1.Features
35 def : ProcessorModel<"hainan", SIQuarterSpeedModel,
36   FeatureISAVersion6_0_1.Features
39 def : ProcessorModel<"oland", SIQuarterSpeedModel,
40   FeatureISAVersion6_0_1.Features
43 def : ProcessorModel<"pitcairn", SIQuarterSpeedModel,
44   FeatureISAVersion6_0_1.Features
47 def : ProcessorModel<"verde", SIQuarterSpeedModel,
48   FeatureISAVersion6_0_1.Features
51 //===------------------------------------------------------------===//
52 // GCN GFX7 (Sea Islands (CI)).
53 //===------------------------------------------------------------===//
55 def : ProcessorModel<"gfx700", SIQuarterSpeedModel,
56   FeatureISAVersion7_0_0.Features
59 def : ProcessorModel<"kaveri", SIQuarterSpeedModel,
60   FeatureISAVersion7_0_0.Features
63 def : ProcessorModel<"gfx701", SIFullSpeedModel,
64   FeatureISAVersion7_0_1.Features
67 def : ProcessorModel<"hawaii", SIFullSpeedModel,
68   FeatureISAVersion7_0_1.Features
71 def : ProcessorModel<"gfx702", SIQuarterSpeedModel,
72   FeatureISAVersion7_0_2.Features
75 def : ProcessorModel<"gfx703", SIQuarterSpeedModel,
76   FeatureISAVersion7_0_3.Features
79 def : ProcessorModel<"kabini", SIQuarterSpeedModel,
80   FeatureISAVersion7_0_3.Features
83 def : ProcessorModel<"mullins", SIQuarterSpeedModel,
84   FeatureISAVersion7_0_3.Features
87 def : ProcessorModel<"gfx704", SIQuarterSpeedModel,
88   FeatureISAVersion7_0_4.Features
91 def : ProcessorModel<"bonaire", SIQuarterSpeedModel,
92   FeatureISAVersion7_0_4.Features
95 //===------------------------------------------------------------===//
96 // GCN GFX8 (Volcanic Islands (VI)).
97 //===------------------------------------------------------------===//
99 def : ProcessorModel<"gfx801", SIQuarterSpeedModel,
100   FeatureISAVersion8_0_1.Features
103 def : ProcessorModel<"carrizo", SIQuarterSpeedModel,
104   FeatureISAVersion8_0_1.Features
107 def : ProcessorModel<"gfx802", SIQuarterSpeedModel,
108   FeatureISAVersion8_0_2.Features
111 def : ProcessorModel<"iceland", SIQuarterSpeedModel,
112   FeatureISAVersion8_0_2.Features
115 def : ProcessorModel<"tonga", SIQuarterSpeedModel,
116   FeatureISAVersion8_0_2.Features
119 def : ProcessorModel<"gfx803", SIQuarterSpeedModel,
120   FeatureISAVersion8_0_3.Features
123 def : ProcessorModel<"fiji", SIQuarterSpeedModel,
124   FeatureISAVersion8_0_3.Features
127 def : ProcessorModel<"polaris10", SIQuarterSpeedModel,
128   FeatureISAVersion8_0_3.Features
131 def : ProcessorModel<"polaris11", SIQuarterSpeedModel,
132   FeatureISAVersion8_0_3.Features
135 def : ProcessorModel<"gfx810", SIQuarterSpeedModel,
136   FeatureISAVersion8_1_0.Features
139 def : ProcessorModel<"stoney", SIQuarterSpeedModel,
140   FeatureISAVersion8_1_0.Features
143 //===------------------------------------------------------------===//
144 // GCN GFX9.
145 //===------------------------------------------------------------===//
147 def : ProcessorModel<"gfx900", SIQuarterSpeedModel,
148   FeatureISAVersion9_0_0.Features
151 def : ProcessorModel<"gfx902", SIQuarterSpeedModel,
152   FeatureISAVersion9_0_2.Features
155 def : ProcessorModel<"gfx904", SIQuarterSpeedModel,
156   FeatureISAVersion9_0_4.Features
159 def : ProcessorModel<"gfx906", SIQuarterSpeedModel,
160   FeatureISAVersion9_0_6.Features
163 def : ProcessorModel<"gfx908", SIQuarterSpeedModel,
164   FeatureISAVersion9_0_8.Features
167 def : ProcessorModel<"gfx909", SIQuarterSpeedModel,
168   FeatureISAVersion9_0_9.Features
171 //===----------------------------------------------------------------------===//
172 // GCN GFX10.
173 //===----------------------------------------------------------------------===//
175 def : ProcessorModel<"gfx1010", GFX10SpeedModel,
176   FeatureISAVersion10_1_0.Features
179 def : ProcessorModel<"gfx1011", GFX10SpeedModel,
180   FeatureISAVersion10_1_1.Features
183 def : ProcessorModel<"gfx1012", GFX10SpeedModel,
184   FeatureISAVersion10_1_2.Features