LLVM 20.0.0git
|
This file is part of the WebAssembly Disassembler. More...
#include "MCTargetDesc/WebAssemblyMCTypeUtilities.h"
#include "TargetInfo/WebAssemblyTargetInfo.h"
#include "llvm/BinaryFormat/Wasm.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/MCInstrInfo.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolWasm.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/LEB128.h"
#include "WebAssemblyGenDisassemblerTables.inc"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "wasm-disassembler" |
Typedefs | |
using | DecodeStatus = MCDisassembler::DecodeStatus |
Functions | |
static MCDisassembler * | createWebAssemblyDisassembler (const Target &T, const MCSubtargetInfo &STI, MCContext &Ctx) |
LLVM_EXTERNAL_VISIBILITY void | LLVMInitializeWebAssemblyDisassembler () |
static int | nextByte (ArrayRef< uint8_t > Bytes, uint64_t &Size) |
static bool | nextLEB (int64_t &Val, ArrayRef< uint8_t > Bytes, uint64_t &Size, bool Signed) |
static bool | parseLEBImmediate (MCInst &MI, uint64_t &Size, ArrayRef< uint8_t > Bytes, bool Signed) |
template<typename T > | |
bool | parseImmediate (MCInst &MI, uint64_t &Size, ArrayRef< uint8_t > Bytes) |
This file is part of the WebAssembly Disassembler.
It contains code to translate the data produced by the decoder into MCInsts.
Definition in file WebAssemblyDisassembler.cpp.
#define DEBUG_TYPE "wasm-disassembler" |
Definition at line 35 of file WebAssemblyDisassembler.cpp.
Definition at line 37 of file WebAssemblyDisassembler.cpp.
|
static |
Definition at line 62 of file WebAssemblyDisassembler.cpp.
Referenced by LLVMInitializeWebAssemblyDisassembler().
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyDisassembler | ( | ) |
Definition at line 70 of file WebAssemblyDisassembler.cpp.
References createWebAssemblyDisassembler(), llvm::getTheWebAssemblyTarget32(), llvm::getTheWebAssemblyTarget64(), and llvm::TargetRegistry::RegisterMCDisassembler().
Definition at line 78 of file WebAssemblyDisassembler.cpp.
References llvm::ArrayRef< T >::size(), and Size.
Referenced by readPrefixes().
|
static |
Definition at line 86 of file WebAssemblyDisassembler.cpp.
References llvm::ArrayRef< T >::data(), llvm::decodeSLEB128(), llvm::decodeULEB128(), N, Signed, llvm::ArrayRef< T >::size(), and Size.
Referenced by parseLEBImmediate().
bool parseImmediate | ( | MCInst & | MI, |
uint64_t & | Size, | ||
ArrayRef< uint8_t > | Bytes | ||
) |
Definition at line 111 of file WebAssemblyDisassembler.cpp.
References llvm::MCOperand::createDFPImm(), llvm::MCOperand::createImm(), llvm::ArrayRef< T >::data(), MI, llvm::ArrayRef< T >::size(), and Size.