[llvm] dce91f2 - [docs] Explain address spaces a bit more in opaque pointers doc

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 12:35:56 PDT 2021


Author: Arthur Eubanks
Date: 2021-05-25T12:35:43-07:00
New Revision: dce91f247d7513db25a87e3d32c857e6e3509b61

URL: https://github.com/llvm/llvm-project/commit/dce91f247d7513db25a87e3d32c857e6e3509b61
DIFF: https://github.com/llvm/llvm-project/commit/dce91f247d7513db25a87e3d32c857e6e3509b61.diff

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

Reviewed By: theraven

Differential Revision: https://reviews.llvm.org/D102523

Added: 
    

Modified: 
    llvm/docs/OpaquePointers.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/OpaquePointers.rst b/llvm/docs/OpaquePointers.rst
index b3e5ffe7fe9ae..b1dfe76c0fc5a 100644
--- a/llvm/docs/OpaquePointers.rst
+++ b/llvm/docs/OpaquePointers.rst
@@ -14,7 +14,11 @@ The opaque pointer type project aims to replace all pointer types containing
 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 
diff erent kinds of pointers
+where the distinction is relevant for lowering (e.g. data vs function pointers
+have 
diff erent sizes on some architectures). Opaque pointers are not changing
+anything related to address spaces and lowering. For more information, see
+`DataLayout <LangRef.html#langref-datalayout>`_.
 
 Issues with explicit pointee types
 ==================================


        


More information about the llvm-commits mailing list