LLVM API Documentation

Namespaces | Defines | Typedefs | Functions | Variables
ARMDisassembler.cpp File Reference
#include "llvm/MC/MCDisassembler.h"
#include "MCTargetDesc/ARMAddressingModes.h"
#include "MCTargetDesc/ARMBaseInfo.h"
#include "MCTargetDesc/ARMMCExpr.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/LEB128.h"
#include "llvm/Support/MemoryObject.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <vector>
#include "ARMGenDisassemblerTables.inc"
Include dependency graph for ARMDisassembler.cpp:

Go to the source code of this file.

Namespaces

namespace  llvm
 

List of target independent CodeGen pass IDs.


Defines

#define DEBUG_TYPE   "arm-disassembler"

Typedefs

typedef
MCDisassembler::DecodeStatus 
DecodeStatus

Functions

static bool Check (DecodeStatus &Out, DecodeStatus In)
static DecodeStatus DecodeGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRnopcRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRwithAPSRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodetGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodetcGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecoderGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeGPRPairRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPR_8RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPR_VFP2RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeQPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPairRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPairSpacedRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder)
static DecodeStatus DecodePredicateOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCCOutOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSOImmOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeRegListOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSPRRegListOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDPRRegListOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeBitfieldMaskOperand (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCopMemInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode2IdxInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSORegMemOperand (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode3Instruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSORegImmOperand (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSORegRegOperand (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMemMultipleWritebackInstruction (MCInst &Inst, unsigned Insn, uint64_t Adddress, const void *Decoder)
static DecodeStatus DecodeT2MOVTWInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeArmMOVTWInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSMLAInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCPSInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2CPSInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrModeImm12Operand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode5Operand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode7Operand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2BInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeBranchImmInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeAddrMode6Operand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST1Instruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST2Instruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST3Instruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDST4Instruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLDInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVSTInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD1DupInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD2DupInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD3DupInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD4DupInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeNEONModImmInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVSHLMaxInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight8Imm (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight16Imm (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight32Imm (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeShiftRight64Imm (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeTBLInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodePostIdxReg (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeCoprocessor (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMemBarrierOption (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeInstSyncBarrierOption (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMSRMask (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeBankedReg (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDoubleRegLoad (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeDoubleRegStore (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeLDRPreImm (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeLDRPreReg (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSTRPreImm (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSTRPreReg (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD1LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD2LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD3LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVLD4LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST1LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST2LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST3LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVST4LN (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVMOVSRR (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVMOVRRS (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeSwap (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVCVTD (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeVCVTQ (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSpecialReg (MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBROperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2BROperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbCmpBROperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeRR (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeIS (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModePC (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddrModeSP (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeSOReg (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadShift (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadImm8 (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadImm12 (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadT (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LoadLabel (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Imm8S4 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm8s4 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm0_1020s4 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Imm8 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm8 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSPImm (MCInst &Inst, uint16_t Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbAddSPReg (MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbCPS (MCInst &Inst, uint16_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeQADDInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBLXOffset (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2AddrModeImm12 (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbTableBranch (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumb2BCCInstruction (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2SOImm (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBCCTargetOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeThumbBLTargetOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeIT (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LDRDPreInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2STRDPreInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Adr (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2LdStPre (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2ShifterImmOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeLDR (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeMRRC2 (llvm::MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder)
static MCDisassemblercreateARMDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
static MCDisassemblercreateThumbDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx)
static bool tryAddingSymbolicOperand (uint64_t Address, int32_t Value, bool isBranch, uint64_t InstSize, MCInst &MI, const void *Decoder)
static void tryAddingPcLoadReferenceComment (uint64_t Address, int Value, const void *Decoder)
static void AddThumb1SBit (MCInst &MI, bool InITBlock)
void LLVMInitializeARMDisassembler ()
static DecodeStatus DecodeRFEInstruction (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2Adr (MCInst &Inst, uint32_t Insn, uint64_t Address, const void *Decoder)
static DecodeStatus DecodeT2ShifterImmOperand (MCInst &Inst, uint32_t Val, uint64_t Address, const void *Decoder)

Variables

const MCInstrDesc llvm::ARMInsts []
static const uint16_t GPRDecoderTable []
static const uint16_t GPRPairDecoderTable []
static const uint16_t SPRDecoderTable []
static const uint16_t DPRDecoderTable []
static const uint16_t QPRDecoderTable []
static const uint16_t DPairDecoderTable []
static const uint16_t DPairSpacedDecoderTable []

Define Documentation

#define DEBUG_TYPE   "arm-disassembler"

Definition at line 30 of file ARMDisassembler.cpp.


Typedef Documentation

Definition at line 32 of file ARMDisassembler.cpp.


Function Documentation

static void AddThumb1SBit ( MCInst MI,
bool  InITBlock 
) [static]
static bool Check ( DecodeStatus Out,
DecodeStatus  In 
) [static]

Definition at line 132 of file ARMDisassembler.cpp.

References llvm::MCDisassembler::Fail, llvm::tgtok::In, llvm_unreachable, llvm::MCDisassembler::SoftFail, and llvm::MCDisassembler::Success.

Referenced by DecodeAddrMode2IdxInstruction(), DecodeAddrMode3Instruction(), DecodeAddrMode5Operand(), DecodeAddrMode6Operand(), DecodeAddrModeImm12Operand(), DecodeArmMOVTWInstruction(), DecodeBitfieldMaskOperand(), DecodeBranchImmInstruction(), DecodeCopMemInstruction(), DecodeDoubleRegLoad(), DecodeDoubleRegStore(), DecodeDPRRegListOperand(), DecodeGPRnopcRegisterClass(), DecodeGPRwithAPSRRegisterClass(), DecodeLDR(), DecodeLDRPreImm(), DecodeLDRPreReg(), DecodeMemMultipleWritebackInstruction(), DecodeMRRC2(), DecodeNEONModImmInstruction(), DecodePostIdxReg(), DecodeQADDInstruction(), DecodeRegListOperand(), DecodeRFEInstruction(), DecoderGPRRegisterClass(), DecodeSMLAInstruction(), DecodeSORegImmOperand(), DecodeSORegMemOperand(), DecodeSORegRegOperand(), DecodeSPRRegListOperand(), DecodeSTRPreImm(), DecodeSTRPreReg(), DecodeSwap(), DecodeT2AddrModeImm0_1020s4(), DecodeT2AddrModeImm12(), DecodeT2AddrModeImm8(), DecodeT2AddrModeImm8s4(), DecodeT2AddrModeSOReg(), DecodeT2LDRDPreInstruction(), DecodeT2LdStPre(), DecodeT2LoadImm12(), DecodeT2LoadImm8(), DecodeT2LoadLabel(), DecodeT2LoadShift(), DecodeT2LoadT(), DecodeT2MOVTWInstruction(), DecodeT2STRDPreInstruction(), DecodeTBLInstruction(), DecodeThumb2BCCInstruction(), DecodeThumbAddrModeIS(), DecodeThumbAddrModeRR(), DecodeThumbAddSpecialReg(), DecodeThumbAddSPReg(), DecodeThumbTableBranch(), DecodeVCVTD(), DecodeVCVTQ(), DecodeVLD1DupInstruction(), DecodeVLD1LN(), DecodeVLD2DupInstruction(), DecodeVLD2LN(), DecodeVLD3DupInstruction(), DecodeVLD3LN(), DecodeVLD4DupInstruction(), DecodeVLD4LN(), DecodeVLDInstruction(), DecodeVMOVRRS(), DecodeVMOVSRR(), DecodeVSHLMaxInstruction(), DecodeVST1LN(), DecodeVST2LN(), DecodeVST3LN(), DecodeVST4LN(), and DecodeVSTInstruction().

static MCDisassembler* createARMDisassembler ( const Target T,
const MCSubtargetInfo STI,
MCContext Ctx 
) [static]

Definition at line 405 of file ARMDisassembler.cpp.

Referenced by LLVMInitializeARMDisassembler().

static MCDisassembler* createThumbDisassembler ( const Target T,
const MCSubtargetInfo STI,
MCContext Ctx 
) [static]

Definition at line 411 of file ARMDisassembler.cpp.

Referenced by LLVMInitializeARMDisassembler().

static DecodeStatus DecodeAddrMode2IdxInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeAddrMode3Instruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeAddrMode5Operand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeAddrMode6Operand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeAddrMode7Operand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]

Definition at line 2161 of file ARMDisassembler.cpp.

References DecodeGPRRegisterClass().

Referenced by DecodeLDR().

static DecodeStatus DecodeAddrModeImm12Operand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeArmMOVTWInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeBankedReg ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeBitfieldMaskOperand ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeBranchImmInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeCCOutOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeCopMemInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeCoprocessor ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeCPSInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDoubleRegLoad ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDoubleRegStore ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDPairRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDPairSpacedRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDPR_8RegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]

Definition at line 1028 of file ARMDisassembler.cpp.

References DecodeDPRRegisterClass(), and llvm::MCDisassembler::Fail.

static DecodeStatus DecodeDPR_VFP2RegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]

Definition at line 1036 of file ARMDisassembler.cpp.

References DecodeDPRRegisterClass(), and llvm::MCDisassembler::Fail.

static DecodeStatus DecodeDPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeDPRRegListOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeGPRnopcRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeGPRPairRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeGPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeGPRwithAPSRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeInstSyncBarrierOption ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeIT ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeLDR ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeLDRPreImm ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeLDRPreReg ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeMemBarrierOption ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeMemMultipleWritebackInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Adddress,
const void *  Decoder 
) [static]
static DecodeStatus DecodeMRRC2 ( llvm::MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeMSRMask ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeNEONModImmInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodePostIdxReg ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodePredicateOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeQADDInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeQPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeRegListOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeRFEInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecoderGPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeShiftRight16Imm ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeShiftRight32Imm ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeShiftRight64Imm ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeShiftRight8Imm ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSMLAInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSOImmOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSORegImmOperand ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSORegMemOperand ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSORegRegOperand ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSPRRegListOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSTRPreImm ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSTRPreReg ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeSwap ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2AddrModeImm0_1020s4 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2AddrModeImm12 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2AddrModeImm8 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2AddrModeImm8s4 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2AddrModeSOReg ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2Adr ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2Adr ( MCInst Inst,
uint32_t  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2BInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2BROperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2CPSInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2Imm8 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2Imm8S4 ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LDRDPreInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LdStPre ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LoadImm12 ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LoadImm8 ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LoadLabel ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LoadShift ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2LoadT ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2MOVTWInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2ShifterImmOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2ShifterImmOperand ( MCInst Inst,
uint32_t  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2SOImm ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeT2STRDPreInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeTBLInstruction ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodetcGPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodetGPRRegisterClass ( MCInst Inst,
unsigned  RegNo,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumb2BCCInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddrModeIS ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddrModePC ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddrModeRR ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddrModeSP ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddSpecialReg ( MCInst Inst,
uint16_t  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddSPImm ( MCInst Inst,
uint16_t  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbAddSPReg ( MCInst Inst,
uint16_t  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbBCCTargetOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbBLTargetOperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbBLXOffset ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbBROperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbCmpBROperand ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbCPS ( MCInst Inst,
uint16_t  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeThumbTableBranch ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVCVTD ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVCVTQ ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD1DupInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD1LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD2DupInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD2LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD3DupInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD3LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD4DupInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLD4LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLDInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLDST1Instruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLDST2Instruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLDST3Instruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVLDST4Instruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVMOVRRS ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVMOVSRR ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVSHLMaxInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVST1LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVST2LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVST3LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVST4LN ( MCInst Inst,
unsigned  Insn,
uint64_t  Address,
const void *  Decoder 
) [static]
static DecodeStatus DecodeVSTInstruction ( MCInst Inst,
unsigned  Val,
uint64_t  Address,
const void *  Decoder 
) [static]
static void tryAddingPcLoadReferenceComment ( uint64_t  Address,
int  Value,
const void *  Decoder 
) [static]

tryAddingPcLoadReferenceComment - trys to add a comment as to what is being referenced by a load instruction with the base register that is the Pc. These can often be values in a literal pool near the Address of the instruction. The Address of the instruction and its immediate Value are used as a possible literal pool entry. The SymbolLookUp call back will return the name of a symbol referenced by the literal pool's entry if the referenced address is that of a symbol. Or it will return a pointer to a literal 'C' string if the referenced address of the literal pool's entry is an address into a section with 'C' string literals.

Definition at line 556 of file ARMDisassembler.cpp.

References llvm::MCDisassembler::tryAddingPcLoadReferenceComment().

Referenced by DecodeAddrModeImm12Operand(), and DecodeThumbAddrModePC().

static bool tryAddingSymbolicOperand ( uint64_t  Address,
int32_t  Value,
bool  isBranch,
uint64_t  InstSize,
MCInst MI,
const void *  Decoder 
) [static]

tryAddingSymbolicOperand - trys to add a symbolic operand in place of the immediate Value in the MCInst. The immediate Value has had any PC adjustment made by the caller. If the instruction is a branch instruction then isBranch is true, else false. If the getOpInfo() function was set as part of the setupForSymbolicDisassembly() call then that function is called to get any symbolic information at the Address for this instruction. If that returns non-zero then the symbolic information it returns is used to create an MCExpr and that is added as an operand to the MCInst. If getOpInfo() returns zero and isBranch is true then a symbol look up for Value is done and if a symbol is found an MCExpr is created with that, else an MCExpr with Value is created. This function returns true if it adds an operand to the MCInst and false otherwise.

Definition at line 538 of file ARMDisassembler.cpp.

References llvm::MCDisassembler::tryAddingSymbolicOperand().

Referenced by DecodeArmMOVTWInstruction(), DecodeBranchImmInstruction(), DecodeT2BInstruction(), DecodeT2BROperand(), DecodeT2MOVTWInstruction(), DecodeThumbBCCTargetOperand(), DecodeThumbBLTargetOperand(), DecodeThumbBLXOffset(), DecodeThumbBROperand(), and DecodeThumbCmpBROperand().


Variable Documentation

const uint16_t DPairDecoderTable[] [static]
Initial value:
 {
  ARM::Q0,  ARM::D1_D2,   ARM::Q1,  ARM::D3_D4,   ARM::Q2,  ARM::D5_D6,
  ARM::Q3,  ARM::D7_D8,   ARM::Q4,  ARM::D9_D10,  ARM::Q5,  ARM::D11_D12,
  ARM::Q6,  ARM::D13_D14, ARM::Q7,  ARM::D15_D16, ARM::Q8,  ARM::D17_D18,
  ARM::Q9,  ARM::D19_D20, ARM::Q10, ARM::D21_D22, ARM::Q11, ARM::D23_D24,
  ARM::Q12, ARM::D25_D26, ARM::Q13, ARM::D27_D28, ARM::Q14, ARM::D29_D30,
  ARM::Q15
}

Definition at line 1062 of file ARMDisassembler.cpp.

Referenced by DecodeDPairRegisterClass().

const uint16_t DPairSpacedDecoderTable[] [static]
Initial value:
 {
  ARM::D0_D2,   ARM::D1_D3,   ARM::D2_D4,   ARM::D3_D5,
  ARM::D4_D6,   ARM::D5_D7,   ARM::D6_D8,   ARM::D7_D9,
  ARM::D8_D10,  ARM::D9_D11,  ARM::D10_D12, ARM::D11_D13,
  ARM::D12_D14, ARM::D13_D15, ARM::D14_D16, ARM::D15_D17,
  ARM::D16_D18, ARM::D17_D19, ARM::D18_D20, ARM::D19_D21,
  ARM::D20_D22, ARM::D21_D23, ARM::D22_D24, ARM::D23_D25,
  ARM::D24_D26, ARM::D25_D27, ARM::D26_D28, ARM::D27_D29,
  ARM::D28_D30, ARM::D29_D31
}

Definition at line 1081 of file ARMDisassembler.cpp.

Referenced by DecodeDPairSpacedRegisterClass().

const uint16_t DPRDecoderTable[] [static]
Initial value:
 {
     ARM::D0,  ARM::D1,  ARM::D2,  ARM::D3,
     ARM::D4,  ARM::D5,  ARM::D6,  ARM::D7,
     ARM::D8,  ARM::D9, ARM::D10, ARM::D11,
    ARM::D12, ARM::D13, ARM::D14, ARM::D15,
    ARM::D16, ARM::D17, ARM::D18, ARM::D19,
    ARM::D20, ARM::D21, ARM::D22, ARM::D23,
    ARM::D24, ARM::D25, ARM::D26, ARM::D27,
    ARM::D28, ARM::D29, ARM::D30, ARM::D31
}

Definition at line 1007 of file ARMDisassembler.cpp.

Referenced by DecodeDPRRegisterClass().

const uint16_t GPRDecoderTable[] [static]
Initial value:
 {
  ARM::R0, ARM::R1, ARM::R2, ARM::R3,
  ARM::R4, ARM::R5, ARM::R6, ARM::R7,
  ARM::R8, ARM::R9, ARM::R10, ARM::R11,
  ARM::R12, ARM::SP, ARM::LR, ARM::PC
}

Definition at line 875 of file ARMDisassembler.cpp.

Referenced by DecodeGPRRegisterClass().

const uint16_t GPRPairDecoderTable[] [static]
Initial value:
 {
  ARM::R0_R1, ARM::R2_R3,   ARM::R4_R5,  ARM::R6_R7,
  ARM::R8_R9, ARM::R10_R11, ARM::R12_SP
}

Definition at line 927 of file ARMDisassembler.cpp.

Referenced by DecodeGPRPairRegisterClass().

const uint16_t QPRDecoderTable[] [static]
Initial value:
 {
     ARM::Q0,  ARM::Q1,  ARM::Q2,  ARM::Q3,
     ARM::Q4,  ARM::Q5,  ARM::Q6,  ARM::Q7,
     ARM::Q8,  ARM::Q9, ARM::Q10, ARM::Q11,
    ARM::Q12, ARM::Q13, ARM::Q14, ARM::Q15
}

Definition at line 1043 of file ARMDisassembler.cpp.

Referenced by DecodeQPRRegisterClass().

const uint16_t SPRDecoderTable[] [static]
Initial value:
 {
     ARM::S0,  ARM::S1,  ARM::S2,  ARM::S3,
     ARM::S4,  ARM::S5,  ARM::S6,  ARM::S7,
     ARM::S8,  ARM::S9, ARM::S10, ARM::S11,
    ARM::S12, ARM::S13, ARM::S14, ARM::S15,
    ARM::S16, ARM::S17, ARM::S18, ARM::S19,
    ARM::S20, ARM::S21, ARM::S22, ARM::S23,
    ARM::S24, ARM::S25, ARM::S26, ARM::S27,
    ARM::S28, ARM::S29, ARM::S30, ARM::S31
}

Definition at line 986 of file ARMDisassembler.cpp.

Referenced by DecodeSPRRegisterClass().