diff options
| author | Chris Lattner <sabre@nondot.org> | 2011-08-12 17:31:02 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2011-08-12 17:31:02 +0000 |
| commit | 190552d3e0e11f8d0101e7cc26952a27bc2e4f99 (patch) | |
| tree | 28045d5b17e2d92de5d66692e7f9448b3bca81b0 /llvm/docs | |
| parent | 45fc2a6a9b9e587b9a8fb4ad0e6444a315d47ab0 (diff) | |
| download | bcm5719-llvm-190552d3e0e11f8d0101e7cc26952a27bc2e4f99.tar.gz bcm5719-llvm-190552d3e0e11f8d0101e7cc26952a27bc2e4f99.zip | |
add new accessors to reflect new terminology in struct types.
llvm-svn: 137468
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/LangRef.html | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index b20f085176e..8190e7dc8dd 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/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 { <type list> } <i>; Named normal struct type</i> - %T2 = type <{ <type list> }> <i>; Named packed struct type</i> + %T1 = type { <type list> } <i>; Identified normal struct type</i> + %T2 = type <{ <type list> }> <i>; Identified packed struct type</i> </pre> <h5>Examples:</h5> |

