mini-llvm 0.1.0
Loading...
Searching...
No Matches
mini_llvm::mc::RISCVInstruction Class Referencefinal

#include <RISCVInstruction.h>

Inheritance diagram for mini_llvm::mc::RISCVInstruction:
Collaboration diagram for mini_llvm::mc::RISCVInstruction:

Public Member Functions

 RISCVInstruction (int opcode, std::vector< std::unique_ptr< Operand > > operands={})
std::string format () const override
Public Member Functions inherited from mini_llvm::mc::Instruction
int opcode () const
void setOpcode (int opcode)
operand_iterator operand_begin ()
operand_iterator operand_end ()
const_operand_iterator operand_begin () const
const_operand_iterator operand_end () const
bool operand_empty () const
size_t operand_size () const
Operandoperand (size_t i)
const Operandoperand (size_t i) const
void setOperands (std::vector< std::unique_ptr< Operand > > operands)
Public Member Functions inherited from mini_llvm::mc::Statement
virtual ~Statement ()=default
 Statement ()=default
 Statement (const Statement &)=delete
Statementoperator= (const Statement &)=delete
 Statement (Statement &&)=delete
Statementoperator= (Statement &&)=delete

Additional Inherited Members

Public Types inherited from mini_llvm::mc::Instruction
using operand_iterator = IndirectIterator<std::vector<std::unique_ptr<Operand>>::iterator, Operand>
using const_operand_iterator = IndirectIterator<std::vector<std::unique_ptr<Operand>>::const_iterator, const Operand>
Protected Member Functions inherited from mini_llvm::mc::Instruction
 Instruction (int opcode, std::vector< std::unique_ptr< Operand > > operands={})

Constructor & Destructor Documentation

◆ RISCVInstruction()

mini_llvm::mc::RISCVInstruction::RISCVInstruction ( int opcode,
std::vector< std::unique_ptr< Operand > > operands = {} )
inlineexplicit

Member Function Documentation

◆ format()

std::string mini_llvm::mc::RISCVInstruction::format ( ) const
overridevirtual

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