@@ -477,14 +477,14 @@ static void wmmaPushOutputOperand(ConversionPatternRewriter &rewriter,
477477// / Return true if `type` is the E5M2 variant of an 8-bit float that is
478478// / supported by the `_bf8` instructions on the given `chipset`.
479479static bool typeIsExpectedBf8ForChipset (Chipset chipset, Type type) {
480- return (isGfx940Series ( chipset) && isa<Float8E5M2FNUZType>(type)) ||
480+ return (chipset == kGfx942 && isa<Float8E5M2FNUZType>(type)) ||
481481 (hasOcpFp8 (chipset) && isa<Float8E5M2Type>(type));
482482}
483483
484484// / Return true if `type` is the E4M3FN variant of an 8-bit float that is
485485// / supported by the `_fp8` instructions on the given `chipset`.
486486static bool typeIsExpectedFp8ForChipset (Chipset chipset, Type type) {
487- return (isGfx940Series ( chipset) && isa<Float8E4M3FNUZType>(type)) ||
487+ return (chipset == kGfx942 && isa<Float8E4M3FNUZType>(type)) ||
488488 (hasOcpFp8 (chipset) && isa<Float8E4M3FNType>(type));
489489}
490490
@@ -793,7 +793,7 @@ LogicalResult ExtPackedFp8OpLowering::matchAndRewrite(
793793 ExtPackedFp8Op op, ExtPackedFp8OpAdaptor adaptor,
794794 ConversionPatternRewriter &rewriter) const {
795795 Location loc = op.getLoc ();
796- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
796+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
797797 return rewriter.notifyMatchFailure (
798798 loc, " Fp8 conversion instructions are not available on target "
799799 " architecture and their emulation is not implemented" );
@@ -837,7 +837,7 @@ LogicalResult PackedTrunc2xFp8OpLowering::matchAndRewrite(
837837 PackedTrunc2xFp8Op op, PackedTrunc2xFp8OpAdaptor adaptor,
838838 ConversionPatternRewriter &rewriter) const {
839839 Location loc = op.getLoc ();
840- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
840+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
841841 return rewriter.notifyMatchFailure (
842842 loc, " Fp8 conversion instructions are not available on target "
843843 " architecture and their emulation is not implemented" );
@@ -874,7 +874,7 @@ LogicalResult PackedStochRoundFp8OpLowering::matchAndRewrite(
874874 PackedStochRoundFp8Op op, PackedStochRoundFp8OpAdaptor adaptor,
875875 ConversionPatternRewriter &rewriter) const {
876876 Location loc = op.getLoc ();
877- if (!(isGfx940Series ( chipset) || hasOcpFp8 (chipset)))
877+ if (!(chipset == kGfx942 || hasOcpFp8 (chipset)))
878878 return rewriter.notifyMatchFailure (
879879 loc, " Fp8 conversion instructions are not available on target "
880880 " architecture and their emulation is not implemented" );
0 commit comments