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 @@
- declare ushort %llvm.bswap.i16( ushort <id> ) -- -
-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. -
- --This intrinsic returns a ushort value that has the two bytes of the input ushort -swapped. -
- -- declare uint %llvm.bswap.i32( uint <id> ) -- -
-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. -
- --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. -
- -- declare ulong %llvm.bswap.i64( ulong <id> ) -- -
-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. -
- --See the description for llvm.bswap.i32. -
- --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.
+ declare ushort %llvm.bswap.i16( ushort <id> ) + declare uint %llvm.bswap.i32( uint <id> ) + declare ulong %llvm.bswap.i64( ulong <id> ) ++ +
+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. +
+ ++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. +
+ +