32 bool IsPCRel)
const override;
43 switch ((
unsigned) Fixup.
getKind()) {
51 return ELF::R_AVR_DIFF8;
53 return ELF::R_AVR_8_LO8;
55 return ELF::R_AVR_8_HI8;
57 return ELF::R_AVR_8_HLO8;
66 return ELF::R_AVR_DIFF32;
75 return ELF::R_AVR_16_PM;
77 return ELF::R_AVR_DIFF16;
82 return ELF::R_AVR_7_PCREL;
84 return ELF::R_AVR_13_PCREL;
88 return ELF::R_AVR_16_PM;
90 return ELF::R_AVR_LO8_LDI;
92 return ELF::R_AVR_HI8_LDI;
94 return ELF::R_AVR_HH8_LDI;
96 return ELF::R_AVR_LO8_LDI_NEG;
98 return ELF::R_AVR_HI8_LDI_NEG;
100 return ELF::R_AVR_HH8_LDI_NEG;
102 return ELF::R_AVR_LO8_LDI_PM;
104 return ELF::R_AVR_HI8_LDI_PM;
106 return ELF::R_AVR_HH8_LDI_PM;
108 return ELF::R_AVR_LO8_LDI_PM_NEG;
110 return ELF::R_AVR_HI8_LDI_PM_NEG;
112 return ELF::R_AVR_HH8_LDI_PM_NEG;
114 return ELF::R_AVR_CALL;
116 return ELF::R_AVR_LDI;
120 return ELF::R_AVR_6_ADIW;
122 return ELF::R_AVR_MS8_LDI;
124 return ELF::R_AVR_MS8_LDI_NEG;
126 return ELF::R_AVR_LO8_LDI_GS;
128 return ELF::R_AVR_HI8_LDI_GS;
132 return ELF::R_AVR_8_LO8;
134 return ELF::R_AVR_8_HI8;
136 return ELF::R_AVR_8_HLO8;
138 return ELF::R_AVR_DIFF8;
140 return ELF::R_AVR_DIFF16;
142 return ELF::R_AVR_DIFF32;
144 return ELF::R_AVR_LDS_STS_16;
146 return ELF::R_AVR_PORT6;
148 return ELF::R_AVR_PORT5;
155 return std::make_unique<AVRELFObjectWriter>(OSABI);
std::unique_ptr< MCObjectTargetWriter > createAVRELFObjectWriter(uint8_t OSABI)
Creates an ELF object writer for AVR.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 16-bi...
This class represents lattice values for constants.
This represents an "assembler immediate".
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a 16-bit progra...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 16-bi...
block Block Frequency true
MCSymbolRefExpr::VariantKind getAccessVariant() const
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a negated 16-bi...
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated negat...
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a 16-bit value ...
A 12-bit PC-relative fixup for the family of branches which take 12-bit targets (RJMP,RCALL,etc).
Context object for machine code objects.
A 7-bit PC-relative fixup for the family of conditional branches which take 7-bit targets (BRNE...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated negat...
unsigned getRelocType(MCContext &Ctx, const MCValue &Target, const MCFixup &Fixup, bool IsPCRel) const override
A symbol+addr fixup for the `LDD <x>+<n>, <r>" family of instructions.
AVRELFObjectWriter(uint8_t OSABI)
A 16-bit program memory address.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 16-bit progra...
virtual ~AVRELFObjectWriter()
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
PowerPC TLS Dynamic Call Fixup
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a negated 24-bi...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 16-bit value ...
Writes AVR machine code into an ELF32 object file.
Target - Wrapper for Target specific information.
Replaces the immediate operand of a 16-bit Rd, K instruction with the lower 8 bits of a negated 16-bi...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 32-bit value ...
A 22-bit fixup for the target of a CALL k or JMP k instruction.
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 24-bit progra...
Replaces the immediate operand of a 16-bit Rd, K instruction with the upper 8 bits of a 24-bit value ...
Replaces the 8-bit immediate with another value.
MCFixupKind getKind() const