Thanks to visit codestin.com
Credit goes to llvm.org

LLVM 22.0.0git
AVRAsmBackend.h
Go to the documentation of this file.
1//===-- AVRAsmBackend.h - AVR Asm Backend --------------------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===----------------------------------------------------------------------===//
8//
9// \file The AVR assembly backend implementation.
10//
11//===----------------------------------------------------------------------===//
12//
13
14#ifndef LLVM_AVR_ASM_BACKEND_H
15#define LLVM_AVR_ASM_BACKEND_H
16
18
21
22namespace llvm {
23
24class MCAssembler;
25class MCContext;
26struct MCFixupKindInfo;
27
28/// Utilities for manipulating generated AVR machine code.
30public:
32 : MCAsmBackend(llvm::endianness::little), OSType(OSType) {}
33
34 void adjustFixupValue(const MCFixup &Fixup, const MCValue &Target,
35 uint64_t &Value, MCContext *Ctx = nullptr) const;
36
37 std::unique_ptr<MCObjectTargetWriter>
38 createObjectTargetWriter() const override;
39
40 void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target,
41 uint8_t *Data, uint64_t Value, bool IsResolved) override;
42
43 std::optional<MCFixupKind> getFixupKind(StringRef Name) const override;
44 MCFixupKindInfo getFixupKindInfo(MCFixupKind Kind) const override;
45
47 const MCSubtargetInfo *STI) const override;
48
49 bool forceRelocation(const MCFragment &F, const MCFixup &Fixup,
50 const MCValue &Target);
51
52private:
53 Triple::OSType OSType;
54};
55
56} // end namespace llvm
57
58#endif // LLVM_AVR_ASM_BACKEND_H
#define F(x, y, z)
Definition MD5.cpp:55
PowerPC TLS Dynamic Call Fixup
MCFixupKindInfo getFixupKindInfo(MCFixupKind Kind) const override
Get information on a fixup kind.
bool forceRelocation(const MCFragment &F, const MCFixup &Fixup, const MCValue &Target)
AVRAsmBackend(Triple::OSType OSType)
std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const override
void applyFixup(const MCFragment &, const MCFixup &, const MCValue &Target, uint8_t *Data, uint64_t Value, bool IsResolved) override
void adjustFixupValue(const MCFixup &Fixup, const MCValue &Target, uint64_t &Value, MCContext *Ctx=nullptr) const
std::optional< MCFixupKind > getFixupKind(StringRef Name) const override
Map a relocation name used in .reloc to a fixup kind.
bool writeNopData(raw_ostream &OS, uint64_t Count, const MCSubtargetInfo *STI) const override
Write an (optimal) nop sequence of Count bytes to the given output.
MCAsmBackend(llvm::endianness Endian)
Context object for machine code objects.
Definition MCContext.h:83
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition MCFixup.h:61
Generic base class for all target subtargets.
StringRef - Represent a constant reference to a string, i.e.
Definition StringRef.h:55
Target - Wrapper for Target specific information.
LLVM Value Representation.
Definition Value.h:75
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition raw_ostream.h:53
This is an optimization pass for GlobalISel generic memory operations.
uint16_t MCFixupKind
Extensible enumeration to represent the type of a fixup.
Definition MCFixup.h:22
FunctionAddr VTableAddr Count
Definition InstrProf.h:139
FunctionAddr VTableAddr uintptr_t uintptr_t Data
Definition InstrProf.h:189
endianness
Definition bit.h:71
Target independent information on a fixup kind.