[LLVMdev] @llvm.memset.* documentation
Jean-Paul Kogelman
jeanpaulkogelman at me.com
Sat Feb 27 00:53:32 PST 2010
Hi everyone,
I was looking at the @llvm.memset.* documentation and something seemed a bit off. The <len> argument type seems wrong. It's the same as the <val> type, but it would seem to me that only being able to memset 255 bytes in an i8 array is a bit limiting. :)
declare void @llvm.memset.i8(i8 * <dest>, i8 <val>, i8 <len>, i32 <align>)
declare void @llvm.memset.i16(i8 * <dest>, i8 <val>, i16 <len>, i32 <align>)
declare void @llvm.memset.i32(i8 * <dest>, i8 <val>, i32 <len>, i32 <align>)
declare void @llvm.memset.i64(i8 * <dest>, i8 <val>, i64 <len>, i32 <align>)
It takes i32 for <len> just fine btw.
Cheers,
Jean-Paul Kogelman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100227/7d142133/attachment.html>
More information about the llvm-dev
mailing list