mini-llvm 0.1.0
Loading...
Searching...
No Matches
mini_llvm::ir::Add Class Referencefinal

#include <Add.h>

Inheritance diagram for mini_llvm::ir::Add:
Collaboration diagram for mini_llvm::ir::Add:

Public Member Functions

 Add (std::shared_ptr< Value > lhs, std::shared_ptr< Value > rhs)
bool isCommutative () const override
bool isAssociative () const override
std::shared_ptr< Constantfold () const override
void accept (InstructionVisitor &visitor) override
void accept (InstructionVisitor &visitor) const override
std::string format () const override
std::unique_ptr< Valueclone () const override
Public Member Functions inherited from mini_llvm::ir::BinaryIntegerArithmeticOperator
std::unique_ptr< Typetype () const override
bool isWellFormed () const override
Public Member Functions inherited from mini_llvm::ir::BinaryIntegerOperator
template<typename Self>
auto & lhs (this Self &&self)
template<typename Self>
auto & rhs (this Self &&self)
std::unordered_set< const UseBase * > operands () const override
bool isFoldable () const override
bool isWellFormed () const override
Public Member Functions inherited from mini_llvm::ir::Instruction
BasicBlockparent () const
BasicBlock::iterator parentIterator () const
std::unordered_set< UseBase * > operands ()
bool isWellFormed () const override
std::string formatAsOperand () const override
Public Member Functions inherited from mini_llvm::ir::Value
virtual ~Value ()=default
 Value ()=default
 Value (const Value &)=delete
Valueoperator= (const Value &)=delete
 Value (Value &&)=delete
Valueoperator= (Value &&)=delete
const std::string & name () const &
std::string && name () &&
void setName (std::string name)
std::string formatName () const
use_iterator use_begin () const
use_iterator use_end () const
bool use_empty () const
size_t use_size () const

Additional Inherited Members

Public Types inherited from mini_llvm::ir::Value
using use_iterator = IndirectIterator<UseSet::iterator, UseBase>
Protected Member Functions inherited from mini_llvm::ir::BinaryIntegerArithmeticOperator
 BinaryIntegerArithmeticOperator (std::shared_ptr< Value > lhs, std::shared_ptr< Value > rhs)
Protected Member Functions inherited from mini_llvm::ir::BinaryIntegerOperator
 BinaryIntegerOperator (std::shared_ptr< Value > lhs, std::shared_ptr< Value > rhs)

Constructor & Destructor Documentation

◆ Add()

mini_llvm::ir::Add::Add ( std::shared_ptr< Value > lhs,
std::shared_ptr< Value > rhs )
inline

Member Function Documentation

◆ accept() [1/2]

void mini_llvm::ir::Add::accept ( InstructionVisitor & visitor) const
inlineoverridevirtual

◆ accept() [2/2]

void mini_llvm::ir::Add::accept ( InstructionVisitor & visitor)
inlineoverridevirtual

◆ clone()

std::unique_ptr< Value > mini_llvm::ir::Add::clone ( ) const
overridevirtual

Implements mini_llvm::ir::Value.

◆ fold()

std::shared_ptr< Constant > mini_llvm::ir::Add::fold ( ) const
overridevirtual

Reimplemented from mini_llvm::ir::Instruction.

◆ format()

std::string mini_llvm::ir::Add::format ( ) const
overridevirtual

Implements mini_llvm::ir::Value.

◆ isAssociative()

bool mini_llvm::ir::Add::isAssociative ( ) const
inlineoverridevirtual

◆ isCommutative()

bool mini_llvm::ir::Add::isCommutative ( ) const
inlineoverridevirtual

The documentation for this class was generated from the following file:
  • include/mini-llvm/ir/Instruction/Add.h