From 485bad1a09550e2ec182a78dba0ed97bf1d9f5ae Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 15 Feb 2007 03:07:05 +0000 Subject: [PATCH] For PR1195: Packed -> Vector git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34296 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 54 ++++++++++++++++++------------------- docs/ProgrammersManual.html | 6 ++--- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/docs/LangRef.html b/docs/LangRef.html index a159d28b2fd..adf6e7f085f 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -42,7 +42,7 @@
  • Pointer Type
  • Structure Type
  • Packed Structure Type
  • -
  • Packed Type
  • +
  • Vector Type
  • Opaque Type
  • @@ -844,7 +844,7 @@ classifications:

    first class i1, i8, i16, i32, i64, float, double,
    - pointer,packed
    + pointer,vector @@ -1063,17 +1063,17 @@ reference to another object, which must live in memory.

    -
    Packed Type
    +
    Vector Type
    Overview:
    -

    A packed type is a simple derived type that represents a vector -of elements. Packed types are used when multiple primitive data +

    A vector type is a simple derived type that represents a vector +of elements. Vector types are used when multiple primitive data are operated in parallel using a single instruction (SIMD). -A packed type requires a size (number of +A vector type requires a size (number of elements) and an underlying primitive data type. Vectors must have a power -of two length (1, 2, 4, 8, 16 ...). Packed types are +of two length (1, 2, 4, 8, 16 ...). Vector types are considered first class.

    Syntax:
    @@ -1095,9 +1095,9 @@ be any integer or floating point type.

    <2 x i64>
    - Packed vector of 4 32-bit integer values.
    - Packed vector of 8 floating-point values.
    - Packed vector of 2 64-bit integer values.
    + Vector of 4 32-bit integer values.
    + Vector of 8 floating-point values.
    + Vector of 2 64-bit integer values.
    @@ -1219,13 +1219,13 @@ and smaller aggregate constants.

    types of elements must match those specified by the type. -
    Packed constants
    +
    Vector constants
    -
    Packed constants are represented with notation similar to packed type +
    Vector constants are represented with notation similar to vector type definitions (a comma separated list of elements, surrounded by less-than/greater-than's (<>)). For example: "< i32 42, - i32 11, i32 74, i32 100 >". Packed constants must have packed type, and the number and types of elements must + i32 11, i32 74, i32 100 >". VEctor constants must have vector type, and the number and types of elements must match those specified by the type.
    @@ -1345,7 +1345,7 @@ following is the syntax for constant expressions:

    identical (same number of bits). The conversion is done as if the CST value was stored to memory and read back as TYPE. In other words, no bits change with this operator, just the type. This can be used for conversion of - packed types to any other type, as long as they have the same bit width. For + vector types to any other type, as long as they have the same bit width. For pointers it is only valid to cast to another pointer type. @@ -1737,7 +1737,7 @@ no-return function cannot be reached, and other facts.

    Binary operators are used to do most of the computation in a program. They require two operands, execute an operation on them, and produce a single value. The operands might represent -multiple data, as is the case with the packed data type. +multiple data, as is the case with the vector data type. The result value of a binary operator is not necessarily the same type as its operands.

    There are several different binary operators:

    @@ -1754,7 +1754,7 @@ Instruction
    Arguments:

    The two arguments to the 'add' instruction must be either integer or floating point values. - This instruction can also take packed versions of the values. + This instruction can also take vector versions of the values. Both arguments must have identical types.

    Semantics:

    The value produced is the integer or floating point sum of the two @@ -1779,7 +1779,7 @@ instruction present in most other intermediate representations.

    The two arguments to the 'sub' instruction must be either integer or floating point values. -This instruction can also take packed versions of the values. +This instruction can also take vector versions of the values. Both arguments must have identical types.

    Semantics:

    The value produced is the integer or floating point difference of @@ -1803,7 +1803,7 @@ operands.

    The two arguments to the 'mul' instruction must be either integer or floating point values. -This instruction can also take packed versions of the values. +This instruction can also take vector versions of the values. Both arguments must have identical types.

    Semantics:

    The value produced is the integer or floating point product of the @@ -1828,7 +1828,7 @@ operands.

    Arguments:

    The two arguments to the 'udiv' instruction must be integer values. Both arguments must have identical -types. This instruction can also take packed versions +types. This instruction can also take vector versions of the values in which case the elements must be integers.

    Semantics:

    The value produced is the unsigned integer quotient of the two operands. This @@ -1851,7 +1851,7 @@ operands.

    Arguments:

    The two arguments to the 'sdiv' instruction must be integer values. Both arguments must have identical -types. This instruction can also take packed versions +types. This instruction can also take vector versions of the values in which case the elements must be integers.

    Semantics:

    The value produced is the signed integer quotient of the two operands. This @@ -1874,7 +1874,7 @@ operands.

    Arguments:

    The two arguments to the 'div' instruction must be floating point values. Both arguments must have -identical types. This instruction can also take packed +identical types. This instruction can also take vector versions of the values in which case the elements must be floating point.

    Semantics:

    The value produced is the floating point quotient of the two operands.

    @@ -2244,7 +2244,7 @@ target.

    The 'extractelement' instruction extracts a single scalar -element from a packed vector at a specified index. +element from a vector at a specified index.

    @@ -2252,7 +2252,7 @@ element from a packed vector at a specified index.

    The first operand of an 'extractelement' instruction is a -value of packed type. The second operand is +value of vector type. The second operand is an index indicating the position from which to extract the element. The index may be a variable.

    @@ -2290,7 +2290,7 @@ results are undefined.

    The 'insertelement' instruction inserts a scalar -element into a packed vector at a specified index. +element into a vector at a specified index.

    @@ -2298,7 +2298,7 @@ element into a packed vector at a specified index.

    The first operand of an 'insertelement' instruction is a -value of packed type. The second operand is a +value of vector type. The second operand is a scalar value whose type must equal the element type of the first operand. The third operand is an index indicating the position at which to insert the value. The index may be a variable.

    @@ -2306,7 +2306,7 @@ which to insert the value. The index may be a variable.

    Semantics:

    -The result is a packed vector of the same type as val. Its +The result is a vector of the same type as val. Its element values are those of val except at position idx, where it gets the value elt. If idx exceeds the length of val, the results are undefined. diff --git a/docs/ProgrammersManual.html b/docs/ProgrammersManual.html index a96a676c600..aa1fe402ff9 100644 --- a/docs/ProgrammersManual.html +++ b/docs/ProgrammersManual.html @@ -2315,9 +2315,9 @@ the lib/VMCore directory.

    PointerType
    Subclass of SequentialType for pointer types.
    VectorType
    -
    Subclass of SequentialType for packed (vector) types. A - packed type is similar to an ArrayType but is distinguished because it is - a first class type wherease ArrayType is not. Packed types are used for +
    Subclass of SequentialType for vector types. A + vector type is similar to an ArrayType but is distinguished because it is + a first class type wherease ArrayType is not. Vector types are used for vector operations and are usually small vectors of of an integer or floating point type.
    StructType
    -- 2.34.1