[Mlir-commits] [mlir] [mlir][amdgpu] Define an amdgpu.scaling_mfma wrapper (PR #137498)

Jakub Kuderski llvmlistbot at llvm.org
Sun Apr 27 12:44:53 PDT 2025


================
@@ -833,6 +833,14 @@ mfmaOpToScaledIntrinsic(MFMAOp mfma, Chipset chipset) {
       mfma.getBlocks(), chipset);
 }
 
+static std::optional<std::tuple<StringRef, uint32_t, uint32_t>>
+mfmaOpToScaledIntrinsic(ScaledMFMAOp smfma, Chipset chipset) {
+  return mfmaOpToScaledIntrinsic(smfma.getSourceA().getType(),
----------------
kuhar wrote:

What's the benefit of branching on the operation type?

https://github.com/llvm/llvm-project/pull/137498


More information about the Mlir-commits mailing list