[llvm] 9a53fe5 - [LangRef] Fix typo in example describing memory layout of a vector. NFC
Bjorn Pettersson via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 27 16:01:04 PDT 2023
Author: Bjorn Pettersson
Date: 2023-07-28T01:00:30+02:00
New Revision: 9a53fe50f4355e6dfcd6af534cb394a62128963b
URL: https://github.com/llvm/llvm-project/commit/9a53fe50f4355e6dfcd6af534cb394a62128963b
DIFF: https://github.com/llvm/llvm-project/commit/9a53fe50f4355e6dfcd6af534cb394a62128963b.diff
LOG: [LangRef] Fix typo in example describing memory layout of a vector. NFC
The example describing bitcasts (and memory layout) involving
vector types was incorrect for little endian.
This was reported in https://reviews.llvm.org/D94964
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index eeba36e4167323..625c4afffe58bf 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -3857,8 +3857,8 @@ The same example for little endian:
; In memory the content will be (8-bit addressing):
;
- ; [%ptr + 0]: 01010011 (0x53)
- ; [%ptr + 1]: 00100001 (0x21)
+ ; [%ptr + 0]: 00100001 (0x21)
+ ; [%ptr + 1]: 01010011 (0x53)
When ``<N*M>`` isn't evenly divisible by the byte size the exact memory layout
is unspecified (just like it is for an integral type of the same size). This
More information about the llvm-commits
mailing list