LLVM API Documentation

llvm::ConstantFPSDNode Class Reference

#include <SelectionDAGNodes.h>

Inheritance diagram for llvm::ConstantFPSDNode:

Inheritance graph
[legend]
Collaboration diagram for llvm::ConstantFPSDNode:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Definition at line 1102 of file SelectionDAGNodes.h.


Constructor & Destructor Documentation

llvm::ConstantFPSDNode::ConstantFPSDNode ( bool  isTarget,
double  val,
MVT::ValueType  VT 
) [inline, protected]

Definition at line 1106 of file SelectionDAGNodes.h.


Member Function Documentation

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]

Definition at line 1112 of file SelectionDAGNodes.h.

Referenced by llvm::SelectionDAG::getNode().

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().


Friends And Related Function Documentation

friend class SelectionDAG [friend]

Reimplemented from llvm::SDNode.

Definition at line 1105 of file SelectionDAGNodes.h.


The documentation for this class was generated from the following files: