[LLVMdev] signed/unsigned integers ?
Duncan Sands
baldrick at free.fr
Tue Mar 29 05:25:20 PDT 2011
Hi Julien,
> I'm trying to know if an llvm::Value Object is signed or unsigned (when
> its Type is integer).
> I don't find where this information is located.
> Do you have an idea ?
this information does not exist: integer types are not signed or unsigned.
Instead, operations on integers that work differently depending on the sign
have signed and unsigned versions in LLVM. For example LLVM has both udiv
and sdiv instructions (unsigned and signed divisions).
Ciao, Duncan.
More information about the llvm-dev
mailing list