9#ifndef liblldb_ABISysV_riscv_h_
10#define liblldb_ABISysV_riscv_h_
13#include "llvm/TargetParser/Triple.h"
30 llvm::ArrayRef<lldb::addr_t> args)
const override;
36 llvm::Type &prototype,
37 llvm::ArrayRef<ABI::CallArgument> args)
const override;
52 llvm::Type &type)
const override;
66 return (cfa & 0x3ull) == 0;
67 return (cfa & 0xfull) == 0;
84 llvm::Triple::ArchType machine = arch.
GetMachine();
85 if (llvm::Triple::riscv32 == machine)
115 std::vector<lldb_private::DynamicRegisterInfo::Register> ®s)
override;
124 using lldb_private::RegInfoBasedABI::RegInfoBasedABI;
llvm::StringRef GetPluginName() override
static llvm::StringRef GetPluginNameStatic()
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 CreateFunctionEntryUnwindPlan(lldb_private::UnwindPlan &unwind_plan) override
bool RegisterIsCalleeSaved(const lldb_private::RegisterInfo *reg_info)
void SetIsRV64(bool is_rv64)
bool CreateDefaultUnwindPlan(lldb_private::UnwindPlan &unwind_plan) override
void AugmentRegisterInfo(std::vector< lldb_private::DynamicRegisterInfo::Register > ®s) override
bool CodeAddressIsValid(lldb::addr_t pc) override
size_t GetRedZoneSize() const override
lldb_private::Status SetReturnValueObject(lldb::StackFrameSP &frame_sp, lldb::ValueObjectSP &new_value) 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
~ABISysV_riscv() override=default
lldb::ValueObjectSP GetReturnValueObjectSimple(lldb_private::Thread &thread, lldb_private::CompilerType &ast_type) const
bool GetArgumentValues(lldb_private::Thread &thread, lldb_private::ValueList &values) const override
static lldb::ABISP CreateInstance(lldb::ProcessSP process_sp, const lldb_private::ArchSpec &arch)
bool RegisterIsVolatile(const lldb_private::RegisterInfo *reg_info) override
const lldb_private::RegisterInfo * GetRegisterInfoArray(uint32_t &count) override
lldb::ValueObjectSP GetReturnValueObjectImpl(lldb_private::Thread &thread, lldb_private::CompilerType &type) const override
bool CallFrameAddressIsValid(lldb::addr_t cfa) override
lldb::ProcessSP GetProcessSP() const
Request to get a Process shared pointer.
An architecture specification class.
uint32_t GetFlags() const
llvm::Triple::ArchType GetMachine() const
Returns a machine family for the current architecture.
Generic representation of a type in a programming language.
bool Test(ValueType bit) const
Test a single flag bit.
std::shared_ptr< lldb_private::ABI > ABISP
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
std::shared_ptr< lldb_private::Process > ProcessSP
Every register is described in detail including its name, alternate name (optional),...