LLVM 20.0.0git
|
#include "AMDKernelCodeTUtils.h"
#include "AMDKernelCodeT.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "Utils/SIDefinesUtils.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCParser/MCAsmLexer.h"
#include "llvm/MC/MCParser/MCAsmParser.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include "Utils/AMDKernelCodeTInfo.h"
Go to the source code of this file.
Classes | |
class | PrintField |
Macros | |
#define | GEN_HAS_MEMBER(member) |
#define | RECORD(name, altName, print, parse) #name |
#define | RECORD(name, altName, print, parse) #altName |
#define | RECORD(name, altName, print, parse) (IsMCExpr##name::RESULT) |
#define | RECORD(name, altName, print, parse) GetMember##name::Get |
#define | COMPPGM1(name, aname, AccMacro) COMPPGM(name, aname, C_00B848_##AccMacro, S_00B848_##AccMacro, 0) |
#define | COMPPGM2(name, aname, AccMacro) COMPPGM(name, aname, C_00B84C_##AccMacro, S_00B84C_##AccMacro, 32) |
#define | PRINTFIELD(sname, aname, name) PrintField::printField<FLD_T(name)> |
#define | PRINTCOMP(Complement, PGMType) |
#define | RECORD(name, altName, print, parse) print |
#define | COMPPGM1(name, aname, AccMacro) COMPPGM(name, aname, G_00B848_##AccMacro, C_00B848_##AccMacro, 0) |
#define | COMPPGM2(name, aname, AccMacro) COMPPGM(name, aname, G_00B84C_##AccMacro, C_00B84C_##AccMacro, 32) |
#define | PARSECOMP(Complement, PGMType) |
#define | RECORD(name, altName, print, parse) parse |
Typedefs | |
using | RetrieveFx = const MCExpr *&(*)(AMDGPUMCKernelCodeT &) |
using | PrintFx = void(*)(StringRef, const AMDGPUMCKernelCodeT &, raw_ostream &, MCContext &, AMDGPUMCKernelCodeT::PrintHelper Helper) |
using | ParseFx = bool(*)(AMDGPUMCKernelCodeT &, MCAsmParser &, raw_ostream &) |
#define COMPPGM1 | ( | name, | |
aname, | |||
AccMacro | |||
) | COMPPGM(name, aname, C_00B848_##AccMacro, S_00B848_##AccMacro, 0) |
#define COMPPGM1 | ( | name, | |
aname, | |||
AccMacro | |||
) | COMPPGM(name, aname, G_00B848_##AccMacro, C_00B848_##AccMacro, 0) |
#define COMPPGM2 | ( | name, | |
aname, | |||
AccMacro | |||
) | COMPPGM(name, aname, C_00B84C_##AccMacro, S_00B84C_##AccMacro, 32) |
#define COMPPGM2 | ( | name, | |
aname, | |||
AccMacro | |||
) | COMPPGM(name, aname, G_00B84C_##AccMacro, C_00B84C_##AccMacro, 32) |
#define GEN_HAS_MEMBER | ( | member | ) |
Definition at line 41 of file AMDKernelCodeTUtils.cpp.
#define PARSECOMP | ( | Complement, | |
PGMType | |||
) |
#define PRINTCOMP | ( | Complement, | |
PGMType | |||
) |
#define PRINTFIELD | ( | sname, | |
aname, | |||
name | |||
) | PrintField::printField<FLD_T(name)> |
using ParseFx = bool (*)(AMDGPUMCKernelCodeT &, MCAsmParser &, raw_ostream &) |
Definition at line 338 of file AMDKernelCodeTUtils.cpp.
using PrintFx = void (*)(StringRef, const AMDGPUMCKernelCodeT &, raw_ostream &, MCContext &, AMDGPUMCKernelCodeT::PrintHelper Helper) |
Definition at line 252 of file AMDKernelCodeTUtils.cpp.
using RetrieveFx = const MCExpr *&(*)(AMDGPUMCKernelCodeT &) |
Definition at line 195 of file AMDKernelCodeTUtils.cpp.
|
static |
Definition at line 206 of file AMDKernelCodeTUtils.cpp.
References assert(), llvm::StringMap< ValueTy, AllocatorTy >::insert(), and llvm::ArrayRef< T >::size().
Referenced by get_amd_kernel_code_t_FieldIndex().
|
static |
Definition at line 285 of file AMDKernelCodeTUtils.cpp.
References llvm::AsmToken::Equal, llvm::MCAsmParser::getLexer(), llvm::MCAsmLexer::isNot(), llvm::MCAsmLexer::Lex(), and llvm::MCAsmParser::parseAbsoluteExpression().
Referenced by parseBitField(), and parseField().
|
static |
Definition at line 217 of file AMDKernelCodeTUtils.cpp.
References createIndexMap(), get_amd_kernel_code_t_FldAltNames(), get_amd_kernel_code_t_FldNames(), and name.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 176 of file AMDKernelCodeTUtils.cpp.
Referenced by get_amd_kernel_code_t_FieldIndex().
|
static |
Definition at line 166 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::EmitKernelCodeT(), get_amd_kernel_code_t_FieldIndex(), and printAmdKernelCodeField().
|
static |
Definition at line 197 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::getMCExprForIndex().
Definition at line 340 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 256 of file AMDKernelCodeTUtils.cpp.
Referenced by printAmdKernelCodeField().
Definition at line 186 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::EmitKernelCodeT(), and llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 312 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, and expectAbsExpression().
|
static |
Definition at line 323 of file AMDKernelCodeTUtils.cpp.
References llvm::AsmToken::Equal, llvm::MCAsmParser::getLexer(), llvm::MCAsmLexer::isNot(), llvm::MCAsmLexer::Lex(), and llvm::MCAsmParser::parseExpression().
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 302 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, and expectAbsExpression().
|
static |
Definition at line 376 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, get_amd_kernel_code_t_FldNames(), getPrinterTable(), OS, and Printer.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::EmitKernelCodeT().
|
static |
Definition at line 245 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, Name, and OS.