1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

add a predicate.

llvm-svn: 51842
This commit is contained in:
Chris Lattner 2008-06-01 18:09:04 +00:00
parent 4cdd9d48ac
commit 0e6bb31def

View File

@ -244,6 +244,7 @@ namespace llvm {
bool isZero() const { return category == fcZero; }
bool isNonZero() const { return category != fcZero; }
bool isNaN() const { return category == fcNaN; }
bool isInfinity() const { return category == fcInfinity; }
bool isNegative() const { return sign; }
bool isPosZero() const { return isZero() && !isNegative(); }
bool isNegZero() const { return isZero() && isNegative(); }