mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-06 09:06:21 +01:00
GlobalISel: Add a note to G_BITCAST documentation
This is currently different from the IR rules.
This commit is contained in:
@@ -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
|
||||
different address spaces.
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
|
||||
Reference in New Issue
Block a user