@@ -477,14 +477,14 @@ static void wmmaPushOutputOperand(ConversionPatternRewriter &rewriter,
477
477
// / Return true if `type` is the E5M2 variant of an 8-bit float that is
478
478
// / supported by the `_bf8` instructions on the given `chipset`.
479
479
static bool typeIsExpectedBf8ForChipset (Chipset chipset, Type type) {
480
- return (isGfx940Series ( chipset) && isa<Float8E5M2FNUZType>(type)) ||
480
+ return (chipset == kGfx942 && isa<Float8E5M2FNUZType>(type)) ||
481
481
(hasOcpFp8 (chipset) && isa<Float8E5M2Type>(type));
482
482
}
483
483
484
484
// / Return true if `type` is the E4M3FN variant of an 8-bit float that is
485
485
// / supported by the `_fp8` instructions on the given `chipset`.
486
486
static bool typeIsExpectedFp8ForChipset (Chipset chipset, Type type) {
487
- return (isGfx940Series ( chipset) && isa<Float8E4M3FNUZType>(type)) ||
487
+ return (chipset == kGfx942 && isa<Float8E4M3FNUZType>(type)) ||
488
488
(hasOcpFp8 (chipset) && isa<Float8E4M3FNType>(type));
489
489
}
490
490
@@ -793,7 +793,7 @@ LogicalResult ExtPackedFp8OpLowering::matchAndRewrite(
793
793
ExtPackedFp8Op op, ExtPackedFp8OpAdaptor adaptor,
794
794
ConversionPatternRewriter &rewriter) const {
795
795
Location loc = op.getLoc ();
796
- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
796
+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
797
797
return rewriter.notifyMatchFailure (
798
798
loc, " Fp8 conversion instructions are not available on target "
799
799
" architecture and their emulation is not implemented" );
@@ -837,7 +837,7 @@ LogicalResult PackedTrunc2xFp8OpLowering::matchAndRewrite(
837
837
PackedTrunc2xFp8Op op, PackedTrunc2xFp8OpAdaptor adaptor,
838
838
ConversionPatternRewriter &rewriter) const {
839
839
Location loc = op.getLoc ();
840
- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
840
+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
841
841
return rewriter.notifyMatchFailure (
842
842
loc, " Fp8 conversion instructions are not available on target "
843
843
" architecture and their emulation is not implemented" );
@@ -874,7 +874,7 @@ LogicalResult PackedStochRoundFp8OpLowering::matchAndRewrite(
874
874
PackedStochRoundFp8Op op, PackedStochRoundFp8OpAdaptor adaptor,
875
875
ConversionPatternRewriter &rewriter) const {
876
876
Location loc = op.getLoc ();
877
- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
877
+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
878
878
return rewriter.notifyMatchFailure (
879
879
loc, " Fp8 conversion instructions are not available on target "
880
880
" architecture and their emulation is not implemented" );
0 commit comments