LLVM  5.0.0
Macros | Typedefs | Functions
HexagonDisassembler.cpp File Reference
#include "Hexagon.h"
#include "MCTargetDesc/HexagonBaseInfo.h"
#include "MCTargetDesc/HexagonMCChecker.h"
#include "MCTargetDesc/HexagonMCInstrInfo.h"
#include "MCTargetDesc/HexagonMCTargetDesc.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrInfo.h"
#include "llvm/MC/MCRegisterInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <memory>
#include "HexagonDepDecoders.h"
#include "HexagonGenDisassemblerTables.inc"
Include dependency graph for HexagonDisassembler.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "hexagon-disassembler"
 

Typedefs

typedef
MCDisassembler::DecodeStatus 
DecodeStatus
 

Functions

static DecodeStatus DecodeIntRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeGeneralSubRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeIntRegsLow8RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeVectorRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeDoubleRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeGeneralDoubleLow8RegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeVecDblRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodePredRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeVecPredRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeCtrRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeModRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus DecodeCtrRegs64RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
 
static DecodeStatus unsignedImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s32_0ImmDecoder (MCInst &MI, unsigned tmp, uint64_t, const void *Decoder)
 
static DecodeStatus s8_0ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s6_0ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s4_0ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s4_1ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s4_2ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s4_3ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus s3_0ImmDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static DecodeStatus brtargetDecoder (MCInst &MI, unsigned tmp, uint64_t Address, const void *Decoder)
 
static MCDisassembler * createHexagonDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
 
void LLVMInitializeHexagonDisassembler ()
 
static DecodeStatus DecodeRegisterClass (MCInst &Inst, unsigned RegNo, ArrayRef< MCPhysReg > Table)
 

Macro Definition Documentation

#define DEBUG_TYPE   "hexagon-disassembler"

Definition at line 10 of file HexagonDisassembler.cpp.

Typedef Documentation

Definition at line 38 of file HexagonDisassembler.cpp.

Function Documentation

static DecodeStatus brtargetDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static MCDisassembler* createHexagonDisassembler ( const Target &  T,
const MCSubtargetInfo &  STI,
MCContext &  Ctx 
)
static
static DecodeStatus DecodeCtrRegs64RegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus DecodeCtrRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus DecodeDoubleRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static

Definition at line 499 of file HexagonDisassembler.cpp.

References DecodeRegisterClass().

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

Definition at line 511 of file HexagonDisassembler.cpp.

References DecodeRegisterClass().

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

Definition at line 470 of file HexagonDisassembler.cpp.

References DecodeRegisterClass(), R2, R4, and R6.

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

Definition at line 449 of file HexagonDisassembler.cpp.

References DecodeIntRegsRegisterClass().

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

Definition at line 455 of file HexagonDisassembler.cpp.

References DecodeRegisterClass(), IntRegDecoderTable, R2, R4, and R6.

Referenced by DecodeIntRegsLow8RegisterClass().

static DecodeStatus DecodeModRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus DecodePredRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static

Definition at line 532 of file HexagonDisassembler.cpp.

References DecodeRegisterClass().

static DecodeStatus DecodeRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
ArrayRef< MCPhysReg >  Table 
)
static
static DecodeStatus DecodeVecDblRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static

Definition at line 520 of file HexagonDisassembler.cpp.

References DecodeRegisterClass().

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

Definition at line 541 of file HexagonDisassembler.cpp.

References DecodeRegisterClass().

static DecodeStatus DecodeVectorRegsRegisterClass ( MCInst &  Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
)
static
void LLVMInitializeHexagonDisassembler ( )
static DecodeStatus s32_0ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  ,
const void *  Decoder 
)
static
static DecodeStatus s3_0ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s4_0ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s4_1ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s4_2ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s4_3ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s6_0ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus s8_0ImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static
static DecodeStatus unsignedImmDecoder ( MCInst &  MI,
unsigned  tmp,
uint64_t  Address,
const void *  Decoder 
)
static