[LLVMdev] types

Eli Friedman eli.friedman at gmail.com
Fri Aug 13 18:06:56 PDT 2010


On Fri, Aug 13, 2010 at 5:48 PM, shreyas krishnan <shreyas76 at gmail.com> wrote:
> thanks. One question - Isnt it needed for other arithmetic operations
> such as add etc ?

Two's complement wrapping signed addition and unsigned addition are
functionally the same operation, so they share the same LLVM
instruction.

-Eli

> shrey
>
> On Fri, Aug 13, 2010 at 10:36 AM, Anton Korobeynikov
> <anton at korobeynikov.info> wrote:
>> Hello
>>
>>> if needed conversions are generated. So if  I needed to generate
>>> different instructions for signed/unsigned, is that possible ?
>> Yes, see e.g. http://llvm.org/docs/LangRef.html#i_udiv
>>
>> --
>> With best regards, Anton Korobeynikov
>> Faculty of Mathematics and Mechanics, Saint Petersburg State University
>>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>




More information about the llvm-dev mailing list