types

Hi
    I have a question abt type information such as unsigned/signed. I
find that the information is not retained in the intermediate form and
if needed conversions are generated. So if I needed to generate
different instructions for signed/unsigned, is that possible ?

thanks
shrey

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

thanks. One question - Isnt it needed for other arithmetic operations
such as add etc ?

shrey

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