[LLVMdev] Incompatible types at call site

Arushi Aggarwal arushi987 at gmail.com
Tue Apr 5 10:53:58 PDT 2011


 %tmp63 = call %struct.TypHeader* (...)* bitcast (%struct.TypHeader*
(%struct.TypHeader*, i64, i64)* @Cyclotomic to %struct.TypHeader*
(...)*)(%struct.TypHeader* %tmp62, i64 %tmp24, i32 1) nounwind, !dbg !907 ;
<%struct.TypHeader*> [#uses=1]

the 3rd parameter is now used in an srem statement. How do we know what
value is used? Does this use decide whether the value is sign extended or
zero extended?

Arushi

On Tue, Apr 5, 2011 at 1:35 AM, Duncan Sands <baldrick at free.fr> wrote:

> Hi Arushi,
>
> > For a call like this,
> >
> > %tmp6 = call i32 (...)* bitcast (i32 (i8*, i8, i8**)* @ssplit to i32
> (...)*)(i8*
> > %tmp599, i32 46, i8** %domainv3) nounwind ; <i32>
> >
> > does the 2nd argument get zero extended or sign extended?
>
> neither since it does not have the zext or sext attribute.
>
> Ciao, Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110405/49028314/attachment.html>


More information about the llvm-dev mailing list