aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/BitCodeFormat.rst
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2016-05-17 22:30:58 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2016-05-17 22:30:58 +0000
commit62b5b73eaf49900131dc81f4c71d59106a8bcc90 (patch)
tree79df205bca6bfb8684511ae8f8f3e26222de8717 /llvm/docs/BitCodeFormat.rst
parent924acb50c9d529d03ef14c8cffeef6effa50d9d0 (diff)
downloadllvm-62b5b73eaf49900131dc81f4c71d59106a8bcc90.zip
llvm-62b5b73eaf49900131dc81f4c71d59106a8bcc90.tar.gz
llvm-62b5b73eaf49900131dc81f4c71d59106a8bcc90.tar.bz2
docs: Update and clean up BitCodeFormat.rst.
llvm-svn: 269857
Diffstat (limited to 'llvm/docs/BitCodeFormat.rst')
-rw-r--r--llvm/docs/BitCodeFormat.rst15
1 files changed, 14 insertions, 1 deletions
diff --git a/llvm/docs/BitCodeFormat.rst b/llvm/docs/BitCodeFormat.rst
index 8c56e3f..edab66e 100644
--- a/llvm/docs/BitCodeFormat.rst
+++ b/llvm/docs/BitCodeFormat.rst
@@ -690,6 +690,7 @@ global variable. The operand fields are:
.. _linkage type:
* *linkage*: An encoding of the linkage type for this variable:
+
* ``external``: code 0
* ``weak``: code 1
* ``appending``: code 2
@@ -714,12 +715,16 @@ global variable. The operand fields are:
.. _visibility:
* *visibility*: If present, an encoding of the visibility of this variable:
+
* ``default``: code 0
* ``hidden``: code 1
* ``protected``: code 2
+.. _bcthreadlocal:
+
* *threadlocal*: If present, an encoding of the thread local storage mode of the
variable:
+
* ``not thread local``: code 0
* ``thread local; default TLS model``: code 1
* ``localdynamic``: code 2
@@ -737,6 +742,8 @@ global variable. The operand fields are:
* ``dllimport``: code 1
* ``dllexport``: code 2
+* *comdat*: An encoding of the COMDAT of this function
+
.. _FUNCTION:
MODULE_CODE_FUNCTION Record
@@ -804,7 +811,7 @@ function. The operand fields are:
MODULE_CODE_ALIAS Record
^^^^^^^^^^^^^^^^^^^^^^^^
-``[ALIAS, alias type, aliasee val#, linkage, visibility, dllstorageclass]``
+``[ALIAS, alias type, aliasee val#, linkage, visibility, dllstorageclass, threadlocal, unnamed_addr]``
The ``ALIAS`` record (code 9) marks the definition of an alias. The operand
fields are
@@ -820,6 +827,12 @@ fields are
* *dllstorageclass*: If present, an encoding of the
:ref:`dllstorageclass<bcdllstorageclass>` of the alias
+* *threadlocal*: If present, an encoding of the
+ :ref:`thread local property<bcthreadlocal>` of the alias
+
+* *unnamed_addr*: If present and non-zero, indicates that the alias has
+ ``unnamed_addr``
+
MODULE_CODE_PURGEVALS Record
^^^^^^^^^^^^^^^^^^^^^^^^^^^^