[llvm] 59ce6ff - GlobalISel: Add a note to G_BITCAST documentation

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 16 08:04:58 PDT 2020


Author: Matt Arsenault
Date: 2020-06-16T11:04:46-04:00
New Revision: 59ce6ffe2d172e7703624a5f6797ff1353ea3067

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

LOG: GlobalISel: Add a note to G_BITCAST documentation

This is currently different from the IR rules.

Added: 
    

Modified: 
    llvm/docs/GlobalISel/GenericOpcode.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/GlobalISel/GenericOpcode.rst b/llvm/docs/GlobalISel/GenericOpcode.rst
index 2350b9cf3764..33611ea31a35 100644
--- a/llvm/docs/GlobalISel/GenericOpcode.rst
+++ b/llvm/docs/GlobalISel/GenericOpcode.rst
@@ -152,9 +152,11 @@ Convert a pointer to an integer.
 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
+
diff erent address spaces.
 
 .. code-block:: none
 


        


More information about the llvm-commits mailing list