LLDB mainline
|
Public Member Functions | |
~MCDisasmInstance ()=default | |
uint64_t | GetMCInst (const uint8_t *opcode_data, size_t opcode_data_len, lldb::addr_t pc, llvm::MCInst &mc_inst) const |
void | PrintMCInst (llvm::MCInst &mc_inst, lldb::addr_t pc, std::string &inst_string, std::string &comments_string) |
void | SetStyle (bool use_hex_immed, HexImmediateStyle hex_style) |
void | SetUseColor (bool use_color) |
bool | GetUseColor () const |
bool | CanBranch (llvm::MCInst &mc_inst) const |
bool | HasDelaySlot (llvm::MCInst &mc_inst) const |
bool | IsCall (llvm::MCInst &mc_inst) const |
bool | IsLoad (llvm::MCInst &mc_inst) const |
bool | IsAuthenticated (llvm::MCInst &mc_inst) const |
Static Public Member Functions | |
static std::unique_ptr< MCDisasmInstance > | Create (const char *triple, const char *cpu, const char *features_str, unsigned flavor, DisassemblerLLVMC &owner) |
Private Member Functions | |
MCDisasmInstance (std::unique_ptr< llvm::MCInstrInfo > &&instr_info_up, std::unique_ptr< llvm::MCRegisterInfo > &®_info_up, std::unique_ptr< llvm::MCSubtargetInfo > &&subtarget_info_up, std::unique_ptr< llvm::MCAsmInfo > &&asm_info_up, std::unique_ptr< llvm::MCContext > &&context_up, std::unique_ptr< llvm::MCDisassembler > &&disasm_up, std::unique_ptr< llvm::MCInstPrinter > &&instr_printer_up, std::unique_ptr< llvm::MCInstrAnalysis > &&instr_analysis_up) | |
Private Attributes | |
std::unique_ptr< llvm::MCInstrInfo > | m_instr_info_up |
std::unique_ptr< llvm::MCRegisterInfo > | m_reg_info_up |
std::unique_ptr< llvm::MCSubtargetInfo > | m_subtarget_info_up |
std::unique_ptr< llvm::MCAsmInfo > | m_asm_info_up |
std::unique_ptr< llvm::MCContext > | m_context_up |
std::unique_ptr< llvm::MCDisassembler > | m_disasm_up |
std::unique_ptr< llvm::MCInstPrinter > | m_instr_printer_up |
std::unique_ptr< llvm::MCInstrAnalysis > | m_instr_analysis_up |
Definition at line 53 of file DisassemblerLLVMC.cpp.
|
default |
|
private |
Definition at line 1322 of file DisassemblerLLVMC.cpp.
References m_asm_info_up, m_context_up, m_disasm_up, m_instr_info_up, m_instr_printer_up, m_reg_info_up, and m_subtarget_info_up.
bool DisassemblerLLVMC::MCDisasmInstance::CanBranch | ( | llvm::MCInst & | mc_inst | ) | const |
Definition at line 1403 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::VisitInstruction().
|
static |
Definition at line 1244 of file DisassemblerLLVMC.cpp.
References DisassemblerLLVMC::SymbolLookupCallback().
Referenced by DisassemblerLLVMC::DisassemblerLLVMC().
uint64_t DisassemblerLLVMC::MCDisasmInstance::GetMCInst | ( | const uint8_t * | opcode_data, |
size_t | opcode_data_len, | ||
lldb::addr_t | pc, | ||
llvm::MCInst & | mc_inst | ||
) | const |
Definition at line 1342 of file DisassemblerLLVMC.cpp.
References DisassemblerLLVMC::m_disasm_up, and pc.
Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment(), InstructionLLVMC::Decode(), and InstructionLLVMC::VisitInstruction().
bool DisassemblerLLVMC::MCDisasmInstance::GetUseColor | ( | ) | const |
Definition at line 1399 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().
bool DisassemblerLLVMC::MCDisasmInstance::HasDelaySlot | ( | llvm::MCInst & | mc_inst | ) | const |
Definition at line 1411 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::VisitInstruction().
bool DisassemblerLLVMC::MCDisasmInstance::IsAuthenticated | ( | llvm::MCInst & | mc_inst | ) | const |
Definition at line 1426 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::VisitInstruction().
bool DisassemblerLLVMC::MCDisasmInstance::IsCall | ( | llvm::MCInst & | mc_inst | ) | const |
Definition at line 1416 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::VisitInstruction().
bool DisassemblerLLVMC::MCDisasmInstance::IsLoad | ( | llvm::MCInst & | mc_inst | ) | const |
Definition at line 1422 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::VisitInstruction().
void DisassemblerLLVMC::MCDisasmInstance::PrintMCInst | ( | llvm::MCInst & | mc_inst, |
lldb::addr_t | pc, | ||
std::string & | inst_string, | ||
std::string & | comments_string | ||
) |
Definition at line 1357 of file DisassemblerLLVMC.cpp.
References pc.
Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().
void DisassemblerLLVMC::MCDisasmInstance::SetStyle | ( | bool | use_hex_immed, |
HexImmediateStyle | hex_style | ||
) |
Definition at line 1382 of file DisassemblerLLVMC.cpp.
References lldb_private::Disassembler::eHexStyleAsm, and lldb_private::Disassembler::eHexStyleC.
Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().
void DisassemblerLLVMC::MCDisasmInstance::SetUseColor | ( | bool | use_color | ) |
Definition at line 1395 of file DisassemblerLLVMC.cpp.
Referenced by InstructionLLVMC::CalculateMnemonicOperandsAndComment().
|
private |
Definition at line 87 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 88 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 89 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 91 of file DisassemblerLLVMC.cpp.
|
private |
Definition at line 84 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 90 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 85 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().
|
private |
Definition at line 86 of file DisassemblerLLVMC.cpp.
Referenced by MCDisasmInstance().