summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/LangRef.rst8
-rw-r--r--llvm/docs/ReleaseNotes.rst4
2 files changed, 8 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 0c1d87bc915..f9232e0b483 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -6482,12 +6482,12 @@ The '``llvm.global_ctors``' Global Variable
@llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @ctor, i8* @data }]
The ``@llvm.global_ctors`` array contains a list of constructor
-functions, priorities, and an optional associated global or function.
+functions, priorities, and an associated global or function.
The functions referenced by this array will be called in ascending order
of priority (i.e. lowest first) when the module is loaded. The order of
functions with the same priority is not defined.
-If the third field is present, non-null, and points to a global variable
+If the third field is non-null, and points to a global variable
or function, the initializer function will only run if the associated
data from the current module is not discarded.
@@ -6502,12 +6502,12 @@ The '``llvm.global_dtors``' Global Variable
@llvm.global_dtors = appending global [1 x %0] [%0 { i32 65535, void ()* @dtor, i8* @data }]
The ``@llvm.global_dtors`` array contains a list of destructor
-functions, priorities, and an optional associated global or function.
+functions, priorities, and an associated global or function.
The functions referenced by this array will be called in descending
order of priority (i.e. highest first) when the module is unloaded. The
order of functions with the same priority is not defined.
-If the third field is present, non-null, and points to a global variable
+If the third field is non-null, and points to a global variable
or function, the destructor function will only run if the associated
data from the current module is not discarded.
diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst
index 60058fd8590..95fd43940b7 100644
--- a/llvm/docs/ReleaseNotes.rst
+++ b/llvm/docs/ReleaseNotes.rst
@@ -62,6 +62,10 @@ Changes to the LLVM IR
parameter is required to be a simple constant. This annotation must
be accurate to avoid possible miscompiles.
+* The 2-field form of global variables ``@llvm.global_ctors`` and
+ ``@llvm.global_dtors`` has been deleted. The third field of their element
+ type is now mandatory. Specify `i8* null` to migrate from the obsoleted
+ 2-field form.
Changes to the ARM Backend
--------------------------
OpenPOWER on IntegriCloud