LLVM
8.0.1
|
#include "MCTargetDesc/BPFMCTargetDesc.h"
#include "llvm/ADT/ArrayRef.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/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include <cstdint>
#include "BPFGenDisassemblerTables.inc"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "bpf-disassembler" |
Typedefs | |
typedef MCDisassembler::DecodeStatus | DecodeStatus |
typedef DecodeStatus(* | DecodeFunc) (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) |
Functions | |
static MCDisassembler * | createBPFDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
void | LLVMInitializeBPFDisassembler () |
static DecodeStatus | DecodeGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t, const void *) |
static DecodeStatus | DecodeGPR32RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t, const void *) |
static DecodeStatus | decodeMemoryOpValue (MCInst &Inst, unsigned Insn, uint64_t Address, const void *Decoder) |
static DecodeStatus | readInstruction64 (ArrayRef< uint8_t > Bytes, uint64_t Address, uint64_t &Size, uint64_t &Insn, bool IsLittleEndian) |
Variables | |
static const unsigned | GPRDecoderTable [] |
static const unsigned | GPR32DecoderTable [] |
#define DEBUG_TYPE "bpf-disassembler" |
Definition at line 27 of file BPFDisassembler.cpp.
typedef DecodeStatus(* DecodeFunc) (MCInst &MI, unsigned insn, uint64_t Address, const void *Decoder) |
Definition at line 220 of file BPFDisassembler.cpp.
Definition at line 29 of file BPFDisassembler.cpp.
|
static |
Definition at line 80 of file BPFDisassembler.cpp.
Referenced by LLVMInitializeBPFDisassembler().
|
static |
Definition at line 116 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
|
static |
Definition at line 101 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, Reg, and llvm::MCDisassembler::Success.
|
static |
Definition at line 127 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), Register, and llvm::MCDisassembler::Success.
void LLVMInitializeBPFDisassembler | ( | ) |
Definition at line 87 of file BPFDisassembler.cpp.
References createBPFDisassembler(), llvm::getTheBPFbeTarget(), llvm::getTheBPFleTarget(), llvm::getTheBPFTarget(), and llvm::TargetRegistry::RegisterMCDisassembler().
|
static |
Definition at line 138 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::Address, llvm::MCInst::clear(), llvm::MCOperand::createReg(), llvm::X86Disassembler::decodeInstruction(), llvm::MCDisassembler::Fail, llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), llvm::MipsISD::Hi, llvm::MipsISD::Lo, llvm::Make_64(), R6, Size, llvm::ArrayRef< T >::size(), and llvm::MCDisassembler::Success.
Definition at line 112 of file BPFDisassembler.cpp.