[LLVMdev] signed/unsigned integers ?

Anton Korobeynikov anton at korobeynikov.info
Tue Mar 29 05:28:53 PDT 2011


Hello

> 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 ?
Values cannot be signed or unsigned since they represent some object
in memory / register. It's the operation which says whether the value
should be treated as signed or not.

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the llvm-dev mailing list