[Mlir-commits] [mlir] [MLIR][NVVM] Add support for dp4a instructions (PR #139043)

Guray Ozen llvmlistbot at llvm.org
Thu May 8 05:15:30 PDT 2025


================
@@ -1590,6 +1597,17 @@ static void nvvmInferResultRanges(Operation *op, Value result,
   }
 }
 
+#define GET_DP4A_ID(a_sign, is_b_siext)                                        \
+  is_b_siext ? llvm::Intrinsic::nvvm_idp4a_##a_sign##_s                        \
+             : llvm::Intrinsic::nvvm_idp4a_##a_sign##_u
----------------
grypp wrote:

Can we not use macros? It's hard to read, and not possible to debug. 

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


More information about the Mlir-commits mailing list