LLVM API Documentation
#include <SelectionDAGNodes.h>
Inheritance diagram for llvm::ConstantFPSDNode:
Public Member Functions | |
double | getValue () const |
bool | isExactlyValue (double V) const |
Static Public Member Functions | |
static bool | classof (const ConstantFPSDNode *) |
static bool | classof (const SDNode *N) |
Protected Member Functions | |
ConstantFPSDNode (bool isTarget, double val, MVT::ValueType VT) | |
Friends | |
class | SelectionDAG |
Definition at line 1102 of file SelectionDAGNodes.h.
llvm::ConstantFPSDNode::ConstantFPSDNode | ( | bool | isTarget, | |
double | val, | |||
MVT::ValueType | VT | |||
) | [inline, protected] |
Definition at line 1106 of file SelectionDAGNodes.h.
static bool llvm::ConstantFPSDNode::classof | ( | const SDNode * | N | ) | [inline, static] |
Reimplemented from llvm::SDNode.
Definition at line 1121 of file SelectionDAGNodes.h.
References llvm::ISD::ConstantFP, llvm::SDNode::getOpcode(), and llvm::ISD::TargetConstantFP.
static bool llvm::ConstantFPSDNode::classof | ( | const ConstantFPSDNode * | ) | [inline, static] |
Definition at line 1120 of file SelectionDAGNodes.h.
double llvm::ConstantFPSDNode::getValue | ( | ) | const [inline] |
bool ConstantFPSDNode::isExactlyValue | ( | double | V | ) | const |
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. As such, this method can be used to do an exact bit-for-bit comparison of two floating point values.
Definition at line 65 of file SelectionDAG.cpp.
References llvm::DoubleToBits().
friend class SelectionDAG [friend] |