diff options
-rw-r--r-- | docs/LangRef.html | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index c1bfe743a5..cf5ee06cf4 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -734,9 +734,9 @@ a power of 2.</p> <h5>Syntax:</h5> <div class="doc_code"> - <pre> +<pre> @<Name> = [Linkage] [Visibility] alias <AliaseeTy> @<Aliasee> - </pre> +</pre> </div> </div> @@ -1961,7 +1961,8 @@ Both arguments must have identical types.</p> <p>The value produced is the integer or floating point difference of the two operands.</p> <h5>Example:</h5> -<pre> <result> = sub i32 4, %var <i>; yields {i32}:result = 4 - %var</i> +<pre> + <result> = sub i32 4, %var <i>; yields {i32}:result = 4 - %var</i> <result> = sub i32 0, %val <i>; yields {i32}:result = -%var</i> </pre> </div> @@ -2607,11 +2608,11 @@ a pointer is returned.</p> <pre> %array = malloc [4 x i8 ] <i>; yields {[%4 x i8]*}:array</i> - %size = <a href="#i_add">add</a> i32 2, 2 <i>; yields {i32}:size = i32 4</i> - %array1 = malloc i8, i32 4 <i>; yields {i8*}:array1</i> - %array2 = malloc [12 x i8], i32 %size <i>; yields {[12 x i8]*}:array2</i> - %array3 = malloc i32, i32 4, align 1024 <i>; yields {i32*}:array3</i> - %array4 = malloc i32, align 1024 <i>; yields {i32*}:array4</i> + %size = <a href="#i_add">add</a> i32 2, 2 <i>; yields {i32}:size = i32 4</i> + %array1 = malloc i8, i32 4 <i>; yields {i8*}:array1</i> + %array2 = malloc [12 x i8], i32 %size <i>; yields {[12 x i8]*}:array2</i> + %array3 = malloc i32, i32 4, align 1024 <i>; yields {i32*}:array3</i> + %array4 = malloc i32, align 1024 <i>; yields {i32*}:array4</i> </pre> </div> |