28 switch (
unsigned(Kind)) {
33 return (int64_t)Value / 2;
46 SystemZMCAsmBackend(uint8_t osABI)
50 unsigned getNumFixupKinds()
const override {
56 uint64_t
Value,
bool IsResolved,
58 bool mayNeedRelaxation(
const MCInst &Inst,
62 bool fixupNeedsRelaxation(
const MCFixup &Fixup, uint64_t Value,
68 MCInst &Res)
const override {
71 bool writeNopData(
raw_ostream &OS, uint64_t Count)
const override;
72 std::unique_ptr<MCObjectTargetWriter>
73 createObjectTargetWriter()
const override {
86 {
"FK_390_TLS_CALL", 0, 0, 0 }
105 unsigned BitSize = getFixupKindInfo(Kind).TargetSize;
106 unsigned Size = (BitSize + 7) / 8;
108 assert(Offset + Size <= Data.
size() &&
"Invalid fixup offset!");
113 Value &= ((uint64_t)1 << BitSize) - 1;
114 unsigned ShiftValue = (Size * 8) - 8;
115 for (
unsigned I = 0;
I !=
Size; ++
I) {
116 Data[Offset +
I] |= uint8_t(Value >> ShiftValue);
121 bool SystemZMCAsmBackend::writeNopData(
raw_ostream &OS, uint64_t Count)
const {
122 for (uint64_t
I = 0;
I != Count; ++
I)
133 return new SystemZMCAsmBackend(OSABI);
This class represents lattice values for constants.
This represents an "assembler immediate".
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
virtual const MCFixupKindInfo & getFixupKindInfo(MCFixupKind Kind) const
Get information on a fixup kind.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
const Triple & getTargetTriple() const
Is this fixup kind PCrelative? This is used by the assembler backend to evaluate fixup values in a ta...
Encapsulates the layout of an assembly file at a particular point in time.
std::unique_ptr< MCObjectTargetWriter > createSystemZObjectWriter(uint8_t OSABI)
Instances of this class represent a single low-level machine instruction.
MCRegisterInfo base class - We assume that the target defines a static array of MCRegisterDesc object...
A relaxable fragment holds on to its MCInst, since it may need to be relaxed during the assembler lay...
unsigned const MachineRegisterInfo * MRI
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
size_t size() const
size - Get the array size.
MCFixupKind
Extensible enumeration to represent the type of a fixup.
uint32_t getOffset() const
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
PowerPC TLS Dynamic Call Fixup
Target - Wrapper for Target specific information.
static uint64_t extractBitsForFixup(MCFixupKind Kind, uint64_t Value)
MCAsmBackend * createSystemZMCAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
Generic base class for all target subtargets.
Target independent information on a fixup kind.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
Generic interface to target specific assembler backends.
This class implements an extremely fast bulk output stream that can only output to a stream...
MCFixupKind getKind() const