26 AMDGPUELFObjectWriter(
bool Is64Bit, uint8_t OSABI,
bool HasRelocationAddend);
30 const MCFixup &Fixup,
bool IsPCRel)
const override;
36 AMDGPUELFObjectWriter::AMDGPUELFObjectWriter(
bool Is64Bit,
38 bool HasRelocationAddend)
40 HasRelocationAddend) {}
46 if (
const auto *SymA = Target.
getSymA()) {
49 if (SymA->getSymbol().getName() ==
"SCRATCH_RSRC_DWORD0")
50 return ELF::R_AMDGPU_ABS32_LO;
52 if (SymA->getSymbol().getName() ==
"SCRATCH_RSRC_DWORD1")
53 return ELF::R_AMDGPU_ABS32_HI;
60 return ELF::R_AMDGPU_GOTPCREL;
62 return ELF::R_AMDGPU_GOTPCREL32_LO;
64 return ELF::R_AMDGPU_GOTPCREL32_HI;
66 return ELF::R_AMDGPU_REL32_LO;
68 return ELF::R_AMDGPU_REL32_HI;
70 return ELF::R_AMDGPU_REL64;
76 return ELF::R_AMDGPU_REL32;
79 return ELF::R_AMDGPU_ABS32;
81 return ELF::R_AMDGPU_ABS64;
87 std::unique_ptr<MCObjectTargetWriter>
89 bool HasRelocationAddend) {
90 return llvm::make_unique<AMDGPUELFObjectWriter>(Is64Bit, OSABI,
Compute iterated dominance frontiers using a linear time algorithm.
This represents an "assembler immediate".
MCSymbolRefExpr::VariantKind getAccessVariant() const
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
static unsigned getRelocType(const MCValue &Target, const MCFixupKind FixupKind, const bool IsPCRel)
Translates generic PPC fixup kind to Mach-O/PPC relocation type enum.
A four-byte section relative fixup.
Context object for machine code objects.
const MCSymbolRefExpr * getSymA() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
A four-byte pc relative fixup.
Target - Wrapper for Target specific information.
Provides AMDGPU specific target descriptions.
std::unique_ptr< MCObjectTargetWriter > createAMDGPUELFObjectWriter(bool Is64Bit, uint8_t OSABI, bool HasRelocationAddend)
MCFixupKind getKind() const