LLVM 17.0.0git
|
#include "AMDKernelCodeT.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "MCTargetDesc/AMDGPUTargetStreamer.h"
#include "SIDefines.h"
#include "SIInstrInfo.h"
#include "SIRegisterInfo.h"
#include "TargetInfo/AMDGPUTargetInfo.h"
#include "Utils/AMDGPUAsmUtils.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "Utils/AMDKernelCodeTUtils.h"
#include "llvm/ADT/APFloat.h"
#include "llvm/ADT/SmallBitVector.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/ADT/Twine.h"
#include "llvm/BinaryFormat/ELF.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstrDesc.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCParser/MCParsedAsmOperand.h"
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/AMDGPUMetadata.h"
#include "llvm/Support/AMDHSAKernelDescriptor.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/MachineValueType.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetParser.h"
#include <optional>
#include "AMDGPUGenAsmMatcher.inc"
Go to the source code of this file.
Classes | |
struct | RegInfo |
Macros | |
#define | PARSE_BITS_ENTRY(FIELD, ENTRY, VALUE, RANGE) |
#define | GET_REGISTER_MATCHER |
#define | GET_MATCHER_IMPLEMENTATION |
#define | GET_MNEMONIC_SPELL_CHECKER |
#define | GET_MNEMONIC_CHECKER |
Auto-generated Match Functions | |
{ | |
#define | GET_ASSEMBLER_HEADER |
Typedefs | |
using | OperandIndices = SmallVector< int16_t, MAX_SRC_OPERANDS_NUM > |
Variables | |
static constexpr RegInfo | RegularRegisters [] |
constexpr unsigned | MAX_SRC_OPERANDS_NUM = 6 |
#define GET_ASSEMBLER_HEADER |
Definition at line 1260 of file AMDGPUAsmParser.cpp.
#define GET_MATCHER_IMPLEMENTATION |
Definition at line 9080 of file AMDGPUAsmParser.cpp.
#define GET_MNEMONIC_CHECKER |
Definition at line 9082 of file AMDGPUAsmParser.cpp.
#define GET_MNEMONIC_SPELL_CHECKER |
Definition at line 9081 of file AMDGPUAsmParser.cpp.
#define GET_REGISTER_MATCHER |
Definition at line 9079 of file AMDGPUAsmParser.cpp.
using OperandIndices = SmallVector<int16_t, MAX_SRC_OPERANDS_NUM> |
Definition at line 3422 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 6077 of file AMDGPUAsmParser.cpp.
References llvm::MCInst::addOperand(), llvm::MCOperand::createImm(), Default, Idx, and Operands.
|
static |
|
static |
|
static |
Definition at line 1885 of file AMDGPUAsmParser.cpp.
References llvm::APFloat::convert(), and getFltSemantics().
|
static |
Definition at line 8002 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 7985 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 7977 of file AMDGPUAsmParser.cpp.
References Mul.
void cvtVOP3DstOpSelOnly | ( | MCInst & | Inst | ) |
Definition at line 8039 of file AMDGPUAsmParser.cpp.
References assert(), llvm::SISrcMods::DST_OP_SEL, llvm::MCOperand::getImm(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), and llvm::MCOperand::setImm().
|
static |
Definition at line 7340 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 6517 of file AMDGPUAsmParser.cpp.
References decode(), llvm::encode(), and llvm::Failed().
Definition at line 3274 of file AMDGPUAsmParser.cpp.
References llvm::AMDGPUAsmVariants::DEFAULT, llvm::AMDGPUAsmVariants::DPP, llvm::AMDGPUAsmVariants::SDWA, llvm::AMDGPUAsmVariants::SDWA9, llvm::AMDGPUAsmVariants::VOP3, and llvm::AMDGPUAsmVariants::VOP3_DPP.
|
static |
Definition at line 1836 of file AMDGPUAsmParser.cpp.
References getFltSemantics(), and llvm::MVT::getSizeInBits().
|
static |
Definition at line 1823 of file AMDGPUAsmParser.cpp.
References llvm_unreachable, and Size.
Referenced by canLosslesslyConvertToFPType(), and getFltSemantics().
|
static |
Definition at line 1840 of file AMDGPUAsmParser.cpp.
References llvm_unreachable.
|
static |
Definition at line 2318 of file AMDGPUAsmParser.cpp.
Definition at line 2584 of file AMDGPUAsmParser.cpp.
Definition at line 2577 of file AMDGPUAsmParser.cpp.
References RegularRegisters.
Definition at line 2431 of file AMDGPUAsmParser.cpp.
References llvm::StringSwitch< T, R >::Case(), llvm::StringSwitch< T, R >::Default(), and RegName.
|
static |
Definition at line 3426 of file AMDGPUAsmParser.cpp.
References llvm::AMDGPU::getNamedOperandIdx(), and llvm::AMDGPU::isVOPD().
|
static |
Definition at line 4333 of file AMDGPUAsmParser.cpp.
References llvm::MCRegisterClass::contains(), llvm::MCInst::getOpcode(), llvm::MCInst::getOperand(), and MRI.
Referenced by decodeOperand_AVLdSt_Any().
Definition at line 1907 of file AMDGPUAsmParser.cpp.
References llvm::MVT::getScalarType(), llvm::MVT::i16, and llvm::AMDGPU::isInlinableIntLiteral().
|
static |
Definition at line 4774 of file AMDGPUAsmParser.cpp.
Definition at line 3760 of file AMDGPUAsmParser.cpp.
|
static |
Definition at line 8075 of file AMDGPUAsmParser.cpp.
References llvm::MCInstrDesc::getOperandConstraint(), llvm::MCInstrDesc::NumOperands, and llvm::MCInstrDesc::operands().
|
static |
Definition at line 2570 of file AMDGPUAsmParser.cpp.
Definition at line 3930 of file AMDGPUAsmParser.cpp.
Definition at line 1903 of file AMDGPUAsmParser.cpp.
References llvm::isIntN(), llvm::isUIntN(), and Size.
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeAMDGPUAsmParser | ( | ) |
Force static initialization.
Definition at line 9074 of file AMDGPUAsmParser.cpp.
References A, B, llvm::getTheAMDGPUTarget(), and llvm::getTheGCNTarget().
|
constexpr |
Definition at line 3421 of file AMDGPUAsmParser.cpp.
|
staticconstexpr |
Definition at line 2562 of file AMDGPUAsmParser.cpp.
Referenced by getRegularRegInfo().