summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authoreliben@chromium.org <eliben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 16:08:46 +0000
committereliben@chromium.org <eliben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-15 16:08:46 +0000
commit0c4812e97824c6dcabc3bd2eebc58d634e4eb83f (patch)
tree1f699d0287c1c5b8da34fc4b16d53bde86391dd9 /native_client_sdk
parentd41d7cb96d3fa45b3bd76a8a3b1c1e7bd01f0ce0 (diff)
downloadchromium_src-0c4812e97824c6dcabc3bd2eebc58d634e4eb83f.zip
chromium_src-0c4812e97824c6dcabc3bd2eebc58d634e4eb83f.tar.gz
chromium_src-0c4812e97824c6dcabc3bd2eebc58d634e4eb83f.tar.bz2
Mention the ILP32 & floating point data model of PNaCl in the bitcode ref.
BUG=None R=jfb@chromium.org Review URL: https://codereview.chromium.org/27190005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@228696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rw-r--r--native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst13
1 files changed, 11 insertions, 2 deletions
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 8216ddd..b4cf4e8 100644
--- a/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
+++ b/native_client_sdk/src/doc/reference/pnacl-bitcode-abi.rst
@@ -26,6 +26,17 @@ High Level Structure
A PNaCl portable executable (**pexe** in short) is a single LLVM IR module.
+Data Model
+----------
+
+The data model for PNaCl bitcode is fixed at little-endian ILP32: pointers are
+32 bits in size. 64-bit integer types are also supported natively via the i64
+type (for example, a front-end can generate these from the C/C++ type
+``long long``).
+
+Floating point support is fixed at IEEE 754 32-bit and 64-bit values (f32 and
+f64, respectively).
+
.. _bitcode_linkagetypes:
Linkage Types
@@ -217,8 +228,6 @@ A pointer is *normalized* if it's either:
* Is the return value of a ``bitcast`` instruction.
* Is the return value of a ``inttoptr`` instruction.
-Note: the size of a pointer in PNaCl is 32 bits.
-
Undefined Values
----------------