1 #ifndef ROSE_BinaryAnalysis_Unparser_Mips_H
2 #define ROSE_BinaryAnalysis_Unparser_Mips_H
3 #include <featureTests.h>
4 #ifdef ROSE_ENABLE_BINARY_ANALYSIS
5 #include <Rose/BinaryAnalysis/Unparser/Base.h>
8 namespace BinaryAnalysis {
12 std::string unparseMipsRegister(
SgAsmInstruction*, RegisterDescriptor,
const RegisterDictionary*);
13 std::string unparseMipsExpression(
SgAsmExpression*,
const LabelMap*,
const RegisterDictionary*);
22 : settings_(settings) {}
26 return Ptr(
new Mips(settings));
29 Ptr copy()
const override {
30 return instance(settings());
33 const MipsSettings& settings()
const override {
return settings_; }
37 void emitInstruction(std::ostream&,
SgAsmInstruction*, State&)
const override;
38 void emitOperandBody(std::ostream&,
SgAsmExpression*, State&)
const override;
Base class for machine instructions.
Main namespace for the ROSE library.
Settings that control unparsing.
Base class for expressions.
Represents one MIPS machine instruction.