24 BPFELFObjectWriter(uint8_t OSABI);
25 ~BPFELFObjectWriter()
override =
default;
29 const MCFixup &Fixup,
bool IsPCRel)
const override;
34 BPFELFObjectWriter::BPFELFObjectWriter(uint8_t OSABI)
46 return ELF::R_BPF_64_64;
49 return ELF::R_BPF_64_32;
51 return ELF::R_BPF_64_64;
59 assert(SectionELF &&
"Null section for reloc symbol");
61 unsigned Flags = SectionELF->
getFlags();
71 return ELF::R_BPF_NONE;
78 return ELF::R_BPF_NONE;
82 return ELF::R_BPF_64_32;
86 std::unique_ptr<MCObjectTargetWriter>
88 return std::make_unique<BPFELFObjectWriter>(OSABI);
Instances of this class represent a uniqued identifier for a section in the current translation unit...
This class represents lattice values for constants.
std::unique_ptr< MCObjectTargetWriter > createBPFELFObjectWriter(uint8_t OSABI)
This represents an "assembler immediate".
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
block Block Frequency true
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Represent a reference to a symbol from inside an expression.
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.
bool isTemporary() const
isTemporary - Check if this is an assembler temporary symbol.
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.
bool isDefined() const
isDefined - Check if this symbol is defined (i.e., it has an address).
Target - Wrapper for Target specific information.
MCSection & getSection() const
Get the section associated with a defined, non-absolute symbol.
A eight-byte section relative fixup.
This represents a section on linux, lots of unix variants and some bare metal systems.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned getFlags() const
MCFixupKind getKind() const