|
LLVM
10.0.0
|
This file is part of the ARC Disassembler. More...
#include "ARC.h"#include "ARCRegisterInfo.h"#include "MCTargetDesc/ARCMCTargetDesc.h"#include "TargetInfo/ARCTargetInfo.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCDisassembler/MCDisassembler.h"#include "llvm/MC/MCFixedLenDisassembler.h"#include "llvm/MC/MCInst.h"#include "llvm/MC/MCInstrInfo.h"#include "llvm/MC/MCSubtargetInfo.h"#include "llvm/Support/TargetRegistry.h"#include "ARCGenDisassemblerTables.inc"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "arc-disassembler" |
Typedefs | |
| using | DecodeStatus = MCDisassembler::DecodeStatus |
Functions | |
| static bool | readInstruction32 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn) |
| static bool | readInstruction64 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint64_t &Insn) |
| static bool | readInstruction48 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint64_t &Insn) |
| static bool | readInstruction16 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint32_t &Insn) |
| template<unsigned B> | |
| static DecodeStatus | DecodeSignedOperand (MCInst &Inst, unsigned InsnS, uint64_t Address=0, const void *Decoder=nullptr) |
| template<unsigned B> | |
| static DecodeStatus | DecodeFromCyclicRange (MCInst &Inst, unsigned InsnS, uint64_t Address=0, const void *Decoder=nullptr) |
| template<unsigned B> | |
| static DecodeStatus | DecodeBranchTargetS (MCInst &Inst, unsigned InsnS, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeMEMrs9 (MCInst &, unsigned, uint64_t, const void *) |
| static DecodeStatus | DecodeLdLImmInstruction (MCInst &, uint64_t, uint64_t, const void *) |
| static DecodeStatus | DecodeStLImmInstruction (MCInst &, uint64_t, uint64_t, const void *) |
| static DecodeStatus | DecodeLdRLImmInstruction (MCInst &, uint64_t, uint64_t, const void *) |
| static DecodeStatus | DecodeMoveHRegInstruction (MCInst &Inst, uint64_t, uint64_t, const void *) |
| static DecodeStatus | DecodeGPR32RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static DecodeStatus | DecodeGBR32ShortRegister (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
| static unsigned | decodeCField (unsigned Insn) |
| static unsigned | decodeBField (unsigned Insn) |
| static unsigned | decodeAField (unsigned Insn) |
| static bool | DecodeSymbolicOperand (MCInst &Inst, uint64_t Address, uint64_t Value, const void *Decoder) |
| static void | DecodeSymbolicOperandOff (MCInst &Inst, uint64_t Address, uint64_t Offset, const void *Decoder) |
| static MCDisassembler * | createARCDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
| LLVM_EXTERNAL_VISIBILITY void | LLVMInitializeARCDisassembler () |
Variables | |
| static const uint16_t | GPR32DecoderTable [] |
This file is part of the ARC Disassembler.
Definition in file ARCDisassembler.cpp.
| #define DEBUG_TYPE "arc-disassembler" |
Definition at line 28 of file ARCDisassembler.cpp.
Definition at line 30 of file ARCDisassembler.cpp.
|
static |
Definition at line 360 of file ARCDisassembler.cpp.
References llvm::Target::createMCInstrInfo().
Referenced by LLVMInitializeARCDisassembler().
Definition at line 154 of file ARCDisassembler.cpp.
Referenced by DecodeLdLImmInstruction(), and DecodeLdRLImmInstruction().
Definition at line 149 of file ARCDisassembler.cpp.
Referenced by DecodeLdLImmInstruction(), DecodeLdRLImmInstruction(), and DecodeStLImmInstruction().
|
static |
Definition at line 187 of file ARCDisassembler.cpp.
References B, DecodeSymbolicOperandOff(), and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
Definition at line 145 of file ARCDisassembler.cpp.
Referenced by DecodeLdRLImmInstruction(), and DecodeStLImmInstruction().
|
static |
Definition at line 207 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), B, llvm::MCOperand::createImm(), llvm::max(), and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
|
static |
Definition at line 133 of file ARCDisassembler.cpp.
References DecodeGPR32RegisterClass().
|
static |
Definition at line 120 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::dbgs(), llvm::MCDisassembler::Fail, LLVM_DEBUG, Reg, and llvm::MCDisassembler::Success.
Referenced by DecodeGBR32ShortRegister(), DecodeLdLImmInstruction(), DecodeLdRLImmInstruction(), DecodeMEMrs9(), DecodeMoveHRegInstruction(), and DecodeStLImmInstruction().
|
static |
Definition at line 235 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::dbgs(), decodeAField(), decodeBField(), DecodeGPR32RegisterClass(), llvm::MCDisassembler::Fail, LLVM_DEBUG, and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
|
static |
Definition at line 253 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::dbgs(), decodeAField(), decodeBField(), decodeCField(), DecodeGPR32RegisterClass(), llvm::MCDisassembler::Fail, LLVM_DEBUG, and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
|
static |
Definition at line 158 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), DecodeGPR32RegisterClass(), and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
|
static |
Definition at line 270 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::Address, llvm::MCOperand::createImm(), llvm::dbgs(), DecodeGPR32RegisterClass(), llvm::MCDisassembler::Fail, Fail, llvm::tgtok::Field, LLVM_DEBUG, readInstruction16(), readInstruction32(), readInstruction48(), readInstruction64(), Size, llvm::ArrayRef< T >::size(), llvm::MCDisassembler::Success, and Success.
Referenced by readInstruction16().
|
static |
Definition at line 196 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), B, llvm::MCOperand::createImm(), llvm::maskTrailingOnes(), and llvm::MCDisassembler::Success.
Referenced by llvm::codeview::BinaryAnnotationIterator::operator*(), and readInstruction16().
|
static |
Definition at line 218 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::dbgs(), decodeBField(), decodeCField(), DecodeGPR32RegisterClass(), llvm::MCDisassembler::Fail, LLVM_DEBUG, and llvm::MCDisassembler::Success.
Referenced by readInstruction16().
|
static |
Definition at line 168 of file ARCDisassembler.cpp.
Referenced by DecodeSymbolicOperandOff().
|
static |
Definition at line 178 of file ARCDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and DecodeSymbolicOperand().
Referenced by DecodeBranchTargetS().
| LLVM_EXTERNAL_VISIBILITY void LLVMInitializeARCDisassembler | ( | ) |
Definition at line 366 of file ARCDisassembler.cpp.
References createARCDisassembler(), llvm::getTheARCTarget(), and llvm::TargetRegistry::RegisterMCDisassembler().
|
static |
Definition at line 78 of file ARCDisassembler.cpp.
References llvm::Address, DecodeBranchTargetS(), DecodeFromCyclicRange(), DecodeLdLImmInstruction(), DecodeLdRLImmInstruction(), DecodeMEMrs9(), DecodeMoveHRegInstruction(), DecodeSignedOperand(), and DecodeStLImmInstruction().
Referenced by DecodeMoveHRegInstruction().
|
static |
Definition at line 50 of file ARCDisassembler.cpp.
Referenced by DecodeMoveHRegInstruction().
|
static |
Definition at line 69 of file ARCDisassembler.cpp.
Referenced by DecodeMoveHRegInstruction().
|
static |
Definition at line 59 of file ARCDisassembler.cpp.
Referenced by DecodeMoveHRegInstruction().
Definition at line 113 of file ARCDisassembler.cpp.
1.8.13