summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-08-12 17:31:02 +0000
committerChris Lattner <sabre@nondot.org>2011-08-12 17:31:02 +0000
commit2c38d65fd9340b745aeec55acb04819892ed4cb9 (patch)
tree780dc1814aa11e3e54af85d81fd876b7db825d14 /docs
parentb2c4eea9d0df33d2c5e6dcbba6b69ece7463d89d (diff)
downloadllvm-2c38d65fd9340b745aeec55acb04819892ed4cb9.tar.gz
llvm-2c38d65fd9340b745aeec55acb04819892ed4cb9.tar.bz2
llvm-2c38d65fd9340b745aeec55acb04819892ed4cb9.tar.xz
add new accessors to reflect new terminology in struct types.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@137468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r--docs/LangRef.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index b20f085176..8190e7dc8d 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2031,20 +2031,22 @@ in signal handlers).</p>
<p>Structures may optionally be "packed" structures, which indicate that the
alignment of the struct is one byte, and that there is no padding between
- the elements. In non-packed structs, padding between field types is defined
- by the target data string to match the underlying processor.</p>
-
-<p>Structures can either be "anonymous" or "named". An anonymous structure is
- defined inline with other types (e.g. <tt>{i32, i32}*</tt>) and a named types
- are always defined at the top level with a name. Anonmyous types are uniqued
- by their contents and can never be recursive since there is no way to write
- one. Named types can be recursive.
+ the elements. In non-packed structs, padding between field types is inserted
+ as defined by the TargetData string in the module, which is required to match
+ what the underlying processor expects.</p>
+
+<p>Structures can either be "literal" or "identified". A literal structure is
+ defined inline with other types (e.g. <tt>{i32, i32}*</tt>) whereas identified
+ types are always defined at the top level with a name. Literal types are
+ uniqued by their contents and can never be recursive or opaque since there is
+ no way to write one. Named types can be recursive, can be opaqued, and are
+ never uniqued.
</p>
<h5>Syntax:</h5>
<pre>
- %T1 = type { &lt;type list&gt; } <i>; Named normal struct type</i>
- %T2 = type &lt;{ &lt;type list&gt; }&gt; <i>; Named packed struct type</i>
+ %T1 = type { &lt;type list&gt; } <i>; Identified normal struct type</i>
+ %T2 = type &lt;{ &lt;type list&gt; }&gt; <i>; Identified packed struct type</i>
</pre>
<h5>Examples:</h5>