LLVM 20.0.0git
|
#include "AMDKernelCodeTUtils.h"
#include "AMDKernelCodeT.h"
#include "SIDefines.h"
#include "Utils/AMDGPUBaseInfo.h"
#include "Utils/SIDefinesUtils.h"
#include "llvm/ADT/IndexedMap.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 42 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 339 of file AMDKernelCodeTUtils.cpp.
using PrintFx = void (*)(StringRef, const AMDGPUMCKernelCodeT &, raw_ostream &, MCContext &, AMDGPUMCKernelCodeT::PrintHelper Helper) |
Definition at line 253 of file AMDKernelCodeTUtils.cpp.
using RetrieveFx = const MCExpr *&(*)(AMDGPUMCKernelCodeT &) |
Definition at line 196 of file AMDKernelCodeTUtils.cpp.
|
static |
Definition at line 207 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 286 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 218 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 177 of file AMDKernelCodeTUtils.cpp.
Referenced by get_amd_kernel_code_t_FieldIndex().
|
static |
Definition at line 167 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::EmitKernelCodeT(), get_amd_kernel_code_t_FieldIndex(), and printAmdKernelCodeField().
|
static |
Definition at line 198 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::getMCExprForIndex().
Definition at line 341 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 257 of file AMDKernelCodeTUtils.cpp.
Referenced by printAmdKernelCodeField().
Definition at line 187 of file AMDKernelCodeTUtils.cpp.
Referenced by llvm::AMDGPU::AMDGPUMCKernelCodeT::EmitKernelCodeT(), and llvm::AMDGPU::AMDGPUMCKernelCodeT::ParseKernelCodeT().
|
static |
Definition at line 313 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, and expectAbsExpression().
|
static |
Definition at line 324 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 303 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, and expectAbsExpression().
|
static |
Definition at line 377 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 246 of file AMDKernelCodeTUtils.cpp.
References llvm::CallingConv::C, Name, and OS.