60 #ifndef BinUtil_Insn_hpp 61 #define BinUtil_Insn_hpp 197 dump(std::ostream& o = std::cerr,
204 dumpme(std::ostream& o = std::cerr,
const char* pre =
"")
const;
237 :
Insn(minsn, vma), m_size(sz)
267 dump(std::ostream& o = std::cerr,
271 dumpme(std::ostream& o = std::cerr,
const char* pre =
"")
const;
323 dump(std::ostream& o = std::cerr,
327 dumpme(std::ostream& o = std::cerr,
const char* pre =
"")
const;
355 :
Insn(minsn, vma), m_opIndex(opIndex)
367 {
return m_opIndex; }
377 dump(std::ostream& o = std::cerr,
381 dumpme(std::ostream& o = std::cerr,
const char* pre =
"")
const;
ISA::InsnDesc desc() const
CISCInsn & operator=(const CISCInsn &GCC_ATTR_UNUSED i)
virtual VMA convertVMAToOpVMA(VMA vma, ushort GCC_ATTR_UNUSED opIndex) const
virtual ushort numOps() const
virtual InsnDesc getInsnDesc(MachInsn *mi, ushort opIndex, ushort sz=0)=0
virtual ushort opIndex() const
virtual VMA getTargetVMA(VMA vma) const
virtual ushort numDelaySlots() const
RISCInsn & operator=(const RISCInsn &GCC_ATTR_UNUSED i)
Insn(MachInsn *minsn, VMA vma)
virtual void decode(std::ostream &os, MachInsn *mi, VMA vma, ushort opIndex)=0
Insn & operator=(const Insn &GCC_ATTR_UNUSED i)
virtual ushort numOps() const =0
Insn(const Insn &GCC_ATTR_UNUSED i)
virtual ushort opIndex() const =0
virtual VMA getInsnTargetVMA(MachInsn *mi, VMA vma, ushort opIndex, ushort sz=0)=0
virtual ushort opIndex() const
virtual ushort size() const
virtual ushort getNumDelaySlots() const
virtual void decode(std::ostream &os)
virtual ushort numOps() const
virtual VMA targetVMA(VMA vma) const
virtual ushort getInsnNumOps(MachInsn *mi)=0
virtual bool isParallelWithSuccessor(MachInsn *mi1, ushort opIndex1, ushort sz1, MachInsn *mi2, ushort opIndex2, ushort sz2) const =0
unsigned short int ushort
virtual MachInsn * bits() const
VLIWInsn & operator=(const VLIWInsn &GCC_ATTR_UNUSED i)
virtual ushort getInsnNumDelaySlots(MachInsn *mi, ushort opIndex, ushort sz=0)=0
virtual void dump(std::ostream &o=std::cerr, int flags=LM::DUMP_Short, const char *pre="") const
virtual ushort size() const =0
virtual bool isParallelWithSuccessor(Insn *x) const
virtual ushort getInsnSize(MachInsn *mi)=0
virtual ushort opIndex() const
VLIWInsn(MachInsn *minsn, VMA vma, ushort opIndex)
std::string toString(int flags=LM::DUMP_Short, const char *pre="") const
virtual ushort numOps() const
CISCInsn(MachInsn *minsn, VMA vma, ushort sz)
virtual ushort size() const
virtual ushort size() const
RISCInsn(MachInsn *minsn, VMA vma)
virtual void dumpme(std::ostream &o=std::cerr, const char *pre="") const