[LLVMdev] Intrinsic prototype has incorrect number of arguments!
F van der Meeren
llvm-dev at code2develop.com
Tue Sep 7 12:01:03 PDT 2010
No it shouldn't be, the LLVM assembly language reference manual declares it at follows:
declare void @llvm.memcpy.p0i8.p0i8.i32(i8* <dest>, i8* <src>,
i32 <len>, i32 <align>, i1 <isvolatile>)
On 07 Sep 2010, at 20:38, Bill Wendling wrote:
>
> On Sep 7, 2010, at 8:03 AM, F van der Meeren wrote:
>
>> Hello,
>>
>> I have a question, what is wrong with the following code?
>>
>> declare void @llvm.memcpy.p0i64.p0i64.i8(i64*, i64*, i8, i32, i1) nounwind
>>
>> ...
>>
>> call void @llvm.memcpy.p0i64.p0i64.i8(i64* %19, i64* %21, i8 %17, i32 0, i1 false)
>>
>> ...
>>
>>
>> According to the compiler this is the error, but I seem to miss where exactly my fault is.
>>
>> Intrinsic prototype has incorrect number of arguments!
>> void (i64*, i64*, i8, i32, i1)* @llvm.memcpy.p0i64.p0i64.i8
>>
>> Any help would be appreciated.
>>
> The third parameter should be a pointer.
>
> -bw
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100907/36a28409/attachment.html>
More information about the llvm-dev
mailing list