LLVM 22.0.0git
LoongArchDisassembler.cpp File Reference

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "loongarch-disassembler"

Functions

static MCDisassemblercreateLoongArchDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeLoongArchDisassembler ()
static DecodeStatus DecodeGPRRegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeGPRNoR0R1RegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeFPR32RegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeFPR64RegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeCFRRegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeFCSRRegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeLSX128RegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeLASX256RegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeSCRRegisterClass (MCInst &Inst, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
template<unsigned N, int P = 0>
static DecodeStatus decodeUImmOperand (MCInst &Inst, uint64_t Imm, int64_t Address, const MCDisassembler *Decoder)
template<unsigned N, unsigned S = 0>
static DecodeStatus decodeSImmOperand (MCInst &Inst, uint64_t Imm, int64_t Address, const MCDisassembler *Decoder)

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "loongarch-disassembler"

Definition at line 29 of file LoongArchDisassembler.cpp.

Function Documentation

◆ createLoongArchDisassembler()

MCDisassembler * createLoongArchDisassembler ( const Target & T,
const MCSubtargetInfo & STI,
MCContext & Ctx )
static

Definition at line 45 of file LoongArchDisassembler.cpp.

References T.

Referenced by LLVMInitializeLoongArchDisassembler().

◆ DecodeCFRRegisterClass()

DecodeStatus DecodeCFRRegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeFCSRRegisterClass()

DecodeStatus DecodeFCSRRegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeFPR32RegisterClass()

DecodeStatus DecodeFPR32RegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeFPR64RegisterClass()

DecodeStatus DecodeFPR64RegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeGPRNoR0R1RegisterClass()

DecodeStatus DecodeGPRNoR0R1RegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeGPRRegisterClass()

◆ DecodeLASX256RegisterClass()

DecodeStatus DecodeLASX256RegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeLSX128RegisterClass()

DecodeStatus DecodeLSX128RegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ DecodeSCRRegisterClass()

DecodeStatus DecodeSCRRegisterClass ( MCInst & Inst,
uint64_t RegNo,
uint64_t Address,
const MCDisassembler * Decoder )
static

◆ decodeSImmOperand()

template<unsigned N, unsigned S = 0>
DecodeStatus decodeSImmOperand ( MCInst & Inst,
uint64_t Imm,
int64_t Address,
const MCDisassembler * Decoder )
static

◆ decodeUImmOperand()

template<unsigned N, int P = 0>
DecodeStatus decodeUImmOperand ( MCInst & Inst,
uint64_t Imm,
int64_t Address,
const MCDisassembler * Decoder )
static

◆ LLVMInitializeLoongArchDisassembler()