[llvm] [WIP] Extend data layout to add sentinel pointer value for address space. (PR #83109)

Rana Pratap Reddy via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 14 03:45:37 PDT 2024


================
@@ -3044,6 +3044,14 @@ as follows:
     ``n32:64`` for PowerPC 64, or ``n8:16:32:64`` for X86-64. Elements of
     this set are considered to support most general arithmetic operations
     efficiently.
+``z[n]:<value>``
+    This specifies the default null value for an address space. ``n`` denotes
+    the address space number, and if not specified, it is considered to be
+    for the unlisted address space. For unlisted address space, the default
+    null value is ``0``. ``value`` denotes the default null value for an
+    address space ``n``. To represent negatives values, prefix ``neg`` is
+    added to ``value``. for e.g., ``z0:neg1`` represents for ``0`` address
+    space ``-1`` is the default null value.
----------------
ranapratap55 wrote:

updated the patch to use sentinel pointer value.

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


More information about the llvm-commits mailing list