mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
Add isInfinity helper to ConstantFPSDNode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225308 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
42d9f7cf0a
commit
628708ed17
@ -1418,6 +1418,9 @@ public:
|
|||||||
/// isNaN - Return true if the value is a NaN.
|
/// isNaN - Return true if the value is a NaN.
|
||||||
bool isNaN() const { return Value->isNaN(); }
|
bool isNaN() const { return Value->isNaN(); }
|
||||||
|
|
||||||
|
/// isInfinity - Return true if the value is an infinity
|
||||||
|
bool isInfinity() const { return Value->isInfinity(); }
|
||||||
|
|
||||||
/// isExactlyValue - We don't rely on operator== working on double values, as
|
/// isExactlyValue - We don't rely on operator== working on double values, as
|
||||||
/// it returns true for things that are clearly not equal, like -0.0 and 0.0.
|
/// it returns true for things that are clearly not equal, like -0.0 and 0.0.
|
||||||
/// As such, this method can be used to do an exact bit-for-bit comparison of
|
/// As such, this method can be used to do an exact bit-for-bit comparison of
|
||||||
|
Loading…
Reference in New Issue
Block a user