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

#include <IntegerOperations.hpp>

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

Public Member Functions

 ~IntegerAShrOperation () noexcept override
 
 IntegerAShrOperation (const std::size_t numBits)
 
bool operator== (const Operation &other) const noexcept override
 
std::string debug_string () const override
 
std::unique_ptr< Operation > copy () const override
 
rvsdg::binop_reduction_path_t can_reduce_operand_pair (const rvsdg::Output *op1, const rvsdg::Output *op2) const noexcept override
 
rvsdg::Outputreduce_operand_pair (rvsdg::binop_reduction_path_t path, rvsdg::Output *op1, rvsdg::Output *op2) const override
 
enum flags flags () const noexcept override
 
- Public Member Functions inherited from jlm::llvm::IntegerBinaryOperation
 ~IntegerBinaryOperation () noexcept override
 
 IntegerBinaryOperation (const std::size_t numArgumentBits, const std::size_t numResultBits) noexcept
 
const rvsdg::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
 
virtual bool operator== (const Operation &other) const noexcept=0
 
bool operator!= (const Operation &other) const noexcept
 

Additional Inherited Members

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

Detailed Description

This operation is equivalent to LLVM's 'ashr' instruction for integer operands. See LLVM Language Reference Manual for more details.

Definition at line 338 of file IntegerOperations.hpp.

Constructor & Destructor Documentation

◆ ~IntegerAShrOperation()

jlm::llvm::IntegerAShrOperation::~IntegerAShrOperation ( )
overridedefaultnoexcept

◆ IntegerAShrOperation()

jlm::llvm::IntegerAShrOperation::IntegerAShrOperation ( const std::size_t  numBits)
inlineexplicit

Definition at line 343 of file IntegerOperations.hpp.

Member Function Documentation

◆ can_reduce_operand_pair()

rvsdg::binop_reduction_path_t jlm::llvm::IntegerAShrOperation::can_reduce_operand_pair ( const rvsdg::Output op1,
const rvsdg::Output op2 
) const
overridevirtualnoexcept

Implements jlm::rvsdg::BinaryOperation.

Definition at line 360 of file IntegerOperations.cpp.

◆ copy()

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

Implements jlm::rvsdg::Operation.

Definition at line 354 of file IntegerOperations.cpp.

◆ debug_string()

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

Implements jlm::rvsdg::Operation.

Definition at line 348 of file IntegerOperations.cpp.

◆ flags()

Reimplemented from jlm::rvsdg::BinaryOperation.

Definition at line 367 of file IntegerOperations.cpp.

◆ operator==()

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

Definition at line 341 of file IntegerOperations.cpp.

◆ reduce_operand_pair()

rvsdg::Output * jlm::llvm::IntegerAShrOperation::reduce_operand_pair ( rvsdg::binop_reduction_path_t  path,
rvsdg::Output op1,
rvsdg::Output op2 
) const
overridevirtual

Implements jlm::rvsdg::BinaryOperation.

Definition at line 367 of file IntegerOperations.cpp.


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