29 ~BPFAsmBackend()
override =
default;
36 std::unique_ptr<MCObjectTargetWriter>
51BPFAsmBackend::getFixupKindInfo(
MCFixupKind Kind)
const {
69 for (
uint64_t i = 0; i < Count; i += 8)
70 support::endian::write<uint64_t>(
OS, 0x15000000, Endian);
84 support::endian::write<uint32_t>(&Data[
Fixup.getOffset() + 4],
88 support::endian::write<uint32_t>(&Data[
Fixup.getOffset()],
Value, Endian);
90 support::endian::write<uint64_t>(&Data[
Fixup.getOffset()],
Value, Endian);
94 Data[
Fixup.getOffset() + 1] = 0x10;
97 Data[
Fixup.getOffset() + 1] = 0x1;
103 support::endian::write<uint32_t>(&Data[
Fixup.getOffset() + 4],
Value,
108 int64_t ByteOff = (int64_t)
Value - 8;
109 if (ByteOff > INT16_MAX * 8 || ByteOff < INT16_MIN * 8)
113 support::endian::write<uint16_t>(&Data[
Fixup.getOffset() + 2],
Value,
118std::unique_ptr<MCObjectTargetWriter>
119BPFAsmBackend::createObjectTargetWriter()
const {
unsigned const MachineRegisterInfo * MRI
PowerPC TLS Dynamic Call Fixup
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Generic interface to target specific assembler backends.
virtual bool writeNopData(raw_ostream &OS, uint64_t Count, const MCSubtargetInfo *STI) const =0
Write an (optimal) nop sequence of Count bytes to the given output.
virtual std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const =0
virtual unsigned getNumFixupKinds() const =0
Get the number of target specific fixup kinds.
virtual const MCFixupKindInfo & getFixupKindInfo(MCFixupKind Kind) const
Get information on a fixup kind.
virtual void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef< char > Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const =0
Apply the Value for given Fixup into the provided data fragment, at the offset specified by the fixup...
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
Generic base class for all target subtargets.
This represents an "assembler immediate".
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
Target - Wrapper for Target specific information.
LLVM Value Representation.
This class implements an extremely fast bulk output stream that can only output to a stream.
void write32le(void *P, uint32_t V)
void write32be(void *P, uint32_t V)
This is an optimization pass for GlobalISel generic memory operations.
MCAsmBackend * createBPFAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
MCAsmBackend * createBPFbeAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
MCFixupKind
Extensible enumeration to represent the type of a fixup.
@ FK_PCRel_4
A four-byte pc relative fixup.
@ FK_PCRel_2
A two-byte pc relative fixup.
@ FK_Data_8
A eight-byte fixup.
@ FK_Data_4
A four-byte fixup.
@ FK_SecRel_8
A eight-byte section relative fixup.
std::unique_ptr< MCObjectTargetWriter > createBPFELFObjectWriter(uint8_t OSABI)
Target independent information on a fixup kind.
@ FKF_IsPCRel
Is this fixup kind PCrelative? This is used by the assembler backend to evaluate fixup values in a ta...