Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(360)

Unified Diff: native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst

Issue 358033002: PNaCl documentation: update the bitcode reference manual for vector load/store (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
diff --git a/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst b/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
index 1ffe5bf25c274cbe32b1078579914618f025510e..2f48f754d58a3c8bfaa2666cb2416b93e791eb2a 100644
--- a/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
+++ b/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
@@ -222,7 +222,10 @@ Pointer types
Only the following pointer types are allowed:
-* Pointers to valid PNaCl bitcode scalar types, as specified above.
+* Pointers to valid PNaCl bitcode scalar types, as specified above, except for
+ ``i1``.
+* Pointers to valid PNaCl bitcode vector types, as specified above, except for
+ ``<? x i1>``.
* Pointers to functions.
In addition, the address space for all pointers must be 0.
@@ -343,11 +346,16 @@ Only the LLVM instructions listed here are supported by PNaCl bitcode.
The pointer argument of these instructions must be a *normalized* pointer (see
:ref:`pointer types <bitcode_pointertypes>`). The ``volatile`` and ``atomic``
- attributes are not supported. Loads and stores of the type ``i1`` are not
- supported.
+ attributes are not supported. Loads and stores of the type ``i1`` and ``<? x
+ i1>`` are not supported.
- These instructions must use ``align 1`` on integer memory accesses, ``align 4``
- for ``float`` accesses and ``align 8`` for ``double`` accesses.
+ These instructions must follow the following alignment restrictions:
+
+ * On integer memory accesses: ``align 1``.
+ * On ``float`` memory accesses: ``align 1`` or ``align 4``.
+ * On ``double`` memory accesses: ``align 1`` or ``align 8``.
+ * On vector memory accesses: alignment at the vector's element width, for
+ example ``<4 x i32>`` must be ``align 4``.
* ``trunc``
* ``zext``
« no previous file with comments | « native_client_sdk/doc_generated/reference/pnacl-bitcode-abi.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698