LLDB mainline
Macros | Enumerations | Variables
RegisterInfoPOSIX_loongarch64.cpp File Reference
#include <cassert>
#include <lldb/Utility/Flags.h>
#include <stddef.h>
#include "lldb/lldb-defines.h"
#include "llvm/Support/Compiler.h"
#include "RegisterInfoPOSIX_loongarch64.h"
#include "RegisterInfos_loongarch64.h"

Go to the source code of this file.

Macros

#define GPR_OFFSET(idx)   ((idx)*8 + 0)
 
#define FPR_OFFSET(idx)   ((idx)*8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))
 
#define FCC_OFFSET(idx)   ((idx)*1 + 32 * 8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))
 
#define FCSR_OFFSET   (8 * 1 + 32 * 8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))
 
#define LSX_OFFSET(idx)
 
#define LASX_OFFSET(idx)
 
#define REG_CONTEXT_SIZE
 
#define DECLARE_REGISTER_INFOS_LOONGARCH64_STRUCT
 

Enumerations

enum  {
  k_num_gpr_registers = gpr_last_loongarch - gpr_first_loongarch + 1 , k_num_fpr_registers = fpr_last_loongarch - fpr_first_loongarch + 1 , k_num_lsx_registers = lsx_last_loongarch - lsx_first_loongarch + 1 , k_num_lasx_registers = lasx_last_loongarch - lasx_first_loongarch + 1 ,
  k_num_register_sets = 4
}
 

Variables

static const uint32_t g_gpr_regnums_loongarch64 []
 
static const uint32_t g_fpr_regnums_loongarch64 []
 
static const uint32_t g_lsx_regnums_loongarch64 []
 
static const uint32_t g_lasx_regnums_loongarch64 []
 
static const lldb_private::RegisterSet g_reg_sets_loongarch64 [k_num_register_sets]
 

Macro Definition Documentation

◆ DECLARE_REGISTER_INFOS_LOONGARCH64_STRUCT

#define DECLARE_REGISTER_INFOS_LOONGARCH64_STRUCT

Definition at line 36 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ FCC_OFFSET

#define FCC_OFFSET (   idx)    ((idx)*1 + 32 * 8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))

Definition at line 20 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ FCSR_OFFSET

#define FCSR_OFFSET   (8 * 1 + 32 * 8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))

Definition at line 21 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ FPR_OFFSET

#define FPR_OFFSET (   idx)    ((idx)*8 + sizeof(RegisterInfoPOSIX_loongarch64::GPR))

Definition at line 19 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ GPR_OFFSET

#define GPR_OFFSET (   idx)    ((idx)*8 + 0)

Definition at line 18 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ LASX_OFFSET

#define LASX_OFFSET (   idx)

◆ LSX_OFFSET

#define LSX_OFFSET (   idx)
Value:

Definition at line 22 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ REG_CONTEXT_SIZE

#define REG_CONTEXT_SIZE

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_num_gpr_registers 
k_num_fpr_registers 
k_num_lsx_registers 
k_num_lasx_registers 
k_num_register_sets 

Definition at line 65 of file RegisterInfoPOSIX_loongarch64.cpp.

Variable Documentation

◆ g_fpr_regnums_loongarch64

const uint32_t g_fpr_regnums_loongarch64[]
static
Initial value:
= {
#define LLDB_INVALID_REGNUM
Definition: lldb-defines.h:87

Definition at line 98 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ g_gpr_regnums_loongarch64

const uint32_t g_gpr_regnums_loongarch64[]
static
Initial value:
= {

Definition at line 74 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ g_lasx_regnums_loongarch64

const uint32_t g_lasx_regnums_loongarch64[]
static
Initial value:
= {

Definition at line 139 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ g_lsx_regnums_loongarch64

const uint32_t g_lsx_regnums_loongarch64[]
static
Initial value:
= {

Definition at line 120 of file RegisterInfoPOSIX_loongarch64.cpp.

◆ g_reg_sets_loongarch64

const lldb_private::RegisterSet g_reg_sets_loongarch64[k_num_register_sets]
static
Initial value:
= {
{"General Purpose Registers", "gpr", k_num_gpr_registers,
{"Floating Point Registers", "fpr", k_num_fpr_registers,
{"LSX Vector Registers", "lsx", k_num_lsx_registers,
{"LASX Vector Registers", "lasx", k_num_lasx_registers,
static const uint32_t g_lasx_regnums_loongarch64[]
static const uint32_t g_lsx_regnums_loongarch64[]
static const uint32_t g_fpr_regnums_loongarch64[]
static const uint32_t g_gpr_regnums_loongarch64[]

Definition at line 159 of file RegisterInfoPOSIX_loongarch64.cpp.

Referenced by RegisterInfoPOSIX_loongarch64::GetRegisterSet().