LLVM  10.0.0
RISCVAsmBackend.cpp
Go to the documentation of this file.
1 //===-- RISCVAsmBackend.cpp - RISCV Assembler 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 #include "RISCVAsmBackend.h"
10 #include "RISCVMCExpr.h"
11 #include "llvm/ADT/APInt.h"
12 #include "llvm/MC/MCAsmLayout.h"
13 #include "llvm/MC/MCAssembler.h"
14 #include "llvm/MC/MCContext.h"
15 #include "llvm/MC/MCDirectives.h"
17 #include "llvm/MC/MCExpr.h"
18 #include "llvm/MC/MCObjectWriter.h"
19 #include "llvm/MC/MCSymbol.h"
20 #include "llvm/MC/MCValue.h"
23 
24 using namespace llvm;
25 
26 // If linker relaxation is enabled, or the relax option had previously been
27 // enabled, always emit relocations even if the fixup can be resolved. This is
28 // necessary for correctness as offsets may change during relaxation.
30  const MCFixup &Fixup,
31  const MCValue &Target) {
32  switch (Fixup.getTargetKind()) {
33  default:
34  break;
35  case FK_Data_1:
36  case FK_Data_2:
37  case FK_Data_4:
38  case FK_Data_8:
39  if (Target.isAbsolute())
40  return false;
41  break;
45  return true;
46  }
47 
48  return STI.getFeatureBits()[RISCV::FeatureRelax] || ForceRelocs;
49 }
50 
52  bool Resolved,
53  uint64_t Value,
54  const MCRelaxableFragment *DF,
55  const MCAsmLayout &Layout,
56  const bool WasForced) const {
57  // Return true if the symbol is actually unresolved.
58  // Resolved could be always false when shouldForceRelocation return true.
59  // We use !WasForced to indicate that the symbol is unresolved and not forced
60  // by shouldForceRelocation.
61  if (!Resolved && !WasForced)
62  return true;
63 
64  int64_t Offset = int64_t(Value);
65  switch (Fixup.getTargetKind()) {
66  default:
67  return false;
69  // For compressed branch instructions the immediate must be
70  // in the range [-256, 254].
71  return Offset > 254 || Offset < -256;
73  // For compressed jump instructions the immediate must be
74  // in the range [-2048, 2046].
75  return Offset > 2046 || Offset < -2048;
76  }
77 }
78 
80  const MCSubtargetInfo &STI,
81  MCInst &Res) const {
82  // TODO: replace this with call to auto generated uncompressinstr() function.
83  switch (Inst.getOpcode()) {
84  default:
85  llvm_unreachable("Opcode not expected!");
86  case RISCV::C_BEQZ:
87  // c.beqz $rs1, $imm -> beq $rs1, X0, $imm.
88  Res.setOpcode(RISCV::BEQ);
89  Res.addOperand(Inst.getOperand(0));
90  Res.addOperand(MCOperand::createReg(RISCV::X0));
91  Res.addOperand(Inst.getOperand(1));
92  break;
93  case RISCV::C_BNEZ:
94  // c.bnez $rs1, $imm -> bne $rs1, X0, $imm.
95  Res.setOpcode(RISCV::BNE);
96  Res.addOperand(Inst.getOperand(0));
97  Res.addOperand(MCOperand::createReg(RISCV::X0));
98  Res.addOperand(Inst.getOperand(1));
99  break;
100  case RISCV::C_J:
101  // c.j $imm -> jal X0, $imm.
102  Res.setOpcode(RISCV::JAL);
103  Res.addOperand(MCOperand::createReg(RISCV::X0));
104  Res.addOperand(Inst.getOperand(0));
105  break;
106  case RISCV::C_JAL:
107  // c.jal $imm -> jal X1, $imm.
108  Res.setOpcode(RISCV::JAL);
109  Res.addOperand(MCOperand::createReg(RISCV::X1));
110  Res.addOperand(Inst.getOperand(0));
111  break;
112  }
113 }
114 
115 // Given a compressed control flow instruction this function returns
116 // the expanded instruction.
117 unsigned RISCVAsmBackend::getRelaxedOpcode(unsigned Op) const {
118  switch (Op) {
119  default:
120  return Op;
121  case RISCV::C_BEQZ:
122  return RISCV::BEQ;
123  case RISCV::C_BNEZ:
124  return RISCV::BNE;
125  case RISCV::C_J:
126  case RISCV::C_JAL: // fall through.
127  return RISCV::JAL;
128  }
129 }
130 
132  const MCSubtargetInfo &STI) const {
133  return getRelaxedOpcode(Inst.getOpcode()) != Inst.getOpcode();
134 }
135 
136 bool RISCVAsmBackend::writeNopData(raw_ostream &OS, uint64_t Count) const {
137  bool HasStdExtC = STI.getFeatureBits()[RISCV::FeatureStdExtC];
138  unsigned MinNopLen = HasStdExtC ? 2 : 4;
139 
140  if ((Count % MinNopLen) != 0)
141  return false;
142 
143  // The canonical nop on RISC-V is addi x0, x0, 0.
144  for (; Count >= 4; Count -= 4)
145  OS.write("\x13\0\0\0", 4);
146 
147  // The canonical nop on RVC is c.nop.
148  if (Count && HasStdExtC)
149  OS.write("\x01\0", 2);
150 
151  return true;
152 }
153 
154 static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value,
155  MCContext &Ctx) {
156  switch (Fixup.getTargetKind()) {
157  default:
158  llvm_unreachable("Unknown fixup kind!");
162  llvm_unreachable("Relocation should be unconditionally forced\n");
163  case FK_Data_1:
164  case FK_Data_2:
165  case FK_Data_4:
166  case FK_Data_8:
167  case FK_Data_6b:
168  return Value;
172  return Value & 0xfff;
176  return (((Value >> 5) & 0x7f) << 25) | ((Value & 0x1f) << 7);
180  // Add 1 if bit 11 is 1, to compensate for low 12 bits being negative.
181  return ((Value + 0x800) >> 12) & 0xfffff;
182  case RISCV::fixup_riscv_jal: {
183  if (!isInt<21>(Value))
184  Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
185  if (Value & 0x1)
186  Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned");
187  // Need to produce imm[19|10:1|11|19:12] from the 21-bit Value.
188  unsigned Sbit = (Value >> 20) & 0x1;
189  unsigned Hi8 = (Value >> 12) & 0xff;
190  unsigned Mid1 = (Value >> 11) & 0x1;
191  unsigned Lo10 = (Value >> 1) & 0x3ff;
192  // Inst{31} = Sbit;
193  // Inst{30-21} = Lo10;
194  // Inst{20} = Mid1;
195  // Inst{19-12} = Hi8;
196  Value = (Sbit << 19) | (Lo10 << 9) | (Mid1 << 8) | Hi8;
197  return Value;
198  }
200  if (!isInt<13>(Value))
201  Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
202  if (Value & 0x1)
203  Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned");
204  // Need to extract imm[12], imm[10:5], imm[4:1], imm[11] from the 13-bit
205  // Value.
206  unsigned Sbit = (Value >> 12) & 0x1;
207  unsigned Hi1 = (Value >> 11) & 0x1;
208  unsigned Mid6 = (Value >> 5) & 0x3f;
209  unsigned Lo4 = (Value >> 1) & 0xf;
210  // Inst{31} = Sbit;
211  // Inst{30-25} = Mid6;
212  // Inst{11-8} = Lo4;
213  // Inst{7} = Hi1;
214  Value = (Sbit << 31) | (Mid6 << 25) | (Lo4 << 8) | (Hi1 << 7);
215  return Value;
216  }
219  // Jalr will add UpperImm with the sign-extended 12-bit LowerImm,
220  // we need to add 0x800ULL before extract upper bits to reflect the
221  // effect of the sign extension.
222  uint64_t UpperImm = (Value + 0x800ULL) & 0xfffff000ULL;
223  uint64_t LowerImm = Value & 0xfffULL;
224  return UpperImm | ((LowerImm << 20) << 32);
225  }
227  // Need to produce offset[11|4|9:8|10|6|7|3:1|5] from the 11-bit Value.
228  unsigned Bit11 = (Value >> 11) & 0x1;
229  unsigned Bit4 = (Value >> 4) & 0x1;
230  unsigned Bit9_8 = (Value >> 8) & 0x3;
231  unsigned Bit10 = (Value >> 10) & 0x1;
232  unsigned Bit6 = (Value >> 6) & 0x1;
233  unsigned Bit7 = (Value >> 7) & 0x1;
234  unsigned Bit3_1 = (Value >> 1) & 0x7;
235  unsigned Bit5 = (Value >> 5) & 0x1;
236  Value = (Bit11 << 10) | (Bit4 << 9) | (Bit9_8 << 7) | (Bit10 << 6) |
237  (Bit6 << 5) | (Bit7 << 4) | (Bit3_1 << 1) | Bit5;
238  return Value;
239  }
241  // Need to produce offset[8|4:3], [reg 3 bit], offset[7:6|2:1|5]
242  unsigned Bit8 = (Value >> 8) & 0x1;
243  unsigned Bit7_6 = (Value >> 6) & 0x3;
244  unsigned Bit5 = (Value >> 5) & 0x1;
245  unsigned Bit4_3 = (Value >> 3) & 0x3;
246  unsigned Bit2_1 = (Value >> 1) & 0x3;
247  Value = (Bit8 << 12) | (Bit4_3 << 10) | (Bit7_6 << 5) | (Bit2_1 << 3) |
248  (Bit5 << 2);
249  return Value;
250  }
251 
252  }
253 }
254 
256  const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup,
257  const MCFragment *DF, const MCValue &Target, uint64_t &Value,
258  bool &WasForced) {
259  const MCFixup *AUIPCFixup;
260  const MCFragment *AUIPCDF;
261  MCValue AUIPCTarget;
262  switch (Fixup.getTargetKind()) {
263  default:
264  llvm_unreachable("Unexpected fixup kind!");
266  AUIPCFixup = &Fixup;
267  AUIPCDF = DF;
268  AUIPCTarget = Target;
269  break;
272  AUIPCFixup = cast<RISCVMCExpr>(Fixup.getValue())->getPCRelHiFixup(&AUIPCDF);
273  if (!AUIPCFixup) {
274  Asm.getContext().reportError(Fixup.getLoc(),
275  "could not find corresponding %pcrel_hi");
276  return true;
277  }
278 
279  // MCAssembler::evaluateFixup will emit an error for this case when it sees
280  // the %pcrel_hi, so don't duplicate it when also seeing the %pcrel_lo.
281  const MCExpr *AUIPCExpr = AUIPCFixup->getValue();
282  if (!AUIPCExpr->evaluateAsRelocatable(AUIPCTarget, &Layout, AUIPCFixup))
283  return true;
284  break;
285  }
286  }
287 
288  if (!AUIPCTarget.getSymA() || AUIPCTarget.getSymB())
289  return false;
290 
291  const MCSymbolRefExpr *A = AUIPCTarget.getSymA();
292  const MCSymbol &SA = A->getSymbol();
293  if (A->getKind() != MCSymbolRefExpr::VK_None || SA.isUndefined())
294  return false;
295 
296  auto *Writer = Asm.getWriterPtr();
297  if (!Writer)
298  return false;
299 
300  bool IsResolved = Writer->isSymbolRefDifferenceFullyResolvedImpl(
301  Asm, SA, *AUIPCDF, false, true);
302  if (!IsResolved)
303  return false;
304 
305  Value = Layout.getSymbolOffset(SA) + AUIPCTarget.getConstant();
306  Value -= Layout.getFragmentOffset(AUIPCDF) + AUIPCFixup->getOffset();
307 
308  if (shouldForceRelocation(Asm, *AUIPCFixup, AUIPCTarget)) {
309  WasForced = true;
310  return false;
311  }
312 
313  return true;
314 }
315 
317  const MCValue &Target,
318  MutableArrayRef<char> Data, uint64_t Value,
319  bool IsResolved,
320  const MCSubtargetInfo *STI) const {
321  MCContext &Ctx = Asm.getContext();
323  if (!Value)
324  return; // Doesn't change encoding.
325  // Apply any target-specific value adjustments.
326  Value = adjustFixupValue(Fixup, Value, Ctx);
327 
328  // Shift the value into position.
329  Value <<= Info.TargetOffset;
330 
331  unsigned Offset = Fixup.getOffset();
332  unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8;
333 
334  assert(Offset + NumBytes <= Data.size() && "Invalid fixup offset!");
335 
336  // For each byte of the fragment that the fixup touches, mask in the
337  // bits from the fixup value.
338  for (unsigned i = 0; i != NumBytes; ++i) {
339  Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
340  }
341 }
342 
343 // Linker relaxation may change code size. We have to insert Nops
344 // for .align directive when linker relaxation enabled. So then Linker
345 // could satisfy alignment by removing Nops.
346 // The function return the total Nops Size we need to insert.
348  const MCAlignFragment &AF, unsigned &Size) {
349  // Calculate Nops Size only when linker relaxation enabled.
350  if (!STI.getFeatureBits()[RISCV::FeatureRelax])
351  return false;
352 
353  bool HasStdExtC = STI.getFeatureBits()[RISCV::FeatureStdExtC];
354  unsigned MinNopLen = HasStdExtC ? 2 : 4;
355 
356  if (AF.getAlignment() <= MinNopLen) {
357  return false;
358  } else {
359  Size = AF.getAlignment() - MinNopLen;
360  return true;
361  }
362 }
363 
364 // We need to insert R_RISCV_ALIGN relocation type to indicate the
365 // position of Nops and the total bytes of the Nops have been inserted
366 // when linker relaxation enabled.
367 // The function insert fixup_riscv_align fixup which eventually will
368 // transfer to R_RISCV_ALIGN relocation type.
370  const MCAsmLayout &Layout,
371  MCAlignFragment &AF) {
372  // Insert the fixup only when linker relaxation enabled.
373  if (!STI.getFeatureBits()[RISCV::FeatureRelax])
374  return false;
375 
376  // Calculate total Nops we need to insert. If there are none to insert
377  // then simply return.
378  unsigned Count;
379  if (!shouldInsertExtraNopBytesForCodeAlign(AF, Count) || (Count == 0))
380  return false;
381 
382  MCContext &Ctx = Asm.getContext();
383  const MCExpr *Dummy = MCConstantExpr::create(0, Ctx);
384  // Create fixup_riscv_align fixup.
385  MCFixup Fixup =
387 
388  uint64_t FixedValue = 0;
389  MCValue NopBytes = MCValue::get(Count);
390 
391  Asm.getWriter().recordRelocation(Asm, Layout, &AF, Fixup, NopBytes,
392  FixedValue);
393 
394  return true;
395 }
396 
397 std::unique_ptr<MCObjectTargetWriter>
399  return createRISCVELFObjectWriter(OSABI, Is64Bit);
400 }
401 
403  const MCSubtargetInfo &STI,
404  const MCRegisterInfo &MRI,
405  const MCTargetOptions &Options) {
406  const Triple &TT = STI.getTargetTriple();
407  uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(TT.getOS());
408  return new RISCVAsmBackend(STI, OSABI, TT.isArch64Bit(), Options);
409 }
std::unique_ptr< MCObjectTargetWriter > createRISCVELFObjectWriter(uint8_t OSABI, bool Is64Bit)
MCAsmBackend * createRISCVAsmBackend(const Target &T, const MCSubtargetInfo &STI, const MCRegisterInfo &MRI, const MCTargetOptions &Options)
This class represents lattice values for constants.
Definition: AllocatorList.h:23
MCObjectWriter * getWriterPtr() const
Definition: MCAssembler.h:287
This represents an "assembler immediate".
Definition: MCValue.h:39
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
VariantKind getKind() const
Definition: MCExpr.h:344
OSType getOS() const
getOS - Get the parsed operating system type of this triple.
Definition: Triple.h:306
bool isAbsolute() const
Is this an absolute (as opposed to relocatable) value.
Definition: MCValue.h:52
bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, uint64_t Value, const MCRelaxableFragment *DF, const MCAsmLayout &Layout, const bool WasForced) const override
Target specific predicate for whether a given fixup requires the associated instruction to be relaxed...
unsigned TargetOffset
The bit offset to write the relocation into.
Encode information on a single operation to perform on a byte sequence (e.g., an encoded instruction)...
Definition: MCFixup.h:77
const Triple & getTargetTriple() const
MCContext & getContext() const
Definition: MCAssembler.h:281
int64_t getConstant() const
Definition: MCValue.h:46
const MCSymbolRefExpr * getSymB() const
Definition: MCValue.h:48
static MCOperand createReg(unsigned Reg)
Definition: MCInst.h:115
const FeatureBitset & getFeatureBits() const
Encapsulates the layout of an assembly file at a particular point in time.
Definition: MCAsmLayout.h:28
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:35
A six-bits fixup.
Definition: MCFixup.h:28
Represent a reference to a symbol from inside an expression.
Definition: MCExpr.h:169
MCObjectWriter & getWriter() const
Definition: MCAssembler.h:293
bool shouldInsertExtraNopBytesForCodeAlign(const MCAlignFragment &AF, unsigned &Size) override
Hook to check if extra nop bytes must be inserted for alignment directive.
This file implements a class to represent arbitrary precision integral constant values and operations...
A four-byte fixup.
Definition: MCFixup.h:26
Context object for machine code objects.
Definition: MCContext.h:65
bool evaluateAsRelocatable(MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const
Try to evaluate the expression to a relocatable value, i.e.
Definition: MCExpr.cpp:669
unsigned getRelaxedOpcode(unsigned Op) const
bool writeNopData(raw_ostream &OS, uint64_t Count) const override
Write an (optimal) nop sequence of Count bytes to the given output.
bool evaluateTargetFixup(const MCAssembler &Asm, const MCAsmLayout &Layout, const MCFixup &Fixup, const MCFragment *DF, const MCValue &Target, uint64_t &Value, bool &WasForced) override
void applyFixup(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target, MutableArrayRef< char > Data, uint64_t Value, bool IsResolved, const MCSubtargetInfo *STI) const override
Apply the Value for given Fixup into the provided data fragment, at the offset specified by the fixup...
Analysis containing CSE Info
Definition: CSEInfo.cpp:25
Instances of this class represent a single low-level machine instruction.
Definition: MCInst.h:158
static const MCConstantExpr * create(int64_t Value, MCContext &Ctx, bool PrintInHex=false)
Definition: MCExpr.cpp:169
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...
Definition: MCFragment.h:258
unsigned const MachineRegisterInfo * MRI
static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, MCContext &Ctx)
MutableArrayRef - Represent a mutable reference to an array (0 or more elements consecutively in memo...
Definition: ArrayRef.h:300
bool shouldInsertFixupForCodeAlign(MCAssembler &Asm, const MCAsmLayout &Layout, MCAlignFragment &AF) override
Hook which indicates if the target requires a fixup to be generated when handling an align directive ...
size_t size() const
size - Get the array size.
Definition: ArrayRef.h:158
MCFixupKind
Extensible enumeration to represent the type of a fixup.
Definition: MCFixup.h:22
bool getSymbolOffset(const MCSymbol &S, uint64_t &Val) const
Get the offset of the given symbol, as computed in the current layout.
Definition: MCFragment.cpp:129
const MCSymbolRefExpr * getSymA() const
Definition: MCValue.h:47
void reportError(SMLoc L, const Twine &Msg)
Definition: MCContext.cpp:690
uint32_t getOffset() const
Definition: MCFixup.h:130
std::unique_ptr< MCObjectTargetWriter > createObjectTargetWriter() const override
static MCFixup create(uint32_t Offset, const MCExpr *Value, MCFixupKind Kind, SMLoc Loc=SMLoc())
Definition: MCFixup.h:93
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
A one-byte fixup.
Definition: MCFixup.h:24
Triple - Helper class for working with autoconf configuration names.
Definition: Triple.h:43
static RegisterPass< DebugifyFunctionPass > DF("debugify-function", "Attach debug info to a function")
raw_ostream & write(unsigned char C)
uint64_t getFragmentOffset(const MCFragment *F) const
Get the offset of the given fragment inside its containing section.
Definition: MCFragment.cpp:77
PowerPC TLS Dynamic Call Fixup
SMLoc getLoc() const
Definition: MCFixup.h:197
void setOpcode(unsigned Op)
Definition: MCInst.h:171
const MCSymbol & getSymbol() const
Definition: MCExpr.h:342
bool isUndefined(bool SetUsed=true) const
isUndefined - Check if this symbol undefined (i.e., implicitly defined).
Definition: MCSymbol.h:250
const MCOperand & getOperand(unsigned i) const
Definition: MCInst.h:180
virtual void recordRelocation(MCAssembler &Asm, const MCAsmLayout &Layout, const MCFragment *Fragment, const MCFixup &Fixup, MCValue Target, uint64_t &FixedValue)=0
Record a relocation entry.
unsigned TargetSize
The number of bits written by this fixup.
Target - Wrapper for Target specific information.
unsigned getAlignment() const
Definition: MCFragment.h:302
virtual bool isSymbolRefDifferenceFullyResolvedImpl(const MCAssembler &Asm, const MCSymbol &A, const MCSymbol &B, bool InSet) const
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
Definition: Alignment.h:163
bool isArch64Bit() const
Test whether the architecture is 64-bit.
Definition: Triple.cpp:1298
static MCValue get(const MCSymbolRefExpr *SymA, const MCSymbolRefExpr *SymB=nullptr, int64_t Val=0, uint32_t RefKind=0)
Definition: MCValue.h:62
Generic base class for all target subtargets.
A eight-byte fixup.
Definition: MCFixup.h:27
uint32_t Size
Definition: Profile.cpp:46
void relaxInstruction(const MCInst &Inst, const MCSubtargetInfo &STI, MCInst &Res) const override
Relax the instruction in the given fragment to the next wider instruction.
Target independent information on a fixup kind.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
LLVM Value Representation.
Definition: Value.h:74
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:38
unsigned getTargetKind() const
Definition: MCFixup.h:128
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:46
const MCExpr * getValue() const
Definition: MCFixup.h:133
void addOperand(const MCOperand &Op)
Definition: MCInst.h:184
bool shouldForceRelocation(const MCAssembler &Asm, const MCFixup &Fixup, const MCValue &Target) override
Hook to check if a relocation is needed for some target specific reason.
bool mayNeedRelaxation(const MCInst &Inst, const MCSubtargetInfo &STI) const override
Check whether the given instruction may need relaxation.
Represents a location in source code.
Definition: SMLoc.h:23
unsigned getOpcode() const
Definition: MCInst.h:172
const MCFixupKindInfo & getFixupKindInfo(MCFixupKind Kind) const override
Get information on a fixup kind.
RISCVAsmBackend(const MCSubtargetInfo &STI, uint8_t OSABI, bool Is64Bit, const MCTargetOptions &Options)
A two-byte fixup.
Definition: MCFixup.h:25
MCFixupKind getKind() const
Definition: MCFixup.h:126