9#ifndef LLDB_CORE_OPCODE_H
10#define LLDB_CORE_OPCODE_H
15#include "llvm/Support/SwapByteOrder.h"
75 uint8_t
GetOpcode8(uint8_t invalid_opcode = UINT8_MAX)
const {
92 return invalid_opcode;
95 uint16_t
GetOpcode16(uint16_t invalid_opcode = UINT16_MAX)
const {
113 return invalid_opcode;
134 return invalid_opcode;
156 return invalid_opcode;
213 return sizeof(
m_data.inst8);
215 return sizeof(
m_data.inst16);
218 return sizeof(
m_data.inst32);
220 return sizeof(
m_data.inst64);
222 return m_data.inst.length;
void SetOpcode16(uint16_t inst, lldb::ByteOrder order)
void SetOpcodeBytes(const void *bytes, size_t length)
int Dump(Stream *s, uint32_t min_byte_width)
Opcode(uint16_t inst, lldb::ByteOrder order)
uint8_t GetOpcode8(uint8_t invalid_opcode=UINT8_MAX) const
void SetOpcode16_2(uint32_t inst, lldb::ByteOrder order)
Opcode(uint8_t inst, lldb::ByteOrder order)
struct lldb_private::Opcode::@6::@7 inst
uint32_t GetByteSize() const
union lldb_private::Opcode::@6 m_data
bool GetEndianSwap() const
void SetOpcode64(uint64_t inst, lldb::ByteOrder order)
lldb::ByteOrder m_byte_order
Opcode(uint8_t *bytes, size_t length)
const void * GetOpcodeDataBytes() const
Opcode::Type GetType() const
const void * GetOpcodeBytes() const
Opcode(uint32_t inst, lldb::ByteOrder order)
Opcode(uint64_t inst, lldb::ByteOrder order)
lldb::ByteOrder GetDataByteOrder() const
void SetOpcode8(uint8_t inst, lldb::ByteOrder order)
uint32_t GetData(DataExtractor &data) const
uint32_t GetOpcode32(uint32_t invalid_opcode=UINT32_MAX) const
uint16_t GetOpcode16(uint16_t invalid_opcode=UINT16_MAX) const
void SetOpcode32(uint32_t inst, lldb::ByteOrder order)
uint64_t GetOpcode64(uint64_t invalid_opcode=UINT64_MAX) const
A stream class that can stream formatted output to a file.
lldb::ByteOrder InlHostByteOrder()
A class that represents a running process on the host machine.
ByteOrder
Byte ordering definitions.
class LLDB_API SBInstruction