diff options
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r-- | llvm/docs/LangRef.rst | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index dc6350c5520..e7c2888cd0d 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -641,8 +641,9 @@ assume that the globals are densely packed in their section and try to iterate over them as an array, alignment padding would break this iteration. The maximum alignment is ``1 << 29``. -Globals can also have a :ref:`DLL storage class <dllstorageclass>` and -an optional list of attached :ref:`metadata <metadata>`, +Globals can also have a :ref:`DLL storage class <dllstorageclass>`, +an optional :ref:`global attributes <glattrs>` and +an optional list of attached :ref:`metadata <metadata>`. Variables and aliases can have a :ref:`Thread Local Storage Model <tls_model>`. @@ -1624,6 +1625,14 @@ example: the ELF x86-64 abi, but it can be disabled for some compilation units. +.. _glattrs: + +Global Attributes +----------------- + +Attributes may be set to communicate additional information about a global variable. +Unlike :ref:`function attributes <fnattrs>`, attributes on a global variable +are grouped into a single :ref:`attribute group <attrgrp>`. .. _opbundles: |