[llvm] [AMDGPU] Fix printing hasInitWholeWave in mir (PR #123232)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 01:32:06 PST 2025


================
@@ -0,0 +1,17 @@
+; RUN: llc -global-isel=0 -march=amdgcn -mcpu=gfx1100 -stop-after=amdgpu-isel < %s | FileCheck --check-prefix=GCN %s
+; RUN: llc -global-isel=1 -march=amdgcn -mcpu=gfx1100 -stop-after=amdgpu-isel < %s | FileCheck --check-prefix=GCN %s
+
+; GCN-LABEL: name: init_wwm
+; GCN: hasInitWholeWave: true
+define void @init_wwm(ptr addrspace(1) inreg %p) {
+entry:
+  %entry_exec = call i1 @llvm.amdgcn.init.whole.wave()
+  br i1 %entry_exec, label %bb.1, label %bb.2
+
+bb.1:
+  store i32 1, ptr addrspace(1) %p
+  br label %bb.2
+
+bb.2:
+  ret void
+}
----------------
rampitec wrote:

Done

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


More information about the llvm-commits mailing list