Jlm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Private Member Functions | List of all members
jlm::llvm::FPExtOperation Class Referencefinal

#include <ConversionOperations.hpp>

Inheritance diagram for jlm::llvm::FPExtOperation:
Inheritance graph
[legend]
Collaboration diagram for jlm::llvm::FPExtOperation:
Collaboration graph
[legend]

Public Member Functions

 ~FPExtOperation () noexcept override
 
 FPExtOperation (const fpsize &srcsize, const fpsize &dstsize)
 
 FPExtOperation (const std::shared_ptr< const FloatingPointType > &operandType, const std::shared_ptr< const FloatingPointType > &resultType)
 
 FPExtOperation (const std::shared_ptr< const rvsdg::Type > &operandType, const std::shared_ptr< const rvsdg::Type > &resultType)
 
bool operator== (const Operation &other) const noexcept override
 
std::string debug_string () const override
 
std::unique_ptr< Operation > copy () const override
 
const fpsize & srcsize () const noexcept
 
const fpsize & dstsize () const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::UnaryOperation
 ~UnaryOperation () noexcept override
 
 UnaryOperation (std::shared_ptr< const Type > operand, std::shared_ptr< const Type > result)
 
- Public Member Functions inherited from jlm::rvsdg::SimpleOperation
 ~SimpleOperation () noexcept override
 
 SimpleOperation (std::vector< std::shared_ptr< const jlm::rvsdg::Type > > operands, std::vector< std::shared_ptr< const jlm::rvsdg::Type > > results)
 
size_t narguments () const noexcept
 
const std::shared_ptr< const rvsdg::Type > & argument (size_t index) const noexcept
 
size_t nresults () const noexcept
 
const std::shared_ptr< const rvsdg::Type > & result (size_t index) const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::Operation
virtual ~Operation () noexcept
 
virtual bool operator== (const Operation &other) const noexcept=0
 
bool operator!= (const Operation &other) const noexcept
 

Static Public Member Functions

static std::unique_ptr< llvm::ThreeAddressCode > create (const Variable *operand, const std::shared_ptr< const rvsdg::Type > &resultType)
 
static rvsdg::SimpleNode & createNode (rvsdg::Output &operand, const std::shared_ptr< const rvsdg::Type > &resultType)
 
static std::optional< std::vector< rvsdg::Output * > > foldConstant (const FPExtOperation &operation, const std::vector< rvsdg::Output * > &operands)
 

Static Private Member Functions

static const FloatingPointType & checkAndExtractFloatingPointType (const rvsdg::Type &type)
 

Detailed Description

Definition at line 382 of file ConversionOperations.hpp.

Constructor & Destructor Documentation

◆ ~FPExtOperation()

jlm::llvm::FPExtOperation::~FPExtOperation ( )
overridedefaultnoexcept

◆ FPExtOperation() [1/3]

jlm::llvm::FPExtOperation::FPExtOperation ( const fpsize &  srcsize,
const fpsize &  dstsize 
)
inline

Definition at line 387 of file ConversionOperations.hpp.

◆ FPExtOperation() [2/3]

jlm::llvm::FPExtOperation::FPExtOperation ( const std::shared_ptr< const FloatingPointType > &  operandType,
const std::shared_ptr< const FloatingPointType > &  resultType 
)
inline

Definition at line 394 of file ConversionOperations.hpp.

◆ FPExtOperation() [3/3]

jlm::llvm::FPExtOperation::FPExtOperation ( const std::shared_ptr< const rvsdg::Type > &  operandType,
const std::shared_ptr< const rvsdg::Type > &  resultType 
)
inline

Definition at line 403 of file ConversionOperations.hpp.

Member Function Documentation

◆ checkAndExtractFloatingPointType()

static const FloatingPointType & jlm::llvm::FPExtOperation::checkAndExtractFloatingPointType ( const rvsdg::Type &  type)
inlinestaticprivate

Definition at line 464 of file ConversionOperations.hpp.

◆ copy()

std::unique_ptr< rvsdg::Operation > jlm::llvm::FPExtOperation::copy ( ) const
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 207 of file ConversionOperations.cpp.

◆ create()

static std::unique_ptr< llvm::ThreeAddressCode > jlm::llvm::FPExtOperation::create ( const Variable *  operand,
const std::shared_ptr< const rvsdg::Type > &  resultType 
)
inlinestatic

Definition at line 437 of file ConversionOperations.hpp.

◆ createNode()

static rvsdg::SimpleNode & jlm::llvm::FPExtOperation::createNode ( rvsdg::Output &  operand,
const std::shared_ptr< const rvsdg::Type > &  resultType 
)
inlinestatic

Definition at line 444 of file ConversionOperations.hpp.

◆ debug_string()

std::string jlm::llvm::FPExtOperation::debug_string ( ) const
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 201 of file ConversionOperations.cpp.

◆ dstsize()

const fpsize & jlm::llvm::FPExtOperation::dstsize ( ) const
inlinenoexcept

Definition at line 431 of file ConversionOperations.hpp.

◆ foldConstant()

std::optional< std::vector< rvsdg::Output * > > jlm::llvm::FPExtOperation::foldConstant ( const FPExtOperation &  operation,
const std::vector< rvsdg::Output * > &  operands 
)
static

Performs constant folding by statically evaluating the constant operand and replacing the operations result with the resulting constant.

Parameters
operationThe FPExtOperation on which the transformation is performed.
operandsThe operands of the FPExtOperation node.
Returns
If the normalization could be applied, then the result of the FPExtOperation after the transformation. Otherwise, std::nullopt.

Definition at line 233 of file ConversionOperations.cpp.

◆ operator==()

bool jlm::llvm::FPExtOperation::operator== ( const Operation &  other) const
overridenoexcept

Definition at line 194 of file ConversionOperations.cpp.

◆ srcsize()

const fpsize & jlm::llvm::FPExtOperation::srcsize ( ) const
inlinenoexcept

Definition at line 425 of file ConversionOperations.hpp.


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