Jlm
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
jlm::llvm::FunctionToPointerOperation Class Referencefinal

Get address of compiled function object. More...

#include <FunctionPointer.hpp>

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

Public Member Functions

 ~FunctionToPointerOperation () noexcept override
 
 FunctionToPointerOperation (std::shared_ptr< const rvsdg::FunctionType > fn)
 
bool operator== (const Operation &other) const noexcept override
 
std::string debug_string () const override
 
std::unique_ptr< Operation > copy () const override
 
rvsdg::unop_reduction_path_t can_reduce_operand (const jlm::rvsdg::Output *arg) const noexcept override
 
jlm::rvsdg::Outputreduce_operand (rvsdg::unop_reduction_path_t path, jlm::rvsdg::Output *arg) const override
 
const std::shared_ptr< const jlm::rvsdg::FunctionType > & FunctionType () const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::UnaryOperation
 ~UnaryOperation () noexcept override
 
 UnaryOperation (std::shared_ptr< const jlm::rvsdg::Type > operand, std::shared_ptr< const jlm::rvsdg::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< FunctionToPointerOperationCreate (std::shared_ptr< const rvsdg::FunctionType > fn)
 

Private Attributes

std::shared_ptr< const rvsdg::FunctionTypeFunctionType_
 

Detailed Description

Get address of compiled function object.

Definition at line 20 of file FunctionPointer.hpp.

Constructor & Destructor Documentation

◆ ~FunctionToPointerOperation()

jlm::llvm::FunctionToPointerOperation::~FunctionToPointerOperation ( )
overridenoexcept

Definition at line 12 of file FunctionPointer.cpp.

◆ FunctionToPointerOperation()

jlm::llvm::FunctionToPointerOperation::FunctionToPointerOperation ( std::shared_ptr< const rvsdg::FunctionType fn)

Definition at line 15 of file FunctionPointer.cpp.

Member Function Documentation

◆ can_reduce_operand()

rvsdg::unop_reduction_path_t jlm::llvm::FunctionToPointerOperation::can_reduce_operand ( const jlm::rvsdg::Output arg) const
overridevirtualnoexcept

Implements jlm::rvsdg::UnaryOperation.

Definition at line 47 of file FunctionPointer.cpp.

◆ copy()

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

Implements jlm::rvsdg::Operation.

Definition at line 41 of file FunctionPointer.cpp.

◆ Create()

std::unique_ptr< FunctionToPointerOperation > jlm::llvm::FunctionToPointerOperation::Create ( std::shared_ptr< const rvsdg::FunctionType fn)
static

Definition at line 81 of file FunctionPointer.cpp.

◆ debug_string()

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

Implements jlm::rvsdg::Operation.

Definition at line 35 of file FunctionPointer.cpp.

◆ FunctionType()

const std::shared_ptr<const jlm::rvsdg::FunctionType>& jlm::llvm::FunctionToPointerOperation::FunctionType ( ) const
inlinenoexcept

Definition at line 46 of file FunctionPointer.hpp.

◆ operator==()

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

Definition at line 22 of file FunctionPointer.cpp.

◆ reduce_operand()

jlm::rvsdg::Output * jlm::llvm::FunctionToPointerOperation::reduce_operand ( rvsdg::unop_reduction_path_t  path,
jlm::rvsdg::Output arg 
) const
overridevirtual

Implements jlm::rvsdg::UnaryOperation.

Definition at line 63 of file FunctionPointer.cpp.

Member Data Documentation

◆ FunctionType_

std::shared_ptr<const rvsdg::FunctionType> jlm::llvm::FunctionToPointerOperation::FunctionType_
private

Definition at line 52 of file FunctionPointer.hpp.


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