class ConstantFPSDNode

Declaration

class ConstantFPSDNode : public SDNode { /* full declaration omitted */ };

Description

Represents one node in the SelectionDAG.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1618

Inherits from: SDNode

Member Variables

private const llvm::ConstantFP* Value

Inherited from SDNode:

protected
public PersistentId

Method Overview

Inherited from SDNode:

Inherited from FoldingSetBase::Node:

Methods

ConstantFPSDNode(bool isTarget,
                 const llvm::ConstantFP* val,
                 llvm::EVT VT)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1623

Parameters

bool isTarget
const llvm::ConstantFP* val
llvm::EVT VT

static bool classof(const llvm::SDNode* N)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1659

Parameters

const llvm::SDNode* N

const llvm::ConstantFP* getConstantFPValue() const

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1630

const llvm::APFloat& getValueAPF() const

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1629

bool isExactlyValue(double V) const

Description

We leave the version with the double argument here because it's just so convenient to write "2.0" and the like. Without this function we'd have to duplicate its logic everywhere it's called.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1652

Parameters

double V

bool isExactlyValue(const llvm::APFloat& V) const

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1655

Parameters

const llvm::APFloat& V

bool isInfinity() const

Description

Return true if the value is an infinity

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1639

bool isNaN() const

Description

Return true if the value is a NaN.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1636

bool isNegative() const

Description

Return true if the value is negative.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1642

static bool isValueValidForType(
    llvm::EVT VT,
    const llvm::APFloat& Val)

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1657

Parameters

llvm::EVT VT
const llvm::APFloat& Val

bool isZero() const

Description

Return true if the value is positive or negative zero.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1633