From a5173381e96dd83190dff90f6585aa20fe42009a Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 4 Jan 2007 16:43:23 +0000 Subject: [PATCH] Clean up usage of "unsigned" and "signed" in the documentation to indicate only that specific instructions regard their operands as signed and unsigned not that the operands *are* signed or unsigned. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32874 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index 3ebb1396f97..9f97a4685e9 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -857,12 +857,12 @@ be any type with a size.

[40 x i32 ]
[41 x i32 ]
- [40 x i32]
+ [40 x i8]
- Array of 40 integer values.
- Array of 41 integer values.
- Array of 40 unsigned integer values.
+ Array of 40 32-bit integer values.
+ Array of 41 32-bit integer values.
+ Array of 40 8-bit integer values.
@@ -872,12 +872,12 @@ be any type with a size.

[3 x [4 x i32]]
[12 x [10 x float]]
- [2 x [3 x [4 x i32]]]
+ [2 x [3 x [4 x i16]]]
- 3x4 array of integer values.
+ 3x4 array of 32-bit integer values.
12x10 array of single precision floating point values.
- 2x3x4 array of unsigned integer values.
+ 2x3x4 array of 16-bit integer values.
@@ -927,7 +927,7 @@ Variable argument functions can access their arguments with the i32 (i8*, ...) A vararg function that takes at least one - pointer to i8 (signed char in C), + pointer to i8 (char in C), which returns an integer. This is the signature for printf in LLVM. @@ -1054,12 +1054,12 @@ be any integral or floating point type.

<4 x i32>
<8 x float>
- <2 x i32>
+ <2 x i64>
- Packed vector of 4 integer values.
+ Packed vector of 4 32-bit integer values.
Packed vector of 8 floating-point values.
- Packed vector of 2 unsigned integer values.
+ Packed vector of 2 64-bit integer values.
@@ -1123,7 +1123,7 @@ them all and their syntax.

Integer constants
Standard integers (such as '4') are constants of the integer type. Negative numbers may be used with signed + href="#t_integer">integer type. Negative numbers may be used with integer types.
@@ -1770,8 +1770,9 @@ Both arguments must have identical types.

Semantics:

The value produced is the integer or floating point product of the two operands.

-

There is no signed vs unsigned multiplication. The appropriate -action is taken based on the type of the operand.

+

Because the operands are the same width, the result of an integer +multiplication is the same whether the operands should be deemed unsigned or +signed.

Example:
  <result> = mul i32 4, %var          ; yields {i32}:result = 4 * %var
 
@@ -2127,9 +2128,9 @@ operand shifted to the right a specified number of bits.

href="#t_integer">integer type. The second argument must be an 'i8' type.

Semantics:
-

This instruction always performs a logical shift right operation, regardless -of whether the arguments are unsigned or not. The var2 most significant -bits will be filled with zero bits after the shift.

+

This instruction always performs a logical shift right operation. The +var2 most significant bits will be filled with zero bits after the +shift.

Example:
@@ -4387,7 +4388,7 @@ value.
 
 

The only argument is the value to be counted. The argument may be of any -unsigned integer type. The return type must match the argument type. +integer type. The return type must match the argument type.

Semantics:
@@ -4423,7 +4424,7 @@ leading zeros in a variable.

The only argument is the value to be counted. The argument may be of any -unsigned integer type. The return type must match the argument type. +integer type. The return type must match the argument type.

Semantics:
@@ -4463,7 +4464,7 @@ trailing zeros.

The only argument is the value to be counted. The argument may be of any -unsigned integer type. The return type must match the argument type. +integer type. The return type must match the argument type.

Semantics: