[all-commits] [llvm/llvm-project] 3ad818: [DataLayout] Add null pointer value infrastructure
Shilei Tian via All-commits
all-commits at lists.llvm.org
Mon Apr 27 17:12:20 PDT 2026
Branch: refs/heads/users/shiltian/datalayout-nullptr-value
Home: https://github.com/llvm/llvm-project
Commit: 3ad8184d991f4106b6e55d20ebf75bef2b9192ba
https://github.com/llvm/llvm-project/commit/3ad8184d991f4106b6e55d20ebf75bef2b9192ba
Author: Shilei Tian <i at tianshilei.me>
Date: 2026-04-27 (Mon, 27 Apr 2026)
Changed paths:
M llvm/docs/LangRef.rst
M llvm/docs/ReleaseNotes.md
M llvm/include/llvm/IR/DataLayout.h
M llvm/lib/IR/DataLayout.cpp
M llvm/unittests/IR/DataLayoutTest.cpp
Log Message:
-----------
[DataLayout] Add null pointer value infrastructure
Add support for specifying the null pointer bit representation per address space
in DataLayout via new pointer spec flags:
- 'z': null pointer is all-zeros
- 'o': null pointer is all-ones
When neither flag is present, the address space inherits the default set by the
new 'N<null-value>' top-level specifier ('Nz' or 'No'). If that is also absent,
the null pointer value is zero.
No target DataLayout strings are updated in this change. This is pure
infrastructure for a future ConstantPointerNull semantic change to support
targets with non-zero null pointers (e.g. AMDGPU).
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list