[llvm] [NVPTX] Check Before inserting AddrSpaceCastInst in NVPTXLoweringAlloca (PR #106127)

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 27 12:51:57 PDT 2024


================
@@ -17,7 +17,21 @@ define void @kernel() {
   ret void
 }
 
+define void @alloc_already_in_addrspace5() {
+; LABEL: @lower_alloca_addrspace5
+; PTX-LABEL: .visible .func alloc_already_in_addrspace5(
+  %A = alloca i32, addrspace(5)
----------------
gonzalobg wrote:

I didn't knew it was supported, but if it is supported, then NVPTX should be setting this for all `alloca`s.

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


More information about the llvm-commits mailing list