LLVM
8.0.1
|
#include "LanaiDisassembler.h"
#include "Lanai.h"
#include "LanaiSubtarget.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "LanaiGenDisassemblerTables.inc"
Go to the source code of this file.
Namespaces | |
llvm | |
This class represents lattice values for constants. | |
Typedefs | |
typedef MCDisassembler::DecodeStatus | DecodeStatus |
Functions | |
Target & | llvm::getTheLanaiTarget () |
static MCDisassembler * | createLanaiDisassembler (const Target &, const MCSubtargetInfo &STI, MCContext &Ctx) |
void | LLVMInitializeLanaiDisassembler () |
static DecodeStatus | DecodeGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodeRiMemoryValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodeRrMemoryValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodeSplsValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodeBranch (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodePredicateOperand (MCInst &Inst, unsigned Val, uint64_t Address, const void *Decoder) |
static DecodeStatus | decodeShiftImm (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | readInstruction32 (ArrayRef< uint8_t > Bytes, uint64_t &Size, uint32_t &Insn) |
static void | PostOperandDecodeAdjust (MCInst &Instr, uint32_t Insn) |
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 | GPRDecoderTable [] |
Definition at line 26 of file LanaiDisassembler.cpp.
|
static |
Definition at line 32 of file LanaiDisassembler.cpp.
Referenced by LLVMInitializeLanaiDisassembler().
|
static |
Definition at line 217 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCDisassembler::Success, and llvm::MCDisassembler::tryAddingSymbolicOperand().
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 161 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 233 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCDisassembler::Fail, llvm::MCDisassembler::Success, and llvm::LPCC::UNKNOWN.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 172 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), Register, and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 184 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), Register, and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 225 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
|
static |
Definition at line 196 of file LanaiDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), Register, and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::LanaiDisassembler().
void LLVMInitializeLanaiDisassembler | ( | ) |
Definition at line 38 of file LanaiDisassembler.cpp.
References createLanaiDisassembler(), llvm::getTheLanaiTarget(), and llvm::TargetRegistry::RegisterMCDisassembler().
Definition at line 89 of file LanaiDisassembler.cpp.
References llvm::LPAC::ADD, llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MCOperand::isImm(), llvm::MCOperand::isReg(), llvm::isRMOpcode(), llvm::isRRMOpcode(), llvm::isSPLSOpcode(), llvm::LPAC::makePostOp(), llvm::LPAC::makePreOp(), llvm::MCOperand::setImm(), and llvm::MCOperand::setReg().
Referenced by llvm::LanaiDisassembler::getInstruction().
|
static |
Definition at line 74 of file LanaiDisassembler.cpp.
References llvm::MCDisassembler::Fail, llvm::ArrayRef< T >::size(), and llvm::MCDisassembler::Success.
Referenced by llvm::LanaiDisassembler::getInstruction().
|
static |
Definition at line 208 of file LanaiDisassembler.cpp.
References llvm::MCDisassembler::tryAddingSymbolicOperand().
Definition at line 153 of file LanaiDisassembler.cpp.