[LLVMdev] APInt, signed or unsigned? operator '>'

Chris Lattner clattner at apple.com
Thu Oct 6 10:49:42 PDT 2011


On Oct 6, 2011, at 10:42 AM, Stepan Dyatkovskiy wrote:

> Hi all.
> How to determine is APInt object signed or not? I also can't found any 
> universal comparison methods for APInt instances for case where each of 
> them may be signed or unsigned.

Hi Stepan,

APInt's don't have a sign, they are just a bag of bits.

-Chris



More information about the llvm-dev mailing list