LLVM 20.0.0git
|
#include "Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h"
Static Public Member Functions | |
static StringRef | getArchNameFromElfMach (unsigned ElfMach) |
static unsigned | getElfMach (StringRef GPU) |
Protected Member Functions | |
MCContext & | getContext () const |
Protected Attributes | |
std::optional< AMDGPU::IsaInfo::AMDGPUTargetID > | TargetID |
unsigned | CodeObjectVersion |
Protected Attributes inherited from llvm::MCTargetStreamer | |
MCStreamer & | Streamer |
Definition at line 31 of file AMDGPUTargetStreamer.h.
|
inline |
Definition at line 42 of file AMDGPUTargetStreamer.h.
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 60 of file AMDGPUTargetStreamer.h.
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 58 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::emitFunctionEntryLabel().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 95 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::emitFunctionBodyEnd().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 56 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::emitFunctionBodyStart().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 86 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::doFinalization().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 50 of file AMDGPUTargetStreamer.h.
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer.
Definition at line 52 of file AMDGPUTargetStreamer.h.
References CodeObjectVersion.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitDirectiveAMDHSACodeObjectVersion().
|
inlinevirtual |
Definition at line 81 of file AMDGPUTargetStreamer.h.
|
inlinevirtual |
Emit HSA Metadata.
When Strict
is true, known metadata elements must already be well-typed. When Strict
is false, known types are inferred and the HSAMetadata
structure is updated with the correct types.
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 76 of file AMDGPUTargetStreamer.h.
Referenced by EmitHSAMetadataV3(), and llvm::AMDGPU::HSAMD::MetadataStreamerMsgPackV4::emitTo().
Definition at line 47 of file AMDGPUTargetStreamer.cpp.
References EmitHSAMetadata(), and llvm::msgpack::Document::fromYAML().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 64 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::emitEndOfAsmFile().
|
inlinevirtual |
Reimplemented in llvm::AMDGPUTargetAsmStreamer, and llvm::AMDGPUTargetELFStreamer.
Definition at line 89 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUAsmPrinter::emitFunctionBodyStart().
Definition at line 54 of file AMDGPUTargetStreamer.cpp.
References llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1010, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1011, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1012, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1013, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1030, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1031, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1032, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1033, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1034, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1035, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1036, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX10_1_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1100, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1101, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1102, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1103, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1150, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1151, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1152, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1200, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1201, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX12_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX600, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX601, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX602, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX700, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX701, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX702, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX703, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX704, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX705, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX801, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX802, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX803, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX805, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX810, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX900, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX902, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX904, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX906, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX908, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX909, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX90A, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX90C, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX940, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX941, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX942, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX9_GENERIC, llvm::ELF::EF_AMDGPU_MACH_NONE, llvm::ELF::EF_AMDGPU_MACH_R600_BARTS, llvm::ELF::EF_AMDGPU_MACH_R600_CAICOS, llvm::ELF::EF_AMDGPU_MACH_R600_CAYMAN, llvm::ELF::EF_AMDGPU_MACH_R600_CEDAR, llvm::ELF::EF_AMDGPU_MACH_R600_CYPRESS, llvm::ELF::EF_AMDGPU_MACH_R600_JUNIPER, llvm::ELF::EF_AMDGPU_MACH_R600_R600, llvm::ELF::EF_AMDGPU_MACH_R600_R630, llvm::ELF::EF_AMDGPU_MACH_R600_REDWOOD, llvm::ELF::EF_AMDGPU_MACH_R600_RS880, llvm::ELF::EF_AMDGPU_MACH_R600_RV670, llvm::ELF::EF_AMDGPU_MACH_R600_RV710, llvm::ELF::EF_AMDGPU_MACH_R600_RV730, llvm::ELF::EF_AMDGPU_MACH_R600_RV770, llvm::ELF::EF_AMDGPU_MACH_R600_SUMO, llvm::ELF::EF_AMDGPU_MACH_R600_TURKS, llvm::AMDGPU::getArchNameAMDGCN(), llvm::AMDGPU::getArchNameR600(), llvm::AMDGPU::GK_BARTS, llvm::AMDGPU::GK_CAICOS, llvm::AMDGPU::GK_CAYMAN, llvm::AMDGPU::GK_CEDAR, llvm::AMDGPU::GK_CYPRESS, llvm::AMDGPU::GK_GFX1010, llvm::AMDGPU::GK_GFX1011, llvm::AMDGPU::GK_GFX1012, llvm::AMDGPU::GK_GFX1013, llvm::AMDGPU::GK_GFX1030, llvm::AMDGPU::GK_GFX1031, llvm::AMDGPU::GK_GFX1032, llvm::AMDGPU::GK_GFX1033, llvm::AMDGPU::GK_GFX1034, llvm::AMDGPU::GK_GFX1035, llvm::AMDGPU::GK_GFX1036, llvm::AMDGPU::GK_GFX10_1_GENERIC, llvm::AMDGPU::GK_GFX10_3_GENERIC, llvm::AMDGPU::GK_GFX1100, llvm::AMDGPU::GK_GFX1101, llvm::AMDGPU::GK_GFX1102, llvm::AMDGPU::GK_GFX1103, llvm::AMDGPU::GK_GFX1150, llvm::AMDGPU::GK_GFX1151, llvm::AMDGPU::GK_GFX1152, llvm::AMDGPU::GK_GFX11_GENERIC, llvm::AMDGPU::GK_GFX1200, llvm::AMDGPU::GK_GFX1201, llvm::AMDGPU::GK_GFX12_GENERIC, llvm::AMDGPU::GK_GFX600, llvm::AMDGPU::GK_GFX601, llvm::AMDGPU::GK_GFX602, llvm::AMDGPU::GK_GFX700, llvm::AMDGPU::GK_GFX701, llvm::AMDGPU::GK_GFX702, llvm::AMDGPU::GK_GFX703, llvm::AMDGPU::GK_GFX704, llvm::AMDGPU::GK_GFX705, llvm::AMDGPU::GK_GFX801, llvm::AMDGPU::GK_GFX802, llvm::AMDGPU::GK_GFX803, llvm::AMDGPU::GK_GFX805, llvm::AMDGPU::GK_GFX810, llvm::AMDGPU::GK_GFX900, llvm::AMDGPU::GK_GFX902, llvm::AMDGPU::GK_GFX904, llvm::AMDGPU::GK_GFX906, llvm::AMDGPU::GK_GFX908, llvm::AMDGPU::GK_GFX909, llvm::AMDGPU::GK_GFX90A, llvm::AMDGPU::GK_GFX90C, llvm::AMDGPU::GK_GFX940, llvm::AMDGPU::GK_GFX941, llvm::AMDGPU::GK_GFX942, llvm::AMDGPU::GK_GFX9_GENERIC, llvm::AMDGPU::GK_JUNIPER, llvm::AMDGPU::GK_NONE, llvm::AMDGPU::GK_R600, llvm::AMDGPU::GK_R630, llvm::AMDGPU::GK_REDWOOD, llvm::AMDGPU::GK_RS880, llvm::AMDGPU::GK_RV670, llvm::AMDGPU::GK_RV710, llvm::AMDGPU::GK_RV730, llvm::AMDGPU::GK_RV770, llvm::AMDGPU::GK_SUMO, and llvm::AMDGPU::GK_TURKS.
|
inlineprotected |
Definition at line 39 of file AMDGPUTargetStreamer.h.
References llvm::MCStreamer::getContext(), and llvm::MCTargetStreamer::Streamer.
Referenced by llvm::AMDGPUTargetELFStreamer::emitAMDGPULDS(), llvm::AMDGPUTargetELFStreamer::EmitAMDGPUSymbolType(), llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), llvm::AMDGPUTargetAsmStreamer::EmitAMDKernelCodeT(), llvm::AMDGPUTargetELFStreamer::EmitAMDKernelCodeT(), llvm::AMDGPUTargetELFStreamer::EmitHSAMetadata(), llvm::AMDGPUTargetELFStreamer::EmitISAVersion(), and llvm::AMDGPUTargetELFStreamer::finish().
Definition at line 136 of file AMDGPUTargetStreamer.cpp.
References llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1010, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1011, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1012, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1013, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1030, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1031, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1032, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1033, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1034, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1035, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1036, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX10_1_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX10_3_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1100, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1101, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1102, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1103, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1150, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1151, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1152, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX11_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1200, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX1201, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX12_GENERIC, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX600, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX601, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX602, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX700, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX701, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX702, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX703, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX704, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX705, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX801, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX802, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX803, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX805, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX810, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX900, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX902, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX904, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX906, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX908, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX909, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX90A, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX90C, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX940, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX941, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX942, llvm::ELF::EF_AMDGPU_MACH_AMDGCN_GFX9_GENERIC, llvm::ELF::EF_AMDGPU_MACH_NONE, llvm::ELF::EF_AMDGPU_MACH_R600_BARTS, llvm::ELF::EF_AMDGPU_MACH_R600_CAICOS, llvm::ELF::EF_AMDGPU_MACH_R600_CAYMAN, llvm::ELF::EF_AMDGPU_MACH_R600_CEDAR, llvm::ELF::EF_AMDGPU_MACH_R600_CYPRESS, llvm::ELF::EF_AMDGPU_MACH_R600_JUNIPER, llvm::ELF::EF_AMDGPU_MACH_R600_R600, llvm::ELF::EF_AMDGPU_MACH_R600_R630, llvm::ELF::EF_AMDGPU_MACH_R600_REDWOOD, llvm::ELF::EF_AMDGPU_MACH_R600_RS880, llvm::ELF::EF_AMDGPU_MACH_R600_RV670, llvm::ELF::EF_AMDGPU_MACH_R600_RV710, llvm::ELF::EF_AMDGPU_MACH_R600_RV730, llvm::ELF::EF_AMDGPU_MACH_R600_RV770, llvm::ELF::EF_AMDGPU_MACH_R600_SUMO, llvm::ELF::EF_AMDGPU_MACH_R600_TURKS, llvm::AMDGPU::GK_BARTS, llvm::AMDGPU::GK_CAICOS, llvm::AMDGPU::GK_CAYMAN, llvm::AMDGPU::GK_CEDAR, llvm::AMDGPU::GK_CYPRESS, llvm::AMDGPU::GK_GFX1010, llvm::AMDGPU::GK_GFX1011, llvm::AMDGPU::GK_GFX1012, llvm::AMDGPU::GK_GFX1013, llvm::AMDGPU::GK_GFX1030, llvm::AMDGPU::GK_GFX1031, llvm::AMDGPU::GK_GFX1032, llvm::AMDGPU::GK_GFX1033, llvm::AMDGPU::GK_GFX1034, llvm::AMDGPU::GK_GFX1035, llvm::AMDGPU::GK_GFX1036, llvm::AMDGPU::GK_GFX10_1_GENERIC, llvm::AMDGPU::GK_GFX10_3_GENERIC, llvm::AMDGPU::GK_GFX1100, llvm::AMDGPU::GK_GFX1101, llvm::AMDGPU::GK_GFX1102, llvm::AMDGPU::GK_GFX1103, llvm::AMDGPU::GK_GFX1150, llvm::AMDGPU::GK_GFX1151, llvm::AMDGPU::GK_GFX1152, llvm::AMDGPU::GK_GFX11_GENERIC, llvm::AMDGPU::GK_GFX1200, llvm::AMDGPU::GK_GFX1201, llvm::AMDGPU::GK_GFX12_GENERIC, llvm::AMDGPU::GK_GFX600, llvm::AMDGPU::GK_GFX601, llvm::AMDGPU::GK_GFX602, llvm::AMDGPU::GK_GFX700, llvm::AMDGPU::GK_GFX701, llvm::AMDGPU::GK_GFX702, llvm::AMDGPU::GK_GFX703, llvm::AMDGPU::GK_GFX704, llvm::AMDGPU::GK_GFX705, llvm::AMDGPU::GK_GFX801, llvm::AMDGPU::GK_GFX802, llvm::AMDGPU::GK_GFX803, llvm::AMDGPU::GK_GFX805, llvm::AMDGPU::GK_GFX810, llvm::AMDGPU::GK_GFX900, llvm::AMDGPU::GK_GFX902, llvm::AMDGPU::GK_GFX904, llvm::AMDGPU::GK_GFX906, llvm::AMDGPU::GK_GFX908, llvm::AMDGPU::GK_GFX909, llvm::AMDGPU::GK_GFX90A, llvm::AMDGPU::GK_GFX90C, llvm::AMDGPU::GK_GFX940, llvm::AMDGPU::GK_GFX941, llvm::AMDGPU::GK_GFX942, llvm::AMDGPU::GK_GFX9_GENERIC, llvm::AMDGPU::GK_JUNIPER, llvm::AMDGPU::GK_NONE, llvm::AMDGPU::GK_R600, llvm::AMDGPU::GK_R630, llvm::AMDGPU::GK_REDWOOD, llvm::AMDGPU::GK_RS880, llvm::AMDGPU::GK_RV670, llvm::AMDGPU::GK_RV710, llvm::AMDGPU::GK_RV730, llvm::AMDGPU::GK_RV770, llvm::AMDGPU::GK_SUMO, llvm::AMDGPU::GK_TURKS, llvm_unreachable, llvm::AMDGPU::parseArchAMDGCN(), and llvm::AMDGPU::parseArchR600().
|
inline |
Definition at line 48 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUTargetAsmStreamer::finish(), and llvm::AMDGPUTargetELFStreamer::finish().
|
inline |
Definition at line 107 of file AMDGPUTargetStreamer.h.
References TargetID.
|
inline |
Definition at line 104 of file AMDGPUTargetStreamer.h.
References TargetID.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), llvm::AMDGPUTargetAsmStreamer::EmitDirectiveAMDGCNTarget(), llvm::AMDGPUAsmPrinter::emitFunctionBodyStart(), llvm::AMDGPUTargetAsmStreamer::EmitISAVersion(), llvm::AMDGPUTargetELFStreamer::EmitISAVersion(), and initializeTargetID().
|
inline |
Definition at line 110 of file AMDGPUTargetStreamer.h.
References assert(), and TargetID.
Referenced by initializeTargetID().
|
inline |
Definition at line 114 of file AMDGPUTargetStreamer.h.
References assert(), getTargetID(), and initializeTargetID().
|
protected |
Definition at line 37 of file AMDGPUTargetStreamer.h.
Referenced by llvm::AMDGPUTargetAsmStreamer::EmitAmdhsaKernelDescriptor(), EmitDirectiveAMDHSACodeObjectVersion(), and llvm::AMDGPUTargetELFStreamer::finish().
|
protected |
Definition at line 36 of file AMDGPUTargetStreamer.h.
Referenced by getTargetID(), and initializeTargetID().