NaNs and Infinities

Hello!

How can I test if floating-point value is NaN or positive/negative infinity?

Floating point is handled in APFloat. isNaN and isInfinity are there.