[llvm] [LLVM-Tablegen] Pretty Printing Immediate Arguments in LLVM Intrinsics (PR #162629)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 9 08:55:17 PDT 2025
================
@@ -34,13 +34,17 @@ define void @tcgen05_mma_fp16_cta1(ptr addrspace(6) %dtmem, ptr addrspace(6) %at
; CHECK-NEXT: tcgen05.mma.cta_group::1.kind::f16.collector::a::use [%r1], [%r3], %rd2, %r2, %p1;
; CHECK-NEXT: ret;
call void @llvm.nvvm.tcgen05.mma.shared(ptr addrspace(6) %dtmem, i64 %ashared, i64 %b, i32 %idesc, i1 %enable_inp_d, i32 0, i32 1, i32 0)
+ ; call void @llvm.nvvm.tcgen05.mma.tensor(ptr addrspace(6) %dtmem, ptr addrspace(6) %atensor, i64 %b, i32 %idesc, i1 %enable_inp_d, /* kind::f16 */ i32 0, /* cta_group::1 */ i32 1, /* collector::a::discard */ i32 0)
----------------
jurahul wrote:
To demonstrate this feature, what I'd expect is a LLVM unit test that just does something like:
llvm-dis %s -o - | llvm-as --print-formatted-intrinsics | FileCheck
And then you can check that intrinsics calls are printed with the comments
https://github.com/llvm/llvm-project/pull/162629
More information about the llvm-commits
mailing list