1 //===-- SBInstruction.h -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef LLDB_SBInstruction_h_
11 #define LLDB_SBInstruction_h_
13 #include "lldb/API/SBDefines.h"
14 #include "lldb/API/SBData.h"
18 // There's a lot to be fixed here, but need to wait for underlying insn implementation
19 // to be revised & settle down first.
21 class InstructionImpl;
25 class LLDB_API SBInstruction
31 SBInstruction (const SBInstruction &rhs);
34 operator = (const SBInstruction &rhs);
48 GetMnemonic (lldb::SBTarget target);
51 GetOperands (lldb::SBTarget target);
54 GetComment (lldb::SBTarget target);
57 GetData (lldb::SBTarget target);
72 GetDescription (lldb::SBStream &description);
75 EmulateWithFrame (lldb::SBFrame &frame, uint32_t evaluate_options);
78 DumpEmulation (const char * triple); // triple is to specify the architecture, e.g. 'armv6' or 'armv7-apple-ios'
81 TestEmulation (lldb::SBStream &output_stream, const char *test_file);
84 friend class SBInstructionList;
86 SBInstruction(const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP &inst_sp);
89 SetOpaque(const lldb::DisassemblerSP &disasm_sp, const lldb::InstructionSP& inst_sp);
96 std::shared_ptr<InstructionImpl> m_opaque_sp;
102 #endif // LLDB_SBInstruction_h_