[llvm-commits] [llvm] r102740 - /llvm/trunk/docs/LangRef.html
David Chisnall
csdavec at swan.ac.uk
Fri Apr 30 12:23:49 PDT 2010
Author: theraven
Date: Fri Apr 30 14:23:49 2010
New Revision: 102740
URL: http://llvm.org/viewvc/llvm-project?rev=102740&view=rev
Log:
Added a brief explanation of @llvm.global_{c,d}tors.
Modified:
llvm/trunk/docs/LangRef.html
Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=102740&r1=102739&r2=102740&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Fri Apr 30 14:23:49 2010
@@ -2796,8 +2796,12 @@
</div>
<div class="doc_text">
-
-<p>TODO: Describe this.</p>
+<pre>
+%0 = type { i32, void ()* }
+ at llvm.global_ctors = appending global [1 x %0] [%0 { i32 65535, void ()* @dtor }]
+</pre>
+<p>The <tt>@llvm.global_ctors</tt> array contains a list of constructor functions and associated priorities. 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.
+</p>
</div>
@@ -2807,8 +2811,13 @@
</div>
<div class="doc_text">
+<pre>
+%0 = type { i32, void ()* }
+ at llvm.global_dtors = appending global [1 x %0] [%0 { i32 65535, void ()* @ctor }]
+</pre>
-<p>TODO: Describe this.</p>
+<p>The <tt>@llvm.global_dtors</tt> array contains a list of destructor functions and associated priorities. The functions referenced by this array will be called in descending order of priority (i.e. highest first) when the module is loaded. The order of functions with the same priority is not defined.
+</p>
</div>
More information about the llvm-commits
mailing list