@@ -287,6 +287,7 @@ std::optional<TargetDetails> getAMDGPUTargetDetails(StringRef target) {
287
287
static const ChipDetails mi300xChip = {304 , " mi300x" };
288
288
static const ChipDetails mi300aChip = {228 , " mi300a" };
289
289
static const ChipDetails mi308xChip = {80 , " mi308x" };
290
+ static const ChipDetails mi325xChip = {304 , " mi325x" };
290
291
291
292
// "AMD Instinct MI200 Series Accelerator Product Offerings" in Page 14 of
292
293
// https://www.amd.com/content/dam/amd/en/documents/instinct-business-docs/white-papers/amd-cdna2-white-paper.pdf
@@ -310,6 +311,7 @@ std::optional<TargetDetails> getAMDGPUTargetDetails(StringRef target) {
310
311
// See https://llvm.org/docs/AMDGPUUsage.html#processors for gfxN to
311
312
// cdnaN/rdnaN mapping.
312
313
return llvm::StringSwitch<std::optional<TargetDetails>>(target.lower ())
314
+ .Case (" mi325x" , TargetDetails{cdna3Wgp, &mi325xChip})
313
315
.Case (" mi300x" , TargetDetails{cdna3Wgp, &mi300xChip})
314
316
.Case (" mi300a" , TargetDetails{cdna3Wgp, &mi300aChip})
315
317
.Case (" mi308x" , TargetDetails{cdna3Wgp, &mi308xChip})
@@ -356,7 +358,7 @@ StringRef normalizeAMDGPUTarget(StringRef target) {
356
358
return target;
357
359
358
360
return llvm::StringSwitch<StringRef>(target.lower ())
359
- .Cases (" mi300a" , " mi300x" , " mi308x" , " gfx942" )
361
+ .Cases (" mi300a" , " mi300x" , " mi308x" , " mi325x " , " gfx942" )
360
362
.Cases (" mi250x" , " mi250" , " mi210" , " cdna2" , " gfx90a" )
361
363
.Cases (" mi100" , " cdna1" , " gfx908" )
362
364
.Cases (" rx7900xtx" , " rx7900xt" , " w7900" , " w7800" , " gfx1100" )
0 commit comments