1#ifndef ROSE_BinaryAnalysis_Unparser_Aarch32_H
2#define ROSE_BinaryAnalysis_Unparser_Aarch32_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_ASM_AARCH32
6#include <Rose/BinaryAnalysis/BasicTypes.h>
7#include <Rose/BinaryAnalysis/Unparser/Base.h>
10namespace BinaryAnalysis {
13std::string unparseAarch32Mnemonic(SgAsmAarch32Instruction*);
17struct Aarch32Settings:
public Settings {};
22class Aarch32:
public Base {
23 Aarch32Settings settings_;
26 explicit Aarch32(
const Architecture::BaseConstPtr&,
const Aarch32Settings&);
31 static Ptr instance(
const Architecture::BaseConstPtr&,
const Aarch32Settings& = Aarch32Settings());
35 const Aarch32Settings&
settings()
const override {
return settings_; }
36 Aarch32Settings&
settings()
override {
return settings_; }
39 void emitInstructionMnemonic(std::ostream&,
SgAsmInstruction*, State&)
const override;
40 void emitOperandBody(std::ostream&,
SgAsmExpression*, State&)
const override;
52 std::string left, right;
54 Parens(
const std::string &left,
const std::string &right)
55 : left(left), right(right) {}
Base class for expressions.
Base class for machine instructions.
Base class for references to a machine register.
Sawyer::SharedPointer< Node > Ptr
Reference counting pointer.
std::map< uint64_t, std::string > LabelMap
Map from address to label.
Settings settings
Command-line settings for the rosebud tool.
void copy(const Word *src, const BitRange &srcRange, Word *dst, const BitRange &dstRange)
Copy some bits.