diff --git a/docs/LangRef.html b/docs/LangRef.html index 751efa1b855..67eb21ee975 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -125,6 +125,9 @@
+ 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. +
+ +