add a nice predicate to check to see if nan

llvm-svn: 43304
This commit is contained in:
Chris Lattner 2007-10-24 18:54:28 +00:00
parent b67e596d86
commit b6ed689722
1 changed files with 1 additions and 0 deletions

View File

@ -232,6 +232,7 @@ namespace llvm {
const fltSemantics &getSemantics() const { return *semantics; }
bool isZero() const { return category == fcZero; }
bool isNonZero() const { return category != fcZero; }
bool isNaN() const { return category == fcNaN; }
bool isNegative() const { return sign; }
bool isPosZero() const { return isZero() && !isNegative(); }
bool isNegZero() const { return isZero() && isNegative(); }