[llvm] [AMDGPU][PromoteAlloca] Support memsets to ptr allocas (PR #80678)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 5 05:19:36 PST 2024


================
@@ -84,4 +84,16 @@ entry:
   ret void
 }
 
+define amdgpu_kernel void @memset_ptr_alloca(ptr %out) {
+; CHECK-LABEL: @memset_ptr_alloca(
+; CHECK-NEXT:    store i64 0, ptr [[OUT:%.*]], align 8
+; CHECK-NEXT:    ret void
+;
+  %alloca = alloca [6 x ptr], align 16, addrspace(5)
----------------
arsenm wrote:

Also nested array of pointers 

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


More information about the llvm-commits mailing list