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

#include <Select.h>

Inheritance diagram for mini_llvm::ir::Select:
Collaboration diagram for mini_llvm::ir::Select:

Public Member Functions

 Select (std::shared_ptr< Value > cond, std::shared_ptr< Value > trueValue, std::shared_ptr< Value > falseValue)
template<typename Self>
auto & cond (this Self &&self)
template<typename Self>
auto & trueValue (this Self &&self)
template<typename Self>
auto & falseValue (this Self &&self)
std::unordered_set< const UseBase * > operands () const override
bool isFoldable () const override
std::shared_ptr< Constantfold () const override
void accept (InstructionVisitor &visitor) override
void accept (InstructionVisitor &visitor) const override
bool isWellFormed () const override
std::unique_ptr< Typetype () const override
std::string format () const override
std::unique_ptr< Valueclone () const override
Public Member Functions inherited from mini_llvm::ir::Instruction
BasicBlockparent () const
BasicBlock::iterator parentIterator () const
std::unordered_set< UseBase * > operands ()
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>

Constructor & Destructor Documentation

◆ Select()

mini_llvm::ir::Select::Select ( std::shared_ptr< Value > cond,
std::shared_ptr< Value > trueValue,
std::shared_ptr< Value > falseValue )
inline

Member Function Documentation

◆ accept() [1/2]

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

◆ accept() [2/2]

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

◆ clone()

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

Implements mini_llvm::ir::Value.

◆ cond()

template<typename Self>
auto & mini_llvm::ir::Select::cond ( this Self && self)
inline

◆ falseValue()

template<typename Self>
auto & mini_llvm::ir::Select::falseValue ( this Self && self)
inline

◆ fold()

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

Reimplemented from mini_llvm::ir::Instruction.

◆ format()

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

Implements mini_llvm::ir::Value.

◆ isFoldable()

bool mini_llvm::ir::Select::isFoldable ( ) const
overridevirtual

Reimplemented from mini_llvm::ir::Instruction.

◆ isWellFormed()

bool mini_llvm::ir::Select::isWellFormed ( ) const
overridevirtual

Reimplemented from mini_llvm::ir::Instruction.

◆ operands()

std::unordered_set< const UseBase * > mini_llvm::ir::Select::operands ( ) const
inlineoverridevirtual

◆ trueValue()

template<typename Self>
auto & mini_llvm::ir::Select::trueValue ( this Self && self)
inline

◆ type()

std::unique_ptr< Type > mini_llvm::ir::Select::type ( ) const
inlineoverridevirtual

Implements mini_llvm::ir::Value.


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