[Mlir-commits] [mlir] [mlir][amdgpu] implement amdgpu.sparse_mfma wrapper for smfmac instructions (PR #171968)
Jakub Kuderski
llvmlistbot at llvm.org
Fri Dec 12 07:21:27 PST 2025
================
@@ -661,6 +661,30 @@ static Value convertMFMAVectorOperand(ConversionPatternRewriter &rewriter,
return input;
}
+/// Converts sparse MFMA (smfmac) operands to the expected ROCDL types.
+static Value convertSparseMFMAVectorOperand(ConversionPatternRewriter &rewriter,
+ Location loc, Value input,
+ bool allowBf16 = true) {
+ Type inputType = input.getType();
+ if (auto vectorType = dyn_cast<VectorType>(inputType)) {
----------------
kuhar wrote:
nit: Can we flip the condition and exit early
https://github.com/llvm/llvm-project/pull/171968
More information about the Mlir-commits
mailing list