[PATCH] D102523: [docs] Explain address spaces a bit more in opaque pointers doc

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 12:15:00 PDT 2021


aeubanks created this revision.
Herald added a subscriber: dexonsmith.
aeubanks requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102523

Files:
  llvm/docs/OpaquePointers.rst


Index: llvm/docs/OpaquePointers.rst
===================================================================
--- llvm/docs/OpaquePointers.rst
+++ llvm/docs/OpaquePointers.rst
@@ -14,7 +14,10 @@
 pointee types in LLVM with an opaque pointer type. The new pointer type is
 tentatively represented textually as ``ptr``.
 
-Anything to do with pointer address spaces is unaffected.
+Address spaces are still used to distinguish between different kinds of pointers
+where the distinction is relevant for lowering (e.g. data vs function pointers
+have different sizes on some architectures). For more information, see
+`DataLayout <LangRef.html#langref-datalayout>`_.
 
 Issues with explicit pointee types
 ==================================


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102523.345527.patch
Type: text/x-patch
Size: 731 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210514/c104c98a/attachment.bin>


More information about the llvm-commits mailing list