Make isNegative() a const function since it doesn't modify the APInt.