LLVM  8.0.1
Namespaces | Typedefs | Functions | Variables
LanaiDisassembler.cpp File Reference
#include "LanaiDisassembler.h"
#include "Lanai.h"
#include "LanaiSubtarget.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "LanaiGenDisassemblerTables.inc"
Include dependency graph for LanaiDisassembler.cpp:

Go to the source code of this file.

Namespaces

 llvm
 This class represents lattice values for constants.
 

Typedefs

typedef MCDisassembler::DecodeStatus DecodeStatus
 

Functions

Targetllvm::getTheLanaiTarget ()
 
static MCDisassemblercreateLanaiDisassembler (const Target &, const MCSubtargetInfo &STI, MCContext &Ctx)
 
void LLVMInitializeLanaiDisassembler ()
 
static DecodeStatus DecodeGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodeRiMemoryValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodeRrMemoryValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodeSplsValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodeBranch (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodePredicateOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
 
static DecodeStatus decodeShiftImm (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
 
static DecodeStatus readInstruction32 (ArrayRef< uint8_t > Bytes, uint64_t &Size, uint32_t &Insn)
 
static void PostOperandDecodeAdjust (MCInst &Instr, uint32_t Insn)
 
static bool tryAddingSymbolicOperand (int64_t Value, bool IsBranch, uint64_t Address, uint64_t Offset, uint64_t Width, MCInst &MI, const void *Decoder)
 

Variables

static const unsigned GPRDecoderTable []
 

Typedef Documentation

◆ DecodeStatus

Definition at line 26 of file LanaiDisassembler.cpp.

Function Documentation

◆ createLanaiDisassembler()

static MCDisassembler* createLanaiDisassembler ( const Target ,
const MCSubtargetInfo STI,
MCContext Ctx 
)
static

Definition at line 32 of file LanaiDisassembler.cpp.

Referenced by LLVMInitializeLanaiDisassembler().

◆ decodeBranch()

static DecodeStatus decodeBranch ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
)
static

◆ DecodeGPRRegisterClass()

DecodeStatus DecodeGPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static

◆ decodePredicateOperand()

static DecodeStatus decodePredicateOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
)
static

◆ decodeRiMemoryValue()

static DecodeStatus decodeRiMemoryValue ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
)
static

◆ decodeRrMemoryValue()

static DecodeStatus decodeRrMemoryValue ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
)
static

◆ decodeShiftImm()

static DecodeStatus decodeShiftImm ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
)
static

◆ decodeSplsValue()

static DecodeStatus decodeSplsValue ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
)
static

◆ LLVMInitializeLanaiDisassembler()

void LLVMInitializeLanaiDisassembler ( )

◆ PostOperandDecodeAdjust()

static void PostOperandDecodeAdjust ( MCInst Instr,
uint32_t  Insn 
)
static

◆ readInstruction32()

static DecodeStatus readInstruction32 ( ArrayRef< uint8_t >  Bytes,
uint64_t &  Size,
uint32_t Insn 
)
static

◆ tryAddingSymbolicOperand()

static bool tryAddingSymbolicOperand ( int64_t  Value,
bool  IsBranch,
uint64_t  Address,
uint64_t  Offset,
uint64_t  Width,
MCInst MI,
const void *  Decoder 
)
static

Variable Documentation

◆ GPRDecoderTable

const unsigned GPRDecoderTable[]
static
Initial value:
= {
Lanai::R0, Lanai::R1, Lanai::PC, Lanai::R3, Lanai::SP, Lanai::FP,
Lanai::R6, Lanai::R7, Lanai::RV, Lanai::R9, Lanai::RR1, Lanai::RR2,
Lanai::R12, Lanai::R13, Lanai::R14, Lanai::RCA, Lanai::R16, Lanai::R17,
Lanai::R18, Lanai::R19, Lanai::R20, Lanai::R21, Lanai::R22, Lanai::R23,
Lanai::R24, Lanai::R25, Lanai::R26, Lanai::R27, Lanai::R28, Lanai::R29,
Lanai::R30, Lanai::R31}
#define R6(n)

Definition at line 153 of file LanaiDisassembler.cpp.