Files
llvm-project/llvm/lib/IR/DataLayout.cpp
Shilei Tian dfa56b58d6 [RFC][DataLayout] Add null pointer value infrastructure (#183207)
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 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).
2026-04-30 16:32:44 +00:00

42 KiB