|
LLVM
10.0.0
|
#include "MCTargetDesc/SparcMCTargetDesc.h"#include "TargetInfo/SparcTargetInfo.h"#include "llvm/MC/MCAsmInfo.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCDisassembler/MCDisassembler.h"#include "llvm/MC/MCFixedLenDisassembler.h"#include "llvm/MC/MCInst.h"#include "llvm/Support/TargetRegistry.h"#include "SparcGenDisassemblerTables.inc"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "sparc-disassembler" |
Typedefs | |
| typedef MCDisassembler::DecodeStatus | DecodeStatus |
| typedef DecodeStatus(* | DecodeFunc) (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) |
Functions | |
| static MCDisassembler * | createSparcDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
| LLVM_EXTERNAL_VISIBILITY void | LLVMInitializeSparcDisassembler () |
| static DecodeStatus | DecodeIntRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeI64RegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeFPRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeDFPRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeQFPRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeCPRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeFCCRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeASRRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodePRRegsRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeIntPairRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeCPPairRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadInt (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadIntPair (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadDFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadQFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadCP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeLoadCPPair (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreInt (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreIntPair (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreDFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreQFP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreCP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeStoreCPPair (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeCall (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeSIMM13 (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeJMPL (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeReturn (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeSWAP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeTRAP (MCInst &Inst, unsigned insn, uint64_t Address, const void *Decoder) |
| static DecodeStatus | readInstruction32 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn, bool IsLittleEndian) |
| Read four bytes from the ArrayRef and return 32 bit word. More... | |
| static DecodeStatus | DecodeMem (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder, bool isLoad, DecodeFunc DecodeRD) |
| 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 | IntRegDecoderTable [] |
| static const unsigned | FPRegDecoderTable [] |
| static const unsigned | DFPRegDecoderTable [] |
| static const unsigned | QFPRegDecoderTable [] |
| static const unsigned | FCCRegDecoderTable [] |
| static const unsigned | ASRRegDecoderTable [] |
| static const unsigned | PRRegDecoderTable [] |
| static const uint16_t | IntPairDecoderTable [] |
| static const unsigned | CPRegDecoderTable [] |
| static const uint16_t | CPPairDecoderTable [] |
| #define DEBUG_TYPE "sparc-disassembler" |
Definition at line 24 of file SparcDisassembler.cpp.
| typedef DecodeStatus(* DecodeFunc) (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) |
Definition at line 367 of file SparcDisassembler.cpp.
Definition at line 26 of file SparcDisassembler.cpp.
|
static |
Definition at line 43 of file SparcDisassembler.cpp.
Referenced by LLVMInitializeSparcDisassembler().
|
static |
Definition at line 226 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, and llvm::MCDisassembler::Success.
|
static |
Definition at line 510 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCDisassembler::Success, and tryAddingSymbolicOperand().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 259 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::Address, llvm::MCOperand::createReg(), DecodeCall(), DecodeJMPL(), DecodeLoadCP(), DecodeLoadCPPair(), DecodeLoadDFP(), DecodeLoadFP(), DecodeLoadInt(), DecodeLoadIntPair(), DecodeLoadQFP(), DecodeReturn(), DecodeSIMM13(), DecodeStoreCP(), DecodeStoreCPPair(), DecodeStoreDFP(), DecodeStoreFP(), DecodeStoreInt(), DecodeStoreIntPair(), DecodeStoreQFP(), DecodeSWAP(), DecodeTRAP(), llvm::MCDisassembler::Fail, MI, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadCPPair(), and DecodeStoreCPPair().
|
static |
Definition at line 206 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadCP(), and DecodeStoreCP().
|
static |
Definition at line 180 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadDFP(), and DecodeStoreDFP().
|
static |
Definition at line 217 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, and llvm::MCDisassembler::Success.
|
static |
Definition at line 168 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadFP(), and DecodeStoreFP().
|
static |
Definition at line 156 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
|
static |
Definition at line 244 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, llvm::MCDisassembler::SoftFail, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadIntPair(), and DecodeStoreIntPair().
|
static |
Definition at line 145 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeJMPL(), DecodeLoadInt(), DecodeMem(), DecodeReturn(), DecodeStoreInt(), DecodeSWAP(), and DecodeTRAP().
|
static |
Definition at line 527 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeIntRegsRegisterClass(), llvm::sys::fs::status(), and llvm::MCDisassembler::Success.
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 447 of file SparcDisassembler.cpp.
References DecodeCPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 453 of file SparcDisassembler.cpp.
References DecodeCPPairRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 435 of file SparcDisassembler.cpp.
References DecodeDFPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 429 of file SparcDisassembler.cpp.
References DecodeFPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 417 of file SparcDisassembler.cpp.
References DecodeIntRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 423 of file SparcDisassembler.cpp.
References DecodeIntPairRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 441 of file SparcDisassembler.cpp.
References DecodeMem(), and DecodeQFPRegsRegisterClass().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 370 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeIntRegsRegisterClass(), llvm::sys::fs::status(), and llvm::MCDisassembler::Success.
Referenced by DecodeLoadCP(), DecodeLoadCPPair(), DecodeLoadDFP(), DecodeLoadFP(), DecodeLoadInt(), DecodeLoadIntPair(), DecodeLoadQFP(), DecodeStoreCP(), DecodeStoreCPPair(), DecodeStoreDFP(), DecodeStoreFP(), DecodeStoreInt(), DecodeStoreIntPair(), and DecodeStoreQFP().
|
static |
Definition at line 235 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::array_lengthof(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, and llvm::MCDisassembler::Success.
|
static |
Definition at line 192 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeLoadQFP(), and DecodeStoreQFP().
|
static |
Definition at line 561 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeIntRegsRegisterClass(), llvm::sys::fs::status(), and llvm::MCDisassembler::Success.
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 520 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and llvm::MCDisassembler::Success.
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 489 of file SparcDisassembler.cpp.
References DecodeCPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 495 of file SparcDisassembler.cpp.
References DecodeCPPairRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 477 of file SparcDisassembler.cpp.
References DecodeDFPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 471 of file SparcDisassembler.cpp.
References DecodeFPRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 459 of file SparcDisassembler.cpp.
References DecodeIntRegsRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 465 of file SparcDisassembler.cpp.
References DecodeIntPairRegisterClass(), and DecodeMem().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 483 of file SparcDisassembler.cpp.
References DecodeMem(), and DecodeQFPRegsRegisterClass().
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 589 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeIntRegsRegisterClass(), llvm::sys::fs::status(), and llvm::MCDisassembler::Success.
Referenced by DecodeCPPairRegisterClass().
|
static |
Definition at line 629 of file SparcDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeIntRegsRegisterClass(), llvm::sys::fs::status(), and llvm::MCDisassembler::Success.
Referenced by DecodeCPPairRegisterClass().
| LLVM_EXTERNAL_VISIBILITY void LLVMInitializeSparcDisassembler | ( | ) |
Definition at line 50 of file SparcDisassembler.cpp.
References createSparcDisassembler(), llvm::getTheSparcelTarget(), llvm::getTheSparcTarget(), llvm::getTheSparcV9Target(), and llvm::TargetRegistry::RegisterMCDisassembler().
|
static |
Read four bytes from the ArrayRef and return 32 bit word.
Definition at line 313 of file SparcDisassembler.cpp.
References llvm::Address, llvm::MCDisassembler::Fail, Size, llvm::ArrayRef< T >::size(), and llvm::MCDisassembler::Success.
|
static |
Definition at line 501 of file SparcDisassembler.cpp.
References llvm::MCDisassembler::tryAddingSymbolicOperand().
Referenced by DecodeCall().
Definition at line 103 of file SparcDisassembler.cpp.
Definition at line 138 of file SparcDisassembler.cpp.
Definition at line 126 of file SparcDisassembler.cpp.
Definition at line 80 of file SparcDisassembler.cpp.
Definition at line 100 of file SparcDisassembler.cpp.
Definition at line 70 of file SparcDisassembler.cpp.
Definition at line 119 of file SparcDisassembler.cpp.
Definition at line 60 of file SparcDisassembler.cpp.
Referenced by DecodeIntRegsRegisterClass().
Definition at line 113 of file SparcDisassembler.cpp.
Definition at line 90 of file SparcDisassembler.cpp.
1.8.13