LLDB mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
ABISysV_riscv Class Reference

#include <ABISysV_riscv.h>

Inheritance diagram for ABISysV_riscv:
Inheritance graph
[legend]

Public Member Functions

 ~ABISysV_riscv () override=default
 
size_t GetRedZoneSize () const override
 
bool PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::ArrayRef< lldb::addr_t > args) const override
 
bool PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::Type &prototype, llvm::ArrayRef< ABI::CallArgument > args) const override
 
bool GetArgumentValues (lldb_private::Thread &thread, lldb_private::ValueList &values) const override
 
lldb_private::Status SetReturnValueObject (lldb::StackFrameSP &frame_sp, lldb::ValueObjectSP &new_value) override
 
lldb::ValueObjectSP GetReturnValueObjectImpl (lldb_private::Thread &thread, lldb_private::CompilerType &type) const override
 
lldb::ValueObjectSP GetReturnValueObjectImpl (lldb_private::Thread &thread, llvm::Type &type) const override
 
bool CreateFunctionEntryUnwindPlan (lldb_private::UnwindPlan &unwind_plan) override
 
bool CreateDefaultUnwindPlan (lldb_private::UnwindPlan &unwind_plan) override
 
bool RegisterIsVolatile (const lldb_private::RegisterInfo *reg_info) override
 
bool CallFrameAddressIsValid (lldb::addr_t cfa) override
 
void SetIsRV64 (bool is_rv64)
 
bool CodeAddressIsValid (lldb::addr_t pc) override
 
const lldb_private::RegisterInfoGetRegisterInfoArray (uint32_t &count) override
 
llvm::StringRef GetPluginName () override
 
void AugmentRegisterInfo (std::vector< DynamicRegisterInfo::Register > &regs) override
 
- Public Member Functions inherited from lldb_private::ABI
 ~ABI () override
 
virtual size_t GetRedZoneSize () const =0
 
virtual bool PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::ArrayRef< lldb::addr_t > args) const =0
 
virtual bool PrepareTrivialCall (lldb_private::Thread &thread, lldb::addr_t sp, lldb::addr_t functionAddress, lldb::addr_t returnAddress, llvm::Type &prototype, llvm::ArrayRef< CallArgument > args) const
 
virtual bool GetArgumentValues (Thread &thread, ValueList &values) const =0
 
lldb::ValueObjectSP GetReturnValueObject (Thread &thread, CompilerType &type, bool persistent=true) const
 
lldb::ValueObjectSP GetReturnValueObject (Thread &thread, llvm::Type &type, bool persistent=true) const
 
virtual Status SetReturnValueObject (lldb::StackFrameSP &frame_sp, lldb::ValueObjectSP &new_value)=0
 
virtual bool CreateFunctionEntryUnwindPlan (UnwindPlan &unwind_plan)=0
 
virtual bool CreateDefaultUnwindPlan (UnwindPlan &unwind_plan)=0
 
virtual bool RegisterIsVolatile (const RegisterInfo *reg_info)=0
 
virtual bool GetFallbackRegisterLocation (const RegisterInfo *reg_info, UnwindPlan::Row::RegisterLocation &unwind_regloc)
 
virtual bool CallFrameAddressIsValid (lldb::addr_t cfa)=0
 
virtual bool CodeAddressIsValid (lldb::addr_t pc)=0
 
virtual lldb::addr_t FixAnyAddress (lldb::addr_t pc)
 Use this method when you do not know, or do not care what kind of address you are fixing.
 
llvm::MCRegisterInfo & GetMCRegisterInfo ()
 
virtual void AugmentRegisterInfo (std::vector< DynamicRegisterInfo::Register > &regs)=0
 
virtual bool GetPointerReturnRegister (const char *&name)
 
virtual uint64_t GetStackFrameSize ()
 
virtual lldb::addr_t FixCodeAddress (lldb::addr_t pc)
 Some targets might use bits in a code address to indicate a mode switch.
 
virtual lldb::addr_t FixDataAddress (lldb::addr_t pc)
 
- Public Member Functions inherited from lldb_private::PluginInterface
 PluginInterface ()=default
 
virtual ~PluginInterface ()=default
 
virtual llvm::StringRef GetPluginName ()=0
 
 PluginInterface (const PluginInterface &)=delete
 
PluginInterfaceoperator= (const PluginInterface &)=delete
 

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 > &regs) 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 RegisterInfoGetRegisterInfoArray (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)
 
virtual lldb::addr_t FixCodeAddress (lldb::addr_t pc, lldb::addr_t mask)
 

Private Member Functions

lldb::ValueObjectSP GetReturnValueObjectSimple (lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const
 

Private Attributes

bool m_is_rv64
 

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
 

Detailed Description

Definition at line 21 of file ABISysV_riscv.h.

Constructor & Destructor Documentation

◆ ~ABISysV_riscv()

ABISysV_riscv::~ABISysV_riscv ( )
overridedefault

Member Function Documentation

◆ AugmentRegisterInfo()

void ABISysV_riscv::AugmentRegisterInfo ( std::vector< lldb_private::DynamicRegisterInfo::Register > &  regs)
overrideprotectedvirtual

◆ CallFrameAddressIsValid()

bool ABISysV_riscv::CallFrameAddressIsValid ( lldb::addr_t  cfa)
inlineoverridevirtual

◆ CodeAddressIsValid()

bool ABISysV_riscv::CodeAddressIsValid ( lldb::addr_t  pc)
inlineoverridevirtual

◆ CreateDefaultUnwindPlan()

bool ABISysV_riscv::CreateDefaultUnwindPlan ( lldb_private::UnwindPlan unwind_plan)
overridevirtual

◆ CreateFunctionEntryUnwindPlan()

bool ABISysV_riscv::CreateFunctionEntryUnwindPlan ( lldb_private::UnwindPlan unwind_plan)
overridevirtual

◆ CreateInstance()

ABISP ABISysV_riscv::CreateInstance ( lldb::ProcessSP  process_sp,
const lldb_private::ArchSpec arch 
)
static

◆ GetArgumentValues()

bool ABISysV_riscv::GetArgumentValues ( lldb_private::Thread thread,
lldb_private::ValueList values 
) const
overridevirtual

Implements lldb_private::ABI.

Definition at line 284 of file ABISysV_riscv.cpp.

◆ GetPluginName()

llvm::StringRef ABISysV_riscv::GetPluginName ( )
inlineoverridevirtual

Implements lldb_private::PluginInterface.

Definition at line 111 of file ABISysV_riscv.h.

References GetPluginNameStatic().

◆ GetPluginNameStatic()

static llvm::StringRef ABISysV_riscv::GetPluginNameStatic ( )
inlinestatic

Definition at line 105 of file ABISysV_riscv.h.

Referenced by GetPluginName(), and Initialize().

◆ GetRedZoneSize()

size_t ABISysV_riscv::GetRedZoneSize ( ) const
inlineoverridevirtual

Implements lldb_private::ABI.

Definition at line 25 of file ABISysV_riscv.h.

◆ GetRegisterInfoArray()

const RegisterInfo * ABISysV_riscv::GetRegisterInfoArray ( uint32_t &  count)
overridevirtual

Implements lldb_private::RegInfoBasedABI.

Definition at line 122 of file ABISysV_riscv.cpp.

References lldb_private::RegisterInfo::data().

◆ GetReturnValueObjectImpl() [1/2]

ValueObjectSP ABISysV_riscv::GetReturnValueObjectImpl ( lldb_private::Thread thread,
lldb_private::CompilerType type 
) const
overridevirtual

Implements lldb_private::ABI.

Definition at line 631 of file ABISysV_riscv.cpp.

References GetReturnValueObjectSimple().

◆ GetReturnValueObjectImpl() [2/2]

ValueObjectSP ABISysV_riscv::GetReturnValueObjectImpl ( lldb_private::Thread thread,
llvm::Type &  type 
) const
overridevirtual

◆ GetReturnValueObjectSimple()

ValueObjectSP ABISysV_riscv::GetReturnValueObjectSimple ( lldb_private::Thread thread,
lldb_private::CompilerType ast_type 
) const
private

◆ Initialize()

void ABISysV_riscv::Initialize ( )
static

◆ PrepareTrivialCall() [1/2]

bool ABISysV_riscv::PrepareTrivialCall ( lldb_private::Thread thread,
lldb::addr_t  sp,
lldb::addr_t  functionAddress,
lldb::addr_t  returnAddress,
llvm::ArrayRef< lldb::addr_t args 
) const
overridevirtual

Implements lldb_private::ABI.

◆ PrepareTrivialCall() [2/2]

bool ABISysV_riscv::PrepareTrivialCall ( lldb_private::Thread thread,
lldb::addr_t  sp,
lldb::addr_t  functionAddress,
lldb::addr_t  returnAddress,
llvm::Type &  prototype,
llvm::ArrayRef< ABI::CallArgument >  args 
) const
override

◆ RegisterIsCalleeSaved()

bool ABISysV_riscv::RegisterIsCalleeSaved ( const lldb_private::RegisterInfo reg_info)
protected

◆ RegisterIsVolatile()

bool ABISysV_riscv::RegisterIsVolatile ( const lldb_private::RegisterInfo reg_info)
overridevirtual

Implements lldb_private::ABI.

Definition at line 694 of file ABISysV_riscv.cpp.

References RegisterIsCalleeSaved().

◆ SetIsRV64()

void ABISysV_riscv::SetIsRV64 ( bool  is_rv64)
inline

Definition at line 70 of file ABISysV_riscv.h.

References m_is_rv64.

Referenced by CreateInstance().

◆ SetReturnValueObject()

Status ABISysV_riscv::SetReturnValueObject ( lldb::StackFrameSP frame_sp,
lldb::ValueObjectSP new_value 
)
overridevirtual

◆ Terminate()

void ABISysV_riscv::Terminate ( )
static

Member Data Documentation

◆ m_is_rv64

bool ABISysV_riscv::m_is_rv64
private

Definition at line 126 of file ABISysV_riscv.h.

Referenced by CreateDefaultUnwindPlan(), SetIsRV64(), and SetReturnValueObject().


The documentation for this class was generated from the following files: