[llvm-commits] CVS: llvm/docs/LangRef.html

Chris Lattner lattner at cs.uiuc.edu
Fri Nov 11 16:45:18 PST 2005



Changes in directory llvm/docs:

LangRef.html updated: 1.117 -> 1.118
---
Log message:

document sections


---
Diffs of the changes:  (+11 -4)

 LangRef.html |   15 +++++++++++----
 1 files changed, 11 insertions(+), 4 deletions(-)


Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.117 llvm/docs/LangRef.html:1.118
--- llvm/docs/LangRef.html:1.117	Fri Nov 11 10:46:55 2005
+++ llvm/docs/LangRef.html	Fri Nov 11 18:45:07 2005
@@ -495,7 +495,8 @@
 <div class="doc_text">
 
 <p>Global variables define regions of memory allocated at compilation time
-instead of run-time.  Global variables may optionally be initialized, and may
+instead of run-time.  Global variables may optionally be initialized, may have
+an explicit section to be placed in, and may
 have an optional explicit alignment specified.  A
 variable may be defined as a global "constant," which indicates that the
 contents of the variable will <b>never</b> be modified (enabling better
@@ -518,6 +519,9 @@
 describe a region of memory, and all memory objects in LLVM are
 accessed through pointers.</p>
 
+<p>LLVM allows an explicit section to be specified for globals.  If the target
+supports it, it will emit globals to the section specified.</p>
+
 <p>An explicit alignment may be specified for a global.  If not present, or if
 the alignment is set to zero, the alignment of the global is set by the target
 to whatever it feels convenient.  If an explicit alignment is specified, the 
@@ -536,8 +540,8 @@
 
 <p>LLVM function definitions consist of an optional <a href="#linkage">linkage
 type</a>, an optional <a href="#callingconv">calling convention</a>, a return
-type, a function name, a (possibly empty) argument list, an optional alignment,
-an opening curly brace,
+type, a function name, a (possibly empty) argument list, an optional section,
+an optional alignment, an opening curly brace,
 a list of basic blocks, and a closing curly brace.  LLVM function declarations
 are defined with the "<tt>declare</tt>" keyword, an optional <a
 href="#callingconv">calling convention</a>, a return type, a function name,
@@ -560,6 +564,9 @@
 considered different functions, and LLVM will resolve references to each
 appropriately.</p>
 
+<p>LLVM allows an explicit section to be specified for functions.  If the target
+supports it, it will emit functions to the section specified.</p>
+
 <p>An explicit alignment may be specified for a function.  If not present, or if
 the alignment is set to zero, the alignment of the function is set by the target
 to whatever it feels convenient.  If an explicit alignment is specified, the
@@ -3422,7 +3429,7 @@
 
   <a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
   <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2005/11/11 16:46:55 $
+  Last modified: $Date: 2005/11/12 00:45:07 $
 </address>
 </body>
 </html>






More information about the llvm-commits mailing list