[llvm] [LLVM][NVPTX] Add support for ldmatrix extensions introduced in PTX 8.6 (PR #124899)

Pradeep Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 13 14:11:06 PDT 2025


================
@@ -7413,9 +7436,9 @@ class LDMATRIX<WMMA_REGINFO Frag, bit Transposed, string Space>
 defset list<WMMA_INSTR> LDMATRIXs  = {
   foreach transposed = [false, true] in {
     foreach space = [".shared", ""] in {
-      foreach frag = NVVM_MMA_OPS.all_ldmatrix_ops in
-        if NVVM_LDMATRIX_SUPPORTED<frag>.ret then
-          def : LDMATRIX<WMMA_REGINFO<frag, "ldmatrix">, transposed, space>;
+        foreach frag = NVVM_MMA_OPS.all_ldmatrix_ops in
+          if NVVM_LDMATRIX_SUPPORTED<frag, transposed>.ret then
+            def : LDMATRIX<WMMA_REGINFO<frag, "ldmatrix">, transposed, space>;
----------------
schwarzschild-radius wrote:

Thanks @Artem-B! Removed the addtional indentation

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


More information about the llvm-commits mailing list