LLVM
8.0.1
|
This file contains definition for AMDGPU ISA disassembler. More...
#include "Disassembler/AMDGPUDisassembler.h"
#include "AMDGPU.h"
#include "AMDGPURegisterInfo.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "llvm-c/Disassembler.h"
#include "llvm/ADT/APInt.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCDisassembler/MCDisassembler.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCFixedLenDisassembler.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <tuple>
#include <vector>
#include "AMDGPUGenDisassemblerTables.inc"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "amdgpu-disassembler" |
#define | DECODE_OPERAND(StaticDecoderName, DecoderName) |
#define | DECODE_OPERAND_REG(RegClass) DECODE_OPERAND(Decode##RegClass##RegisterClass, decodeOperand_##RegClass) |
#define | DECODE_SDWA(DecName) DECODE_OPERAND(decodeSDWA##DecName, decodeSDWA##DecName) |
Typedefs | |
using | DecodeStatus = llvm::MCDisassembler::DecodeStatus |
This file contains definition for AMDGPU ISA disassembler.
Definition in file AMDGPUDisassembler.cpp.
#define DEBUG_TYPE "amdgpu-disassembler" |
Definition at line 53 of file AMDGPUDisassembler.cpp.
#define DECODE_OPERAND | ( | StaticDecoderName, | |
DecoderName | |||
) |
Definition at line 88 of file AMDGPUDisassembler.cpp.
#define DECODE_OPERAND_REG | ( | RegClass | ) | DECODE_OPERAND(Decode##RegClass##RegisterClass, decodeOperand_##RegClass) |
Definition at line 97 of file AMDGPUDisassembler.cpp.
#define DECODE_SDWA | ( | DecName | ) | DECODE_OPERAND(decodeSDWA##DecName, decodeSDWA##DecName) |
Definition at line 134 of file AMDGPUDisassembler.cpp.
Definition at line 55 of file AMDGPUDisassembler.cpp.
|
inlinestatic |
Definition at line 58 of file AMDGPUDisassembler.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::isValid(), llvm::MCDisassembler::SoftFail, and llvm::MCDisassembler::Success.
Referenced by convertFPR32ToFPR64(), decodeOperand_VSrc16(), decodeOperand_VSrcV216(), decodeSoppBrTarget(), EmitNops(), llvm::NamedMDNode::getParent(), and llvm::VPUser::VPUser().
|
static |
Definition at line 934 of file AMDGPUDisassembler.cpp.
References llvm::AMDGPUDisassembler::AMDGPUDisassembler(), and llvm::Target::createMCInstrInfo().
Referenced by LLVMInitializeAMDGPUDisassembler().
|
static |
Definition at line 925 of file AMDGPUDisassembler.cpp.
Referenced by LLVMInitializeAMDGPUDisassembler().
|
static |
Definition at line 118 of file AMDGPUDisassembler.cpp.
References addOperand().
|
static |
Definition at line 126 of file AMDGPUDisassembler.cpp.
References addOperand().
|
static |
Definition at line 76 of file AMDGPUDisassembler.cpp.
References addOperand(), llvm::MCOperand::createImm(), llvm::APInt::sext(), and llvm::MCDisassembler::Success.
Definition at line 147 of file AMDGPUDisassembler.cpp.
References assert(), llvm::ArrayRef< T >::data(), llvm::ArrayRef< T >::size(), llvm::ArrayRef< T >::slice(), and T.
|
static |
Definition at line 599 of file AMDGPUDisassembler.cpp.
References llvm_unreachable.
Referenced by llvm::AMDGPUDisassembler::decodeFPImmed().
|
static |
Definition at line 549 of file AMDGPUDisassembler.cpp.
References llvm::FloatToBits(), and llvm_unreachable.
Referenced by llvm::AMDGPUDisassembler::decodeFPImmed().
|
static |
Definition at line 574 of file AMDGPUDisassembler.cpp.
References llvm::DoubleToBits(), and llvm_unreachable.
Referenced by llvm::AMDGPUDisassembler::decodeFPImmed().
Definition at line 65 of file AMDGPUDisassembler.cpp.
References llvm::MCInst::begin(), llvm::AMDGPU::getNamedOperandIdx(), llvm::MCInst::getOpcode(), I, and llvm::MCInst::insert().
Referenced by llvm::AMDGPUDisassembler::convertSDWAInst(), and llvm::AMDGPUDisassembler::getInstruction().
void LLVMInitializeAMDGPUDisassembler | ( | ) |
Definition at line 940 of file AMDGPUDisassembler.cpp.
References createAMDGPUDisassembler(), createAMDGPUSymbolizer(), llvm::getTheGCNTarget(), llvm::TargetRegistry::RegisterMCDisassembler(), and llvm::TargetRegistry::RegisterMCSymbolizer().