LLVM: lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp File Reference (original) (raw)

Go to the source code of this file.

Macros
#define DEBUG_TYPE "msp430-disassembler"
Enumerations
enum AddrMode { amInvalid = 0 , amRegister, amIndexed, amIndirect, amIndirectPost, amSymbolic, amImmediate, amAbsolute, amConstant }
Functions
static MCDisassembler * createMSP430Disassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
LLVM_ABI LLVM_EXTERNAL_VISIBILITY void LLVMInitializeMSP430Disassembler ()
static DecodeStatus DecodeGR8RegisterClass (MCInst &MI, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeGR16RegisterClass (MCInst &MI, uint64_t RegNo, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeCGImm (MCInst &MI, uint64_t Bits, uint64_t Address, const MCDisassembler *Decoder)
static DecodeStatus DecodeMemOperand (MCInst &MI, uint64_t Bits, uint64_t Address, const MCDisassembler *Decoder)
static AddrMode DecodeSrcAddrMode (unsigned Rs, unsigned As)
static AddrMode DecodeSrcAddrModeI (unsigned Insn)
static AddrMode DecodeSrcAddrModeII (unsigned Insn)
static AddrMode DecodeDstAddrMode (unsigned Insn)
static const uint8_t * getDecoderTable (AddrMode SrcAM, unsigned Words)
static MSP430CC::CondCodes getCondCode (unsigned Cond)

DEBUG_TYPE

#define DEBUG_TYPE "msp430-disassembler"

AddrMode

Enumerator
amInvalid
amRegister
amIndexed
amIndirect
amIndirectPost
amSymbolic
amImmediate
amAbsolute
amConstant

Definition at line 138 of file MSP430Disassembler.cpp.

createMSP430Disassembler()

DecodeCGImm()

DecodeDstAddrMode()

DecodeGR16RegisterClass()

DecodeGR8RegisterClass()

DecodeMemOperand()

DecodeSrcAddrMode()

Definition at line 150 of file MSP430Disassembler.cpp.

References amAbsolute, amConstant, amImmediate, amIndexed, amIndirect, amIndirectPost, amInvalid, amRegister, amSymbolic, and llvm_unreachable.

Referenced by DecodeSrcAddrModeI(), and DecodeSrcAddrModeII().

DecodeSrcAddrModeI()

DecodeSrcAddrModeII()

AddrMode DecodeSrcAddrModeII ( unsigned Insn) static

getCondCode()

getDecoderTable()

LLVMInitializeMSP430Disassembler()

GR16DecoderTable

Initial value:

= {

MSP430::PC, MSP430::SP, MSP430::SR, MSP430::CG,

MSP430::R4, MSP430::R5, MSP430::R6, MSP430::R7,

MSP430::R8, MSP430::R9, MSP430::R10, MSP430::R11,

MSP430::R12, MSP430::R13, MSP430::R14, MSP430::R15

}

Definition at line 87 of file MSP430Disassembler.cpp.

Referenced by DecodeGR16RegisterClass().

GR8DecoderTable

Initial value:

= {

MSP430::PCB, MSP430::SPB, MSP430::SRB, MSP430::CGB,

MSP430::R4B, MSP430::R5B, MSP430::R6B, MSP430::R7B,

MSP430::R8B, MSP430::R9B, MSP430::R10B, MSP430::R11B,

MSP430::R12B, MSP430::R13B, MSP430::R14B, MSP430::R15B

}

Definition at line 69 of file MSP430Disassembler.cpp.

Referenced by DecodeGR8RegisterClass().