[PATCH] D127668: [NVPTX] Fix pointer type for short 32-bit pointers
Artem Belevich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 16 10:54:30 PDT 2022
tra added inline comments.
================
Comment at: llvm/test/CodeGen/NVPTX/short-ptr.ll:12
+; CHECK-SHORT-SHARED: .visible .shared .align 8 .u32 s
+ at s = local_unnamed_addr addrspace(3) global i32 addrspace(3)* null, align 8
+
----------------
BTW, the global variables themselves can all be in the global AS. we only care about the *type* of these variables which is what we're testing -- how we lower pointers in local/const/shared AS.
https://godbolt.org/z/7rx1jo18v
```
@s = local_unnamed_addr addrspace(1) global i32 addrspace(3)* null, align 8
@c = local_unnamed_addr addrspace(1) global i32 addrspace(4)* null, align 8
@l = local_unnamed_addr addrspace(1) global i32 addrspace(5)* null, align 8
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D127668/new/
https://reviews.llvm.org/D127668
More information about the llvm-commits
mailing list