class ConstantFPSDNode

Declaration

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

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

Inherits from: SDNode

Member Variables

Inherited from SDNode:

protected
public PersistentId

Method Overview

Inherited from SDNode:

Inherited from FoldingSetBase::Node:

Methods

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

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

Parameters

const llvm::SDNode* N

const llvm::ConstantFP* getConstantFPValue() const

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

const llvm::APFloat& getValueAPF() const

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

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:1639

Parameters

double V

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

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

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:1626

bool isNaN() const

Description

Return true if the value is a NaN.

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

bool isNegative() const

Description

Return true if the value is negative.

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

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

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

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:1620