From ed4ac951e53da24791d34116b9edd4abf2889f1b Mon Sep 17 00:00:00 2001 From: Nate Begeman Date: Fri, 13 Jan 2006 23:02:51 +0000 Subject: Add documentation for the upcoming bswap intrinsics! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25300 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index 751efa1..67eb21e 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -125,6 +125,9 @@
  • 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. @@ -2704,6 +2707,93 @@ 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. +

      + +
      + + + -- cgit v1.1