[Mlir-commits] [mlir] [MLIR][ROCDL] Lower `gpu.subgroup_id` to `wavefrontsize` (PR #137360)

Krzysztof Drewniak llvmlistbot at llvm.org
Fri Apr 25 11:28:03 PDT 2025


================
@@ -32,6 +32,10 @@ llvm.func @rocdl_special_regs() -> i32 {
 
   // CHECK: call range(i64 1, 65) i64 @__ockl_get_local_size(i32 0)
   %14 = rocdl.workgroup.dim.x range <i32, 1, 65> : i64
+
+  // CHECK: call i64 $llvm.amdgcn.wavefrontsize()
----------------
krzysz00 wrote:

... This test can't be right?. It should be a `call i32 @llvm.amdgcn.wavefrontsize()`, no?

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


More information about the Mlir-commits mailing list