From 0e6bb31def997936d9ae90698fbbe87faa426cdf Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 1 Jun 2008 18:09:04 +0000 Subject: [PATCH] add a predicate. llvm-svn: 51842 --- include/llvm/ADT/APFloat.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/llvm/ADT/APFloat.h b/include/llvm/ADT/APFloat.h index 411d8add25f..b3d3a061e5f 100644 --- a/include/llvm/ADT/APFloat.h +++ b/include/llvm/ADT/APFloat.h @@ -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(); }