9#ifdef DECLARE_REGISTER_INFOS_RISCV64_STRUCT
21#error GPR_OFFSET must be defined before including this header file
25#error FPR_OFFSET must be defined before including this header file
33#define KIND_HELPER(reg, generic_kind) \
35 riscv_dwarf::dwarf_##reg, riscv_dwarf::dwarf_##reg, generic_kind, \
36 LLDB_INVALID_REGNUM, reg##_riscv \
40#define GPR64_KIND(reg, generic_kind) KIND_HELPER(reg, generic_kind)
43#define FPR64_KIND(reg, generic_kind) KIND_HELPER(reg, generic_kind)
46#define VPR_KIND(reg, generic_kind) KIND_HELPER(reg, generic_kind)
49#define DEFINE_GPR64(reg, generic_kind) DEFINE_GPR64_ALT(reg, reg, generic_kind)
52#define DEFINE_GPR64_ALT(reg, alt, generic_kind) \
54 #reg, #alt, 8, GPR_OFFSET(gpr_##reg##_riscv - gpr_first_riscv), \
55 lldb::eEncodingUint, lldb::eFormatHex, \
56 GPR64_KIND(gpr_##reg, generic_kind), nullptr, nullptr, nullptr, \
59#define DEFINE_FPR64(reg, generic_kind) DEFINE_FPR64_ALT(reg, reg, generic_kind)
61#define DEFINE_FPR64_ALT(reg, alt, generic_kind) DEFINE_FPR_ALT(reg, alt, 8, generic_kind)
63#define DEFINE_FPR_ALT(reg, alt, size, generic_kind) \
65 #reg, #alt, size, FPR_OFFSET(fpr_##reg##_riscv - fpr_first_riscv), \
66 lldb::eEncodingUint, lldb::eFormatHex, \
67 FPR64_KIND(fpr_##reg, generic_kind), nullptr, nullptr, nullptr, \
70#define DEFINE_VPR(reg, generic_kind) DEFINE_VPR_ALT(reg, reg, generic_kind)
74#define DEFINE_VPR_ALT(reg, alt, generic_kind) \
76 #reg, #alt, 16, 0, lldb::eEncodingVector, lldb::eFormatVectorOfUInt8, \
77 VPR_KIND(vpr_##reg, generic_kind), nullptr, nullptr, nullptr \
#define LLDB_REGNUM_GENERIC_RA
#define LLDB_REGNUM_GENERIC_ARG8
#define LLDB_REGNUM_GENERIC_ARG6
#define LLDB_REGNUM_GENERIC_SP
#define LLDB_REGNUM_GENERIC_ARG4
#define LLDB_REGNUM_GENERIC_ARG3
#define LLDB_REGNUM_GENERIC_ARG1
#define LLDB_REGNUM_GENERIC_ARG7
#define LLDB_INVALID_REGNUM
#define LLDB_REGNUM_GENERIC_ARG2
#define LLDB_REGNUM_GENERIC_PC
#define LLDB_REGNUM_GENERIC_FP
#define LLDB_REGNUM_GENERIC_ARG5
Every register is described in detail including its name, alternate name (optional),...