Inferno  0.2
CPPTree::SpecificFloat Struct Reference

Property node for a specific floating point value. More...

#include <cpptree.hpp>

Inheritance diagram for CPPTree::SpecificFloat:
[legend]
Collaboration diagram for CPPTree::SpecificFloat:
[legend]

List of all members.

Public Member Functions

NODE_FUNCTIONS_FINAL SpecificFloat ()
 default constructor, for making architypes
 SpecificFloat (llvm::APFloat v)
virtual bool IsLocalMatch (const Matcher *candidate) const
 Construct with an LLVM-style float.
virtual operator string () const
 Produce a string for debug.

Detailed Description

Property node for a specific floating point value.

We use LLVM's class for this, so that we can deal with any representation convention. The value must always be filled in. To determine the type, use llvm::getSemantics()

Definition at line 163 of file cpptree.hpp.


Constructor & Destructor Documentation

default constructor, for making architypes

Definition at line 166 of file cpptree.hpp.

CPPTree::SpecificFloat::SpecificFloat ( llvm::APFloat  v) [inline]

Definition at line 167 of file cpptree.hpp.


Member Function Documentation

virtual bool CPPTree::SpecificFloat::IsLocalMatch ( const Matcher candidate) const [inline, virtual]

Construct with an LLVM-style float.

Overloaded comparison for search&replace

Reimplemented from Matcher.

Definition at line 168 of file cpptree.hpp.

References ASSERT.

virtual CPPTree::SpecificFloat::operator string ( ) const [inline, virtual]

Produce a string for debug.

Reimplemented from Traceable.

Definition at line 174 of file cpptree.hpp.

References TypeDb::float_semantics, and TypeDb::long_double_semantics.


The documentation for this struct was generated from the following file: