LLVM  4.0.0
Macros | Typedefs | Functions
AVRDisassembler.cpp File Reference
#include "AVR.h"
#include "AVRRegisterInfo.h"
#include "AVRSubtarget.h"
#include "MCTargetDesc/AVRMCTargetDesc.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/Support/TargetRegistry.h"
#include "AVRGenDisassemblerTables.inc"
Include dependency graph for AVRDisassembler.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "avr-disassembler"
 

Typedefs

typedef
MCDisassembler::DecodeStatus 
DecodeStatus
 
typedef DecodeStatus(* DecodeFunc )(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder)
 

Functions

static MCDisassemblercreateAVRDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
 
void LLVMInitializeAVRDisassembler ()
 
static DecodeStatus DecodeGPR8RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeLD8RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodePTRREGSRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus readInstruction16 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn)
 
static DecodeStatus readInstruction32 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn)
 
static const uint8_t * getDecoderTable (uint64_t Size)
 

Macro Definition Documentation

#define DEBUG_TYPE   "avr-disassembler"

Definition at line 28 of file AVRDisassembler.cpp.

Typedef Documentation

typedef DecodeStatus(* DecodeFunc)(MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder)

Definition at line 154 of file AVRDisassembler.cpp.

Definition at line 30 of file AVRDisassembler.cpp.

Function Documentation

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

Definition at line 48 of file AVRDisassembler.cpp.

Referenced by LLVMInitializeAVRDisassembler().

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

Definition at line 61 of file AVRDisassembler.cpp.

References llvm::MCDisassembler::Success.

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

Definition at line 66 of file AVRDisassembler.cpp.

References llvm::MCDisassembler::Success.

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

Definition at line 71 of file AVRDisassembler.cpp.

References llvm::MCDisassembler::Success.

static const uint8_t* getDecoderTable ( uint64_t  Size)
static

Definition at line 105 of file AVRDisassembler.cpp.

References llvm_unreachable.

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