LLDB mainline
|
#include <ABISysV_loongarch.h>
Static Public Member Functions | |
static void | Initialize () |
static void | Terminate () |
static lldb::ABISP | CreateInstance (lldb::ProcessSP process_sp, const lldb_private::ArchSpec &arch) |
static llvm::StringRef | GetPluginNameStatic () |
Static Public Member Functions inherited from lldb_private::ABI | |
static lldb::ABISP | FindPlugin (lldb::ProcessSP process_sp, const ArchSpec &arch) |
Protected Member Functions | |
void | AugmentRegisterInfo (std::vector< lldb_private::DynamicRegisterInfo::Register > ®s) override |
bool | RegisterIsCalleeSaved (const lldb_private::RegisterInfo *reg_info) |
Protected Member Functions inherited from lldb_private::RegInfoBasedABI | |
bool | GetRegisterInfoByName (llvm::StringRef name, RegisterInfo &info) |
virtual const RegisterInfo * | GetRegisterInfoArray (uint32_t &count)=0 |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) | |
Protected Member Functions inherited from lldb_private::ABI | |
virtual lldb::ValueObjectSP | GetReturnValueObjectImpl (Thread &thread, CompilerType &ast_type) const =0 |
virtual lldb::ValueObjectSP | GetReturnValueObjectImpl (Thread &thread, llvm::Type &ir_type) const |
lldb::ProcessSP | GetProcessSP () const |
Request to get a Process shared pointer. | |
ABI (lldb::ProcessSP process_sp, std::unique_ptr< llvm::MCRegisterInfo > info_up) | |
Private Member Functions | |
lldb::ValueObjectSP | GetReturnValueObjectSimple (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const |
Private Attributes | |
bool | m_is_la64 |
Additional Inherited Members | |
Static Protected Member Functions inherited from lldb_private::ABI | |
static std::unique_ptr< llvm::MCRegisterInfo > | MakeMCRegisterInfo (const ArchSpec &arch) |
Utility function to construct a MCRegisterInfo using the ArchSpec triple. | |
Protected Attributes inherited from lldb_private::ABI | |
lldb::ProcessWP | m_process_wp |
std::unique_ptr< llvm::MCRegisterInfo > | m_mc_register_info_up |
Definition at line 21 of file ABISysV_loongarch.h.
|
overridedefault |
|
overrideprotectedvirtual |
Reimplemented from lldb_private::RegInfoBasedABI.
Definition at line 643 of file ABISysV_loongarch.cpp.
References lldb_private::RegInfoBasedABI::AugmentRegisterInfo(), and GetGenericNum().
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 50 of file ABISysV_loongarch.h.
|
inlineoverridevirtual |
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 558 of file ABISysV_loongarch.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), lldb_private::eLazyBoolNo, lldb::eRegisterKindGeneric, LLDB_REGNUM_GENERIC_FP, LLDB_REGNUM_GENERIC_PC, m_is_la64, reg_size, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), lldb_private::UnwindPlan::SetSourceName(), and lldb_private::UnwindPlan::SetUnwindPlanValidAtAllInstructions().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 535 of file ABISysV_loongarch.cpp.
References lldb_private::UnwindPlan::AppendRow(), lldb_private::UnwindPlan::Clear(), loongarch_dwarf::dwarf_gpr_pc, loongarch_dwarf::dwarf_gpr_ra, loongarch_dwarf::dwarf_gpr_sp, lldb_private::eLazyBoolNo, lldb::eRegisterKindDWARF, lldb_private::UnwindPlan::SetRegisterKind(), lldb_private::UnwindPlan::SetSourcedFromCompiler(), and lldb_private::UnwindPlan::SetSourceName().
|
static |
Definition at line 148 of file ABISysV_loongarch.cpp.
References lldb_private::ArchSpec::GetTriple(), lldb_private::ABI::MakeMCRegisterInfo(), and SetIsLA64().
Referenced by Initialize(), and Terminate().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 239 of file ABISysV_loongarch.cpp.
|
inlineoverridevirtual |
Implements lldb_private::PluginInterface.
Definition at line 85 of file ABISysV_loongarch.h.
References GetPluginNameStatic().
|
inlinestatic |
Definition at line 79 of file ABISysV_loongarch.h.
Referenced by GetPluginName(), and Initialize().
|
inlineoverridevirtual |
Implements lldb_private::ABI.
Definition at line 25 of file ABISysV_loongarch.h.
|
overridevirtual |
Implements lldb_private::RegInfoBasedABI.
Definition at line 138 of file ABISysV_loongarch.cpp.
References lldb_private::RegisterInfo::data().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 524 of file ABISysV_loongarch.cpp.
References GetReturnValueObjectSimple().
|
private |
Definition at line 478 of file ABISysV_loongarch.cpp.
References lldb_private::ValueObjectConstResult::Create(), lldb::eRegisterKindGeneric, lldb_private::CompilerType::GetByteSize(), lldb_private::ArchSpec::GetMachine(), lldb_private::Thread::GetProcess(), lldb_private::Thread::GetRegisterContext(), lldb_private::Value::GetScalar(), lldb_private::Thread::GetStackFrameAtIndex(), lldb_private::CompilerType::GetTypeInfo(), GetValObjFromFPRegs(), GetValObjFromIntRegs(), lldb_private::CompilerType::IsFloatingPointType(), LLDB_REGNUM_GENERIC_ARG1, lldb_private::Value::SetCompilerType(), and lldb_private::Value::SetValueType().
Referenced by GetReturnValueObjectImpl().
|
static |
Definition at line 616 of file ABISysV_loongarch.cpp.
References CreateInstance(), GetPluginNameStatic(), and lldb_private::PluginManager::RegisterPlugin().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 192 of file ABISysV_loongarch.cpp.
References lldb::eRegisterKindGeneric, g_regs_for_args_count, lldb_private::GetLog(), lldb_private::Thread::GetRegisterContext(), LLDB_LOG, LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_PC, LLDB_REGNUM_GENERIC_RA, LLDB_REGNUM_GENERIC_SP, LogInitInfo(), lldb_private::RegisterInfo::name, sp, and UpdateRegister().
|
protected |
Definition at line 591 of file ABISysV_loongarch.cpp.
References lldb_private::ArchSpec::eLoongArch_abi_mask, lldb_private::ArchSpec::GetFlags(), lldb_private::ABI::GetProcessSP(), and lldb_private::RegisterInfo::name.
Referenced by RegisterIsVolatile().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 587 of file ABISysV_loongarch.cpp.
References RegisterIsCalleeSaved().
|
inline |
Definition at line 55 of file ABISysV_loongarch.h.
References m_is_la64.
Referenced by CreateInstance().
|
overridevirtual |
Implements lldb_private::ABI.
Definition at line 245 of file ABISysV_loongarch.cpp.
References lldb_private::Status::AsCString(), lldb::eRegisterKindGeneric, lldb_private::Status::Fail(), lldb_private::Status::FromErrorString(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::DataExtractor::GetData(), lldb_private::DataExtractor::GetMaxU64(), lldb_private::CompilerType::IsIntegerOrEnumerationType(), lldb_private::CompilerType::IsPointerType(), LLDB_REGNUM_GENERIC_ARG1, LLDB_REGNUM_GENERIC_ARG2, m_is_la64, and reg_size.
|
static |
Definition at line 622 of file ABISysV_loongarch.cpp.
References CreateInstance(), and lldb_private::PluginManager::UnregisterPlugin().
|
private |
Definition at line 100 of file ABISysV_loongarch.h.
Referenced by CreateDefaultUnwindPlan(), SetIsLA64(), and SetReturnValueObject().