LLVM 20.0.0git
|
#include "MCTargetDesc/BPFMCTargetDesc.h"
#include "TargetInfo/BPFTargetInfo.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDecoderOps.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/TargetParser/SubtargetFeature.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 MCDisassembler *Decoder) |
Functions | |
static MCDisassembler * | createBPFDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
LLVM_EXTERNAL_VISIBILITY void | LLVMInitializeBPFDisassembler () |
static DecodeStatus | DecodeGPRRegisterClass (MCInst &Inst, unsigned RegNo, uint64_t, const MCDisassembler *) |
static DecodeStatus | DecodeGPR32RegisterClass (MCInst &Inst, unsigned RegNo, uint64_t, const MCDisassembler *) |
static DecodeStatus | decodeMemoryOpValue (MCInst &Inst, unsigned Insn, uint64_t Address, const MCDisassembler *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 28 of file BPFDisassembler.cpp.
typedef DecodeStatus(* DecodeFunc) (MCInst &MI, unsigned insn, uint64_t Address, const MCDisassembler *Decoder) |
Definition at line 223 of file BPFDisassembler.cpp.
Definition at line 30 of file BPFDisassembler.cpp.
|
static |
Definition at line 79 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, GPR32DecoderTable, and llvm::MCDisassembler::Success.
|
static |
Definition at line 100 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, GPRDecoderTable, and llvm::MCDisassembler::Success.
|
static |
Definition at line 126 of file BPFDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), llvm::MCOperand::createReg(), llvm::MCDisassembler::Fail, GPRDecoderTable, Insn, llvm::Offset, and llvm::MCDisassembler::Success.
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeBPFDisassembler | ( | ) |
Definition at line 86 of file BPFDisassembler.cpp.
References createBPFDisassembler(), llvm::getTheBPFbeTarget(), llvm::getTheBPFleTarget(), llvm::getTheBPFTarget(), and llvm::TargetRegistry::RegisterMCDisassembler().
|
static |
Definition at line 141 of file BPFDisassembler.cpp.
References llvm::MCDisassembler::Fail, Hi, Insn, Lo, llvm::Make_64(), llvm::ArrayRef< T >::size(), Size, and llvm::MCDisassembler::Success.
Definition at line 111 of file BPFDisassembler.cpp.
Referenced by DecodeGPR32RegisterClass().
Definition at line 96 of file BPFDisassembler.cpp.
Referenced by DecodeGPRRegisterClass(), and decodeMemoryOpValue().