[LLVMdev] Small problem with intrinsics

Duncan Sands baldrick at free.fr
Mon Apr 21 08:39:47 PDT 2008


> I'm getting the impression that I'm misunderstanding something about 
> intrinsics. I have the following reduced testcase in mind:
> declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) nounwind
> define void @foo(i8* %a, i8* %b, i32 %c, i32 %d) {
> entry:
>   ;call void @llvm.memcpy.i32( i8* %a, i8* %b, i32 %c, i32 %d )

I'm pretty sure that the alignment argument has to be a constant.



More information about the llvm-dev mailing list