[PATCH] D81377: GlobalISel: Add a note to G_BITCAST documentation

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 8 04:52:18 PDT 2020


arsenm created this revision.
arsenm added reviewers: dsanders, aemerson, aditya_nandakumar, paquette.
Herald added subscribers: rovka, wdng.
Herald added a project: LLVM.

This is currently different from the IR rules.


https://reviews.llvm.org/D81377

Files:
  llvm/docs/GlobalISel/GenericOpcode.rst


Index: llvm/docs/GlobalISel/GenericOpcode.rst
===================================================================
--- llvm/docs/GlobalISel/GenericOpcode.rst
+++ llvm/docs/GlobalISel/GenericOpcode.rst
@@ -152,9 +152,11 @@
 G_BITCAST
 ^^^^^^^^^
 
-Reinterpret a value as a new type. This is usually done without changing any
-bits but this is not always the case due a sublety in the definition of the
-:ref:`LLVM-IR Bitcast Instruction <i_bitcast>`.
+Reinterpret a value as a new type. This is usually done without
+changing any bits but this is not always the case due a sublety in the
+definition of the :ref:`LLVM-IR Bitcast Instruction <i_bitcast>`. It
+is allowed to bitcast between pointers with the same size, but
+different address spaces.
 
 .. code-block:: none
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81377.269176.patch
Type: text/x-patch
Size: 773 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200608/386dd4e5/attachment-0001.bin>


More information about the llvm-commits mailing list