[llvm-commits] CVS: llvm/docs/LangRef.html
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 7 14:14:15 PST 2005
Changes in directory llvm/docs:
LangRef.html updated: 1.89 -> 1.90
---
Log message:
Various cleanups and clarifications, thanks to Gabor Greif for contributing this patch!
---
Diffs of the changes: (+9 -6)
LangRef.html | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.89 llvm/docs/LangRef.html:1.90
--- llvm/docs/LangRef.html:1.89 Mon Mar 7 14:31:38 2005
+++ llvm/docs/LangRef.html Mon Mar 7 16:13:59 2005
@@ -476,7 +476,7 @@
<p>LLVM functions are identified by their name and type signature. Hence, two
functions with the same name but different parameter lists or return values are
-considered different functions, and LLVM will resolves references to each
+considered different functions, and LLVM will resolve references to each
appropriately.</p>
</div>
@@ -503,7 +503,7 @@
<div class="doc_subsection"> <a name="t_primitive">Primitive Types</a> </div>
<div class="doc_text">
<p>The primitive types are the fundamental building blocks of the LLVM
-system. The current set of primitive types are as follows:</p>
+system. The current set of primitive types is as follows:</p>
<table class="layout">
<tr class="layout">
@@ -839,14 +839,17 @@
</div>
<div class="doc_text">
+<p>Aggregate constants arise from aggregation of simple constants
+and smaller aggregate constants.</p>
<dl>
<dt><b>Structure constants</b></dt>
<dd>Structure constants are represented with notation similar to structure
type definitions (a comma separated list of elements, surrounded by braces
- (<tt>{}</tt>)). For example: "<tt>{ int 4, float 17.0 }</tt>". Structure
- constants must have <a href="#t_struct">structure type</a>, and the number and
+ (<tt>{}</tt>)). For example: "<tt>{ int 4, float 17.0, int* %G }</tt>",
+ where "<tt>%G</tt>" is declared as "<tt>%G = external global int</tt>". Structure constants
+ must have <a href="#t_struct">structure type</a>, and the number and
types of elements must match those specified by the type.
</dd>
@@ -1834,7 +1837,7 @@
the LLVM code for the given testcase is equivalent to:</p>
<pre>
- int* "foo"(%ST* %s) {
+ int* %foo(%ST* %s) {
%t1 = getelementptr %ST* %s, int 1 <i>; yields %ST*:%t1</i>
%t2 = getelementptr %ST* %t1, int 0, uint 2 <i>; yields %RT*:%t2</i>
%t3 = getelementptr %RT* %t2, int 0, uint 1 <i>; yields [10 x [20 x int]]*:%t3</i>
@@ -2971,7 +2974,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/03/07 20:31:38 $
+ Last modified: $Date: 2005/03/07 22:13:59 $
</address>
</body>
</html>
More information about the llvm-commits
mailing list