[Mlir-commits] [mlir] [ROCDL] Refactored MFMA ops in ODS; added constraints (PR #175775)

Krzysztof Drewniak llvmlistbot at llvm.org
Tue Jan 13 08:56:29 PST 2026


================
@@ -610,11 +610,34 @@ def ROCDL_IglpOpt : ROCDL_ConcreteNonMemIntrOp<"iglp.opt", [], 0, [0], ["variant
 //===---------------------------------------------------------------------===//
 // Xdlops intrinsics
 
-class ROCDL_Mfma_IntrOp<string mnemonic, list<Trait> traits = []> :
-  ROCDL_IntrOp<mnemonic, [], [], traits, 1>,
-  Arguments<(ins Variadic<LLVM_Type>:$args)> {
-  let assemblyFormat =
-    "$args attr-dict `:` functional-type($args, $res)";
+class ROCDL_Mfma_IntrOp<string mnemonic, Type AB, Type CD> :
+  ROCDL_IntrOp<mnemonic, [], [], [], 1, 0, 0, 0, [3, 4, 5], ["cbsz", "abid", "blgp"]>,
+  Arguments<(ins
+             LLVM_ScalarOrVectorOf<AB>:$a,
----------------
krzysz00 wrote:

1. Let's follow LLVM and be as exact as possible - you'll want to specify the exact vector types here


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


More information about the Mlir-commits mailing list