aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEli Bendersky <eliben@chromium.org>2013-07-30 11:13:16 -0700
committerEli Bendersky <eliben@chromium.org>2013-07-30 11:13:16 -0700
commit423b3bb89c78e96c59843aa7c6e55d01bde174d1 (patch)
treeed04f1d273b37e0ad1bac2cf0252e39984604ffb /docs
parentd2bedf1ea13574b4df0ca9ec059f447ebcafa5c3 (diff)
Move alloca into subsection for better formatting.
BUG=None R=sehr@chromium.org Review URL: https://codereview.chromium.org/21069006
Diffstat (limited to 'docs')
-rw-r--r--docs/PNaClLangRef.rst22
1 files changed, 16 insertions, 6 deletions
diff --git a/docs/PNaClLangRef.rst b/docs/PNaClLangRef.rst
index b1160fb9cd..027f33ac92 100644
--- a/docs/PNaClLangRef.rst
+++ b/docs/PNaClLangRef.rst
@@ -254,6 +254,9 @@ PNaCl bitcode does not support intrinsic global variables.
Instruction Reference
=====================
+List of allowed instructions
+----------------------------
+
This is a list of LLVM instructions supported by PNaCl bitcode. Where
applicable, PNaCl-specific restrictions are provided.
@@ -288,12 +291,7 @@ Only the LLVM instructions listed here are supported by PNaCl bitcode.
* ``frem``
* ``alloca``
- The only allowed type for ``alloca`` instructions in PNaCl bitcode
- is i8. The size argument must be an i32. For example:
-
-.. code-block:: llvm
-
- %buf = alloca i8, i32 8, align 4
+ See :ref:`alloca instructions <allocainst>`.
* ``load``, ``store``
@@ -335,6 +333,18 @@ Only the LLVM instructions listed here are supported by PNaCl bitcode.
* ``select``
* ``call``
+.. _allocainst:
+
+``alloca``
+----------
+
+The only allowed type for ``alloca`` instructions in PNaCl bitcode is i8. The
+size argument must be an i32. For example:
+
+.. code-block:: llvm
+
+ %buf = alloca i8, i32 8, align 4
+
Intrinsic Functions
===================