Skip to content

Commit 6eb4adf

Browse files
authored
[AMDGPU] Introduce FeatureISAVersion11_5_Common. NFC. (llvm#141061)
This just removes some duplication in the features lists for gfx115x.
1 parent 898df4b commit 6eb4adf

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

llvm/lib/Target/AMDGPU/AMDGPU.td

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,33 +1819,28 @@ def FeatureISAVersion11_0_3 : FeatureSet<
18191819
!listconcat(FeatureISAVersion11_0_Common.Features,
18201820
[])>;
18211821

1822-
def FeatureISAVersion11_5_0 : FeatureSet<
1822+
def FeatureISAVersion11_5_Common : FeatureSet<
18231823
!listconcat(FeatureISAVersion11_Common.Features,
18241824
[FeatureSALUFloatInsts,
18251825
FeatureDPPSrc1SGPR,
1826-
FeatureRequiredExportPriority,
1827-
FeaturePointSampleAccel])>;
1826+
FeatureRequiredExportPriority])>;
1827+
1828+
def FeatureISAVersion11_5_0 : FeatureSet<
1829+
!listconcat(FeatureISAVersion11_5_Common.Features,
1830+
[FeaturePointSampleAccel])>;
18281831

18291832
def FeatureISAVersion11_5_1 : FeatureSet<
1830-
!listconcat(FeatureISAVersion11_Common.Features,
1831-
[FeatureSALUFloatInsts,
1832-
FeatureDPPSrc1SGPR,
1833-
Feature1_5xVGPRs,
1834-
FeatureRequiredExportPriority,
1833+
!listconcat(FeatureISAVersion11_5_Common.Features,
1834+
[Feature1_5xVGPRs,
18351835
FeaturePointSampleAccel])>;
18361836

18371837
def FeatureISAVersion11_5_2 : FeatureSet<
1838-
!listconcat(FeatureISAVersion11_Common.Features,
1839-
[FeatureSALUFloatInsts,
1840-
FeatureDPPSrc1SGPR,
1841-
FeatureRequiredExportPriority,
1842-
FeaturePointSampleAccel])>;
1838+
!listconcat(FeatureISAVersion11_5_Common.Features,
1839+
[FeaturePointSampleAccel])>;
18431840

18441841
def FeatureISAVersion11_5_3 : FeatureSet<
1845-
!listconcat(FeatureISAVersion11_Common.Features,
1846-
[FeatureSALUFloatInsts,
1847-
FeatureDPPSrc1SGPR,
1848-
FeatureRequiredExportPriority])>;
1842+
!listconcat(FeatureISAVersion11_5_Common.Features,
1843+
[])>;
18491844

18501845
def FeatureISAVersion12 : FeatureSet<
18511846
[FeatureGFX12,

0 commit comments

Comments
 (0)