LLVM  16.0.0git
Classes | Enumerations | Functions
llvm::LoongArch Namespace Reference

Classes

struct  ArchInfo
 
struct  FeatureInfo
 

Enumerations

enum  FeatureKind : uint32_t {
  FK_INVALID = 0, FK_NONE = 1, FK_64BIT = 1 << 1, FK_FP32 = 1 << 2,
  FK_FP64 = 1 << 3, FK_LSX = 1 << 4, FK_LASX = 1 << 5, FK_LBT = 1 << 6,
  FK_LVZ = 1 << 7
}
 
enum  ArchKind { ArchKind::LOONGARCH_ARCH }
 
enum  Fixups {
  fixup_loongarch_b16 = FirstTargetFixupKind, fixup_loongarch_b21, fixup_loongarch_b26, fixup_loongarch_abs_hi20,
  fixup_loongarch_abs_lo12, fixup_loongarch_abs64_lo20, fixup_loongarch_abs64_hi12, fixup_loongarch_tls_le_hi20,
  fixup_loongarch_tls_le_lo12, fixup_loongarch_tls_le64_lo20, fixup_loongarch_tls_le64_hi12, fixup_loongarch_invalid,
  NumTargetFixupKinds = fixup_loongarch_invalid - FirstTargetFixupKind, fixup_loongarch_pcala_hi20, fixup_loongarch_pcala_lo12, fixup_loongarch_pcala64_lo20,
  fixup_loongarch_pcala64_hi12, fixup_loongarch_got_pc_hi20, fixup_loongarch_got_pc_lo12, fixup_loongarch_got64_pc_lo20,
  fixup_loongarch_got64_pc_hi12, fixup_loongarch_got_hi20, fixup_loongarch_got_lo12, fixup_loongarch_got64_lo20,
  fixup_loongarch_got64_hi12, fixup_loongarch_tls_ie_pc_hi20, fixup_loongarch_tls_ie_pc_lo12, fixup_loongarch_tls_ie64_pc_lo20,
  fixup_loongarch_tls_ie64_pc_hi12, fixup_loongarch_tls_ie_hi20, fixup_loongarch_tls_ie_lo12, fixup_loongarch_tls_ie64_lo20,
  fixup_loongarch_tls_ie64_hi12, fixup_loongarch_tls_ld_pc_hi20, fixup_loongarch_tls_ld_hi20, fixup_loongarch_tls_gd_pc_hi20,
  fixup_loongarch_tls_gd_hi20
}
 

Functions

ArchKind parseArch (StringRef Arch)
 
bool getArchFeatures (StringRef Arch, std::vector< StringRef > &Features)
 

Enumeration Type Documentation

◆ ArchKind

Enumerator
LOONGARCH_ARCH 

Definition at line 56 of file LoongArchTargetParser.h.

◆ FeatureKind

Enumerator
FK_INVALID 
FK_NONE 
FK_64BIT 
FK_FP32 
FK_FP64 
FK_LSX 
FK_LASX 
FK_LBT 
FK_LVZ 

Definition at line 25 of file LoongArchTargetParser.h.

◆ Fixups

Enumerator
fixup_loongarch_b16 
fixup_loongarch_b21 
fixup_loongarch_b26 
fixup_loongarch_abs_hi20 
fixup_loongarch_abs_lo12 
fixup_loongarch_abs64_lo20 
fixup_loongarch_abs64_hi12 
fixup_loongarch_tls_le_hi20 
fixup_loongarch_tls_le_lo12 
fixup_loongarch_tls_le64_lo20 
fixup_loongarch_tls_le64_hi12 
fixup_loongarch_invalid 
NumTargetFixupKinds 
fixup_loongarch_pcala_hi20 
fixup_loongarch_pcala_lo12 
fixup_loongarch_pcala64_lo20 
fixup_loongarch_pcala64_hi12 
fixup_loongarch_got_pc_hi20 
fixup_loongarch_got_pc_lo12 
fixup_loongarch_got64_pc_lo20 
fixup_loongarch_got64_pc_hi12 
fixup_loongarch_got_hi20 
fixup_loongarch_got_lo12 
fixup_loongarch_got64_lo20 
fixup_loongarch_got64_hi12 
fixup_loongarch_tls_ie_pc_hi20 
fixup_loongarch_tls_ie_pc_lo12 
fixup_loongarch_tls_ie64_pc_lo20 
fixup_loongarch_tls_ie64_pc_hi12 
fixup_loongarch_tls_ie_hi20 
fixup_loongarch_tls_ie_lo12 
fixup_loongarch_tls_ie64_lo20 
fixup_loongarch_tls_ie64_hi12 
fixup_loongarch_tls_ld_pc_hi20 
fixup_loongarch_tls_ld_hi20 
fixup_loongarch_tls_gd_pc_hi20 
fixup_loongarch_tls_gd_hi20 

Definition at line 24 of file LoongArchFixupKinds.h.

Function Documentation

◆ getArchFeatures()

bool llvm::LoongArch::getArchFeatures ( StringRef  Arch,
std::vector< StringRef > &  Features 
)

Definition at line 39 of file LoongArchTargetParser.cpp.

References AllArchs, AllFeatures, F, and FK_INVALID.

◆ parseArch()

LoongArch::ArchKind llvm::LoongArch::parseArch ( StringRef  Arch)

Definition at line 31 of file LoongArchTargetParser.cpp.

References AllArchs.