HPCToolkit
BinUtil::Insn Class Referenceabstract

#include <Insn.hpp>

Inheritance diagram for BinUtil::Insn:

Public Member Functions

 Insn (MachInsn *minsn)
 
 Insn (MachInsn *minsn, VMA vma)
 
virtual ~Insn ()
 
ISA::InsnDesc desc () const
 
virtual MachInsnbits () const
 
virtual ushort size () const =0
 
VMA vma () const
 
void vma (VMA vma)
 
VMA endVMA () const
 
VMA opVMA () const
 
virtual ushort opIndex () const =0
 
virtual ushort numOps () const =0
 
virtual VMA targetVMA (VMA vma) const
 
virtual ushort numDelaySlots () const
 
virtual bool isParallelWithSuccessor (Insn *x) const
 
virtual void decode (std::ostream &os)
 
std::string toString (int flags=LM::DUMP_Short, const char *pre="") const
 
virtual void dump (std::ostream &o=std::cerr, int flags=LM::DUMP_Short, const char *pre="") const
 
void ddump () const
 
virtual void dumpme (std::ostream &o=std::cerr, const char *pre="") const
 

Protected Attributes

MachInsnm_minsn
 

Private Member Functions

 Insn ()
 
 Insn (const Insn &GCC_ATTR_UNUSED i)
 
Insnoperator= (const Insn &GCC_ATTR_UNUSED i)
 

Private Attributes

VMA m_vma
 

Detailed Description

Definition at line 93 of file Insn.hpp.

Constructor & Destructor Documentation

◆ Insn() [1/4]

BinUtil::Insn::Insn ( MachInsn minsn)
inline

Definition at line 95 of file Insn.hpp.

◆ Insn() [2/4]

BinUtil::Insn::Insn ( MachInsn minsn,
VMA  vma 
)
inline

Definition at line 99 of file Insn.hpp.

◆ ~Insn()

virtual BinUtil::Insn::~Insn ( )
inlinevirtual

Definition at line 104 of file Insn.hpp.

◆ Insn() [3/4]

BinUtil::Insn::Insn ( )
inlineprivate

Definition at line 208 of file Insn.hpp.

◆ Insn() [4/4]

BinUtil::Insn::Insn ( const Insn &GCC_ATTR_UNUSED  i)
inlineprivate

Definition at line 211 of file Insn.hpp.

Member Function Documentation

◆ bits()

virtual MachInsn* BinUtil::Insn::bits ( ) const
inlinevirtual

Definition at line 116 of file Insn.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ddump()

void BinUtil::Insn::ddump ( ) const

Definition at line 118 of file Insn.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode()

virtual void BinUtil::Insn::decode ( std::ostream &  os)
inlinevirtual

Definition at line 183 of file Insn.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ desc()

ISA::InsnDesc BinUtil::Insn::desc ( ) const
inline

Definition at line 108 of file Insn.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dump()

void BinUtil::Insn::dump ( std::ostream &  o = std::cerr,
int  flags = LM::DUMP_Short,
const char *  pre = "" 
) const
virtual

Reimplemented in BinUtil::VLIWInsn, BinUtil::RISCInsn, and BinUtil::CISCInsn.

Definition at line 87 of file Insn.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dumpme()

void BinUtil::Insn::dumpme ( std::ostream &  o = std::cerr,
const char *  pre = "" 
) const
virtual

Reimplemented in BinUtil::VLIWInsn, BinUtil::RISCInsn, and BinUtil::CISCInsn.

Definition at line 125 of file Insn.cpp.

Here is the caller graph for this function:

◆ endVMA()

VMA BinUtil::Insn::endVMA ( ) const
inline

Definition at line 134 of file Insn.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ isParallelWithSuccessor()

virtual bool BinUtil::Insn::isParallelWithSuccessor ( Insn x) const
inlinevirtual

Definition at line 174 of file Insn.hpp.

Here is the call graph for this function:

◆ numDelaySlots()

virtual ushort BinUtil::Insn::numDelaySlots ( ) const
inlinevirtual

Definition at line 166 of file Insn.hpp.

Here is the call graph for this function:

◆ numOps()

virtual ushort BinUtil::Insn::numOps ( ) const
pure virtual

Implemented in BinUtil::VLIWInsn, BinUtil::RISCInsn, and BinUtil::CISCInsn.

Here is the caller graph for this function:

◆ operator=()

Insn& BinUtil::Insn::operator= ( const Insn &GCC_ATTR_UNUSED  i)
inlineprivate

Definition at line 215 of file Insn.hpp.

◆ opIndex()

virtual ushort BinUtil::Insn::opIndex ( ) const
pure virtual

Implemented in BinUtil::VLIWInsn, BinUtil::RISCInsn, and BinUtil::CISCInsn.

Here is the caller graph for this function:

◆ opVMA()

VMA BinUtil::Insn::opVMA ( ) const
inline

Definition at line 139 of file Insn.hpp.

Here is the call graph for this function:

◆ size()

virtual ushort BinUtil::Insn::size ( ) const
pure virtual

Implemented in BinUtil::VLIWInsn, BinUtil::RISCInsn, and BinUtil::CISCInsn.

Here is the caller graph for this function:

◆ targetVMA()

virtual VMA BinUtil::Insn::targetVMA ( VMA  vma) const
inlinevirtual

Definition at line 159 of file Insn.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

string BinUtil::Insn::toString ( int  flags = LM::DUMP_Short,
const char *  pre = "" 
) const

Definition at line 109 of file Insn.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ vma() [1/2]

VMA BinUtil::Insn::vma ( ) const
inline

Definition at line 125 of file Insn.hpp.

Here is the caller graph for this function:

◆ vma() [2/2]

void BinUtil::Insn::vma ( VMA  vma)
inline

Definition at line 129 of file Insn.hpp.

Here is the call graph for this function:

Member Data Documentation

◆ m_minsn

MachInsn* BinUtil::Insn::m_minsn
protected

Definition at line 219 of file Insn.hpp.

◆ m_vma

VMA BinUtil::Insn::m_vma
private

Definition at line 222 of file Insn.hpp.


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