diff --git a/docs/LangRef.html b/docs/LangRef.html index 7dc743f7139..f3f82d9d212 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -125,9 +125,6 @@
  • Code Generator Intrinsics
      -
    1. 'llvm.bswap.i16' Intrinsic
    2. -
    3. 'llvm.bswap.i32' Intrinsic
    4. -
    5. 'llvm.bswap.i64' Intrinsic
    6. 'llvm.returnaddress' Intrinsic
    7. 'llvm.frameaddress' Intrinsic
    8. 'llvm.stacksave' Intrinsic
    9. @@ -154,8 +151,9 @@
  • -
  • Bit counting Intrinsics +
  • Bit Manipulation Intrinsics
      +
    1. 'llvm.bswap.*' Intrinsics
    2. 'llvm.ctpop' Intrinsic
    3. 'llvm.ctlz' Intrinsic
    4. 'llvm.cttz' Intrinsic
    5. @@ -2705,93 +2703,6 @@ be implemented with code generator support. - - - -
      - -
      Syntax:
      -
      -  declare ushort %llvm.bswap.i16( ushort <id> )
      -
      - -
      Overview:
      - -

      -The 'llvm.bwsap.i16' intrinsic is used to byteswap a 16 bit quantity. -This is useful for performing operations on data that is not in the target's -native byte order. -

      - -
      Semantics:
      - -

      -This intrinsic returns a ushort value that has the two bytes of the input ushort -swapped. -

      - -
      - - - - -
      - -
      Syntax:
      -
      -  declare uint %llvm.bswap.i32( uint <id> )
      -
      - -
      Overview:
      - -

      -The 'llvm.bwsap.i32' intrinsic is used to byteswap a 32 bit quantity. -This is useful for performing operations on data that is not in the target's -native byte order. -

      - -
      Semantics:
      - -

      -This intrinsic returns a uint value that has the four bytes of the input uint -swapped, so that if the input bytes are numbered 0, 1, 2, 3 then the returned -uint will have its bytes in 3, 2, 1, 0 order. -

      - -
      - - - - -
      - -
      Syntax:
      -
      -  declare ulong %llvm.bswap.i64( ulong <id> )
      -
      - -
      Overview:
      - -

      -The 'llvm.bwsap.i64' intrinsic is used to byteswap a 64 bit quantity. -This is useful for performing operations on data that is not in the target's -native byte order. -

      - -
      Semantics:
      - -

      -See the description for llvm.bswap.i32. -

      - -
      -
      'llvm.returnaddress' Intrinsic @@ -3499,17 +3410,52 @@ floating point number.

      -LLVM provides intrinsics for a few important bit counting operations. +LLVM provides intrinsics for a few important bit manipulation operations. These allow efficient code generation for some algorithms.

      + + + +
      + +
      Syntax:
      +
      +  declare ushort %llvm.bswap.i16( ushort <id> )
      +  declare uint %llvm.bswap.i32( uint <id> )
      +  declare ulong %llvm.bswap.i64( ulong <id> )
      +
      + +
      Overview:
      + +

      +The 'llvm.bwsap' family of intrinsics is used to byteswap a 16, 32 or +64 bit quantity. These are useful for performing operations on data that is not +in the target's native byte order. +

      + +
      Semantics:
      + +

      +The llvm.bswap.16 intrinsic returns a ushort value that has the high and low +byte of the input ushort swapped. Similarly, the llvm.bswap.i32 intrinsic +returns a uint value that has the four bytes of the input uint swapped, so that +if the input bytes are numbered 0, 1, 2, 3 then the returned uint will have its +bytes in 3, 2, 1, 0 order. The llvm.bswap.i64 intrinsic extends this concept +to 64 bits. +

      + +
      +