diff options
author | Wenju He <wenju.he@intel.com> | 2025-10-09 09:10:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-09 09:10:24 +0800 |
commit | 1ffff05a38c92ef3a0479e8f86869e5f2008fdd7 (patch) | |
tree | f543a19b5034228336c0c7b78b111ad92d5f8ed7 /libc/startup/gpu/nvptx/start.cpp | |
parent | a4a98033c3deb6bc9a438f3cb9e0e1716da5bc00 (diff) | |
download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 |
LLVM models ConstantPointerNull as all-zero, but some GPUs (e.g. AMDGPU
and our downstream GPU target) use a non-zero sentinel for null in
private / local address spaces.
SPIR-V is a supported input for our GPU target. This PR preserves a
canonical zero form in the generic AS while allowing later lowering to
substitute the target’s real sentinel.
Diffstat (limited to 'libc/startup/gpu/nvptx/start.cpp')
0 files changed, 0 insertions, 0 deletions