Jlm
Public Member Functions | Static Public Member Functions | List of all members
jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags > Class Template Referencefinal

#include <comparison.hpp>

Inheritance diagram for jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >:
Inheritance graph
[legend]
Collaboration diagram for jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >:
Collaboration graph
[legend]

Public Member Functions

 ~MakeBitComparisonOperation () noexcept override
 
 MakeBitComparisonOperation (std::size_t nbits) noexcept
 
bool operator== (const Operation &other) const noexcept override
 
enum BinaryOperation::flags flags () const noexcept override
 
compare_result reduce_constants (const BitValueRepresentation &arg1, const BitValueRepresentation &arg2) const override
 
std::string debug_string () const override
 
std::unique_ptr< Operationcopy () const override
 
std::unique_ptr< BitCompareOperationcreate (size_t nbits) const override
 
- Public Member Functions inherited from jlm::rvsdg::BitCompareOperation
 ~BitCompareOperation () noexcept override
 
 BitCompareOperation (std::shared_ptr< const BitType > type) noexcept
 
binop_reduction_path_t can_reduce_operand_pair (const jlm::rvsdg::Output *arg1, const jlm::rvsdg::Output *arg2) const noexcept override
 
jlm::rvsdg::Outputreduce_operand_pair (binop_reduction_path_t path, jlm::rvsdg::Output *arg1, jlm::rvsdg::Output *arg2) const override
 
const BitTypetype () const noexcept
 
- Public Member Functions inherited from jlm::rvsdg::BinaryOperation
 ~BinaryOperation () noexcept override
 
 BinaryOperation (const std::vector< std::shared_ptr< const jlm::rvsdg::Type >> operands, std::shared_ptr< const jlm::rvsdg::Type > result)
 
bool is_associative () const noexcept
 
bool is_commutative () const noexcept
 
- 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
 
bool operator!= (const Operation &other) const noexcept
 

Static Public Member Functions

static Outputcreate (size_t nbits, Output *op1, Output *op2)
 

Additional Inherited Members

- Public Types inherited from jlm::rvsdg::BinaryOperation
enum class  flags { none = 0 , associative = 1 , commutative = 2 }
 

Detailed Description

template<typename reduction, const char * name, enum BinaryOperation::flags opflags>
class jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >

Definition at line 17 of file comparison.hpp.

Constructor & Destructor Documentation

◆ ~MakeBitComparisonOperation()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::~MakeBitComparisonOperation
overridenoexcept

Definition at line 15 of file comparison-impl.hpp.

◆ MakeBitComparisonOperation()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::MakeBitComparisonOperation ( std::size_t  nbits)
inlineexplicitnoexcept

Definition at line 22 of file comparison.hpp.

Member Function Documentation

◆ copy()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
std::unique_ptr< Operation > jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::copy
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 60 of file comparison-impl.hpp.

◆ create() [1/2]

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
std::unique_ptr< BitCompareOperation > jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::create ( size_t  nbits) const
overridevirtual

Implements jlm::rvsdg::BitCompareOperation.

Definition at line 67 of file comparison-impl.hpp.

◆ create() [2/2]

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
static Output* jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::create ( size_t  nbits,
Output op1,
Output op2 
)
inlinestatic

Definition at line 46 of file comparison.hpp.

◆ debug_string()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
std::string jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::debug_string
overridevirtual

Implements jlm::rvsdg::Operation.

Definition at line 53 of file comparison-impl.hpp.

◆ flags()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
enum BinaryOperation::flags jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::flags
overridevirtualnoexcept

Reimplemented from jlm::rvsdg::BinaryOperation.

Definition at line 29 of file comparison-impl.hpp.

◆ operator==()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
bool jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::operator== ( const Operation other) const
overridevirtualnoexcept

Implements jlm::rvsdg::Operation.

Definition at line 20 of file comparison-impl.hpp.

◆ reduce_constants()

template<typename reduction , const char * name, enum BinaryOperation::flags opflags>
compare_result jlm::rvsdg::MakeBitComparisonOperation< reduction, name, opflags >::reduce_constants ( const BitValueRepresentation arg1,
const BitValueRepresentation arg2 
) const
overridevirtual

Implements jlm::rvsdg::BitCompareOperation.

Definition at line 29 of file comparison-impl.hpp.


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