Jlm
Public Member Functions | Static Public Member Functions | List of all members
jlm::llvm::TruncOperation Class Referencefinal

#include <operators.hpp>

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

Public Member Functions

 ~TruncOperation () noexcept override
 
 TruncOperation (const std::shared_ptr< const jlm::rvsdg::BitType > &otype, const std::shared_ptr< const jlm::rvsdg::BitType > &rtype)
 
 TruncOperation (std::shared_ptr< const jlm::rvsdg::Type > optype, std::shared_ptr< const jlm::rvsdg::Type > restype)
 
bool operator== (const Operation &other) const noexcept override
 
std::string debug_string () const override
 
std::unique_ptr< Operation > copy () const override
 
jlm::rvsdg::unop_reduction_path_t can_reduce_operand (const jlm::rvsdg::Output *operand) const noexcept override
 
jlm::rvsdg::Outputreduce_operand (jlm::rvsdg::unop_reduction_path_t path, jlm::rvsdg::Output *operand) const override
 
size_t nsrcbits () const noexcept
 
size_t ndstbits () 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< llvm::ThreeAddressCodecreate (const Variable *operand, const std::shared_ptr< const jlm::rvsdg::Type > &type)
 
static jlm::rvsdg::Outputcreate (size_t ndstbits, jlm::rvsdg::Output *operand)
 

Detailed Description

Definition at line 1601 of file operators.hpp.

Constructor & Destructor Documentation

◆ ~TruncOperation()

jlm::llvm::TruncOperation::~TruncOperation ( )
overridedefaultnoexcept

◆ TruncOperation() [1/2]

jlm::llvm::TruncOperation::TruncOperation ( const std::shared_ptr< const jlm::rvsdg::BitType > &  otype,
const std::shared_ptr< const jlm::rvsdg::BitType > &  rtype 
)
inline

Definition at line 1606 of file operators.hpp.

◆ TruncOperation() [2/2]

jlm::llvm::TruncOperation::TruncOperation ( std::shared_ptr< const jlm::rvsdg::Type optype,
std::shared_ptr< const jlm::rvsdg::Type restype 
)
inline

Definition at line 1615 of file operators.hpp.

Member Function Documentation

◆ can_reduce_operand()

rvsdg::unop_reduction_path_t jlm::llvm::TruncOperation::can_reduce_operand ( const jlm::rvsdg::Output operand) const
overridevirtualnoexcept

Implements jlm::rvsdg::UnaryOperation.

Definition at line 799 of file operators.cpp.

◆ copy()

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

Implements jlm::rvsdg::Operation.

Definition at line 793 of file operators.cpp.

◆ create() [1/2]

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

Definition at line 1661 of file operators.hpp.

◆ create() [2/2]

static jlm::rvsdg::Output* jlm::llvm::TruncOperation::create ( size_t  ndstbits,
jlm::rvsdg::Output operand 
)
inlinestatic

Definition at line 1676 of file operators.hpp.

◆ debug_string()

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

Implements jlm::rvsdg::Operation.

Definition at line 787 of file operators.cpp.

◆ ndstbits()

size_t jlm::llvm::TruncOperation::ndstbits ( ) const
inlinenoexcept

Definition at line 1655 of file operators.hpp.

◆ nsrcbits()

size_t jlm::llvm::TruncOperation::nsrcbits ( ) const
inlinenoexcept

Definition at line 1649 of file operators.hpp.

◆ operator==()

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

Definition at line 780 of file operators.cpp.

◆ reduce_operand()

rvsdg::Output * jlm::llvm::TruncOperation::reduce_operand ( jlm::rvsdg::unop_reduction_path_t  path,
jlm::rvsdg::Output operand 
) const
overridevirtual

Implements jlm::rvsdg::UnaryOperation.

Definition at line 805 of file operators.cpp.


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