1#ifndef ROSE_BinaryAnalysis_Disassembler_Cil_H
2#define ROSE_BinaryAnalysis_Disassembler_Cil_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_BINARY_ANALYSIS
5#include <Rose/BinaryAnalysis/Disassembler/Base.h>
7#include <Rose/BinaryAnalysis/Architecture/BasicTypes.h>
8#include <Rose/BinaryAnalysis/InstructionEnumsCil.h>
10#include <boost/serialization/access.hpp>
11#include <boost/serialization/base_object.hpp>
14namespace BinaryAnalysis {
15namespace Disassembler {
51 SgAsmCilInstruction* makeInstruction(rose_addr_t, SgUnsignedCharList& bytes,
size_t, CilInstructionKind,
57#ifdef ROSE_HAVE_BOOST_SERIALIZATION_LIB
59 friend class boost::serialization::access;
62 void serialize(S &s,
const unsigned ) {
Virtual base class for instruction disassemblers.
virtual SgAsmInstruction * makeUnknownInstruction(const Disassembler::Exception &) override
Makes an unknown instruction from an exception.
virtual Base::Ptr clone() const override
Creates a new copy of a disassembler.
virtual SgAsmInstruction * disassembleOne(const MemoryMap::Ptr &, rose_addr_t va, AddressSet *successors=nullptr) override
This is the lowest level disassembly function and is implemented in the architecture-specific subclas...
static Ptr instance(const Architecture::BaseConstPtr &)
Allocating constructor.
Exception thrown by the disassemblers.
Reference-counting intrusive smart pointer.
Base class for expressions.
Base class for machine instructions.
std::shared_ptr< const Base > BaseConstPtr
Reference counted pointer for Architecture::Base.