LLVM  14.0.0git
MCDwarf.h
Go to the documentation of this file.
1 //===- MCDwarf.h - Machine Code Dwarf support -------------------*- C++ -*-===//
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 // This file contains the declaration of the MCDwarfFile to support the dwarf
10 // .file directive and the .loc directive.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef LLVM_MC_MCDWARF_H
15 #define LLVM_MC_MCDWARF_H
16 
17 #include "llvm/ADT/MapVector.h"
18 #include "llvm/ADT/Optional.h"
19 #include "llvm/ADT/SmallVector.h"
20 #include "llvm/ADT/StringMap.h"
21 #include "llvm/ADT/StringRef.h"
22 #include "llvm/MC/MCSection.h"
24 #include "llvm/Support/Error.h"
25 #include "llvm/Support/MD5.h"
26 #include <cassert>
27 #include <cstdint>
28 #include <string>
29 #include <tuple>
30 #include <utility>
31 #include <vector>
32 
33 namespace llvm {
34 
35 template <typename T> class ArrayRef;
36 class MCAsmBackend;
37 class MCContext;
38 class MCObjectStreamer;
39 class MCStreamer;
40 class MCSymbol;
41 class raw_ostream;
42 class SMLoc;
43 class SourceMgr;
44 
45 namespace mcdwarf {
46 // Emit the common part of the DWARF 5 range/locations list tables header.
48 } // namespace mcdwarf
49 
50 /// Manage the .debug_line_str section contents, if we use it.
52  MCSymbol *LineStrLabel = nullptr;
54  bool UseRelocs = false;
55 
56 public:
57  /// Construct an instance that can emit .debug_line_str (for use in a normal
58  /// v5 line table).
59  explicit MCDwarfLineStr(MCContext &Ctx);
60 
61  /// Emit a reference to the string.
62  void emitRef(MCStreamer *MCOS, StringRef Path);
63 
64  /// Emit the .debug_line_str section if appropriate.
65  void emitSection(MCStreamer *MCOS);
66 };
67 
68 /// Instances of this class represent the name of the dwarf .file directive and
69 /// its associated dwarf file number in the MC file. MCDwarfFile's are created
70 /// and uniqued by the MCContext class. In Dwarf 4 file numbers start from 1;
71 /// i.e. the entry with file number 1 is the first element in the vector of
72 /// DwarfFiles and there is no MCDwarfFile with file number 0. In Dwarf 5 file
73 /// numbers start from 0, with the MCDwarfFile with file number 0 being the
74 /// primary source file, and file numbers correspond to their index in the
75 /// vector.
76 struct MCDwarfFile {
77  // The base name of the file without its directory path.
78  std::string Name;
79 
80  // The index into the list of directory names for this file name.
81  unsigned DirIndex = 0;
82 
83  /// The MD5 checksum, if there is one. Non-owning pointer to data allocated
84  /// in MCContext.
86 
87  /// The source code of the file. Non-owning reference to data allocated in
88  /// MCContext.
90 };
91 
92 /// Instances of this class represent the information from a
93 /// dwarf .loc directive.
94 class MCDwarfLoc {
95  uint32_t FileNum;
96  uint32_t Line;
97  uint16_t Column;
98  // Flags (see #define's below)
99  uint8_t Flags;
100  uint8_t Isa;
101  uint32_t Discriminator;
102 
103 // Flag that indicates the initial value of the is_stmt_start flag.
104 #define DWARF2_LINE_DEFAULT_IS_STMT 1
105 
106 #define DWARF2_FLAG_IS_STMT (1 << 0)
107 #define DWARF2_FLAG_BASIC_BLOCK (1 << 1)
108 #define DWARF2_FLAG_PROLOGUE_END (1 << 2)
109 #define DWARF2_FLAG_EPILOGUE_BEGIN (1 << 3)
110 
111 private: // MCContext manages these
112  friend class MCContext;
113  friend class MCDwarfLineEntry;
114 
115  MCDwarfLoc(unsigned fileNum, unsigned line, unsigned column, unsigned flags,
116  unsigned isa, unsigned discriminator)
117  : FileNum(fileNum), Line(line), Column(column), Flags(flags), Isa(isa),
118  Discriminator(discriminator) {}
119 
120  // Allow the default copy constructor and assignment operator to be used
121  // for an MCDwarfLoc object.
122 
123 public:
124  /// Get the FileNum of this MCDwarfLoc.
125  unsigned getFileNum() const { return FileNum; }
126 
127  /// Get the Line of this MCDwarfLoc.
128  unsigned getLine() const { return Line; }
129 
130  /// Get the Column of this MCDwarfLoc.
131  unsigned getColumn() const { return Column; }
132 
133  /// Get the Flags of this MCDwarfLoc.
134  unsigned getFlags() const { return Flags; }
135 
136  /// Get the Isa of this MCDwarfLoc.
137  unsigned getIsa() const { return Isa; }
138 
139  /// Get the Discriminator of this MCDwarfLoc.
140  unsigned getDiscriminator() const { return Discriminator; }
141 
142  /// Set the FileNum of this MCDwarfLoc.
143  void setFileNum(unsigned fileNum) { FileNum = fileNum; }
144 
145  /// Set the Line of this MCDwarfLoc.
146  void setLine(unsigned line) { Line = line; }
147 
148  /// Set the Column of this MCDwarfLoc.
149  void setColumn(unsigned column) {
150  assert(column <= UINT16_MAX);
151  Column = column;
152  }
153 
154  /// Set the Flags of this MCDwarfLoc.
155  void setFlags(unsigned flags) {
156  assert(flags <= UINT8_MAX);
157  Flags = flags;
158  }
159 
160  /// Set the Isa of this MCDwarfLoc.
161  void setIsa(unsigned isa) {
162  assert(isa <= UINT8_MAX);
163  Isa = isa;
164  }
165 
166  /// Set the Discriminator of this MCDwarfLoc.
167  void setDiscriminator(unsigned discriminator) {
168  Discriminator = discriminator;
169  }
170 };
171 
172 /// Instances of this class represent the line information for
173 /// the dwarf line table entries. Which is created after a machine
174 /// instruction is assembled and uses an address from a temporary label
175 /// created at the current address in the current section and the info from
176 /// the last .loc directive seen as stored in the context.
177 class MCDwarfLineEntry : public MCDwarfLoc {
178  MCSymbol *Label;
179 
180 private:
181  // Allow the default copy constructor and assignment operator to be used
182  // for an MCDwarfLineEntry object.
183 
184 public:
185  // Constructor to create an MCDwarfLineEntry given a symbol and the dwarf loc.
187  : MCDwarfLoc(loc), Label(label) {}
188 
189  MCSymbol *getLabel() const { return Label; }
190 
191  // This is called when an instruction is assembled into the specified
192  // section and if there is information from the last .loc directive that
193  // has yet to have a line entry made for it is made.
194  static void make(MCStreamer *MCOS, MCSection *Section);
195 };
196 
197 /// Instances of this class represent the line information for a compile
198 /// unit where machine instructions have been assembled after seeing .loc
199 /// directives. This is the information used to build the dwarf line
200 /// table for a section.
202 public:
203  // Add an entry to this MCLineSection's line entries.
204  void addLineEntry(const MCDwarfLineEntry &LineEntry, MCSection *Sec) {
205  MCLineDivisions[Sec].push_back(LineEntry);
206  }
207 
208  using MCDwarfLineEntryCollection = std::vector<MCDwarfLineEntry>;
209  using iterator = MCDwarfLineEntryCollection::iterator;
210  using const_iterator = MCDwarfLineEntryCollection::const_iterator;
212 
213 private:
214  // A collection of MCDwarfLineEntry for each section.
215  MCLineDivisionMap MCLineDivisions;
216 
217 public:
218  // Returns the collection of MCDwarfLineEntry for a given Compile Unit ID.
220  return MCLineDivisions;
221  }
222 };
223 
225  /// First special line opcode - leave room for the standard opcodes.
226  /// Note: If you want to change this, you'll have to update the
227  /// "StandardOpcodeLengths" table that is emitted in
228  /// \c Emit().
229  uint8_t DWARF2LineOpcodeBase = 13;
230  /// Minimum line offset in a special line info. opcode. The value
231  /// -5 was chosen to give a reasonable range of values.
232  int8_t DWARF2LineBase = -5;
233  /// Range of line offsets in a special line info. opcode.
234  uint8_t DWARF2LineRange = 14;
235 };
236 
238  MCSymbol *Label = nullptr;
242  std::string CompilationDir;
244  bool HasSource = false;
245 private:
246  bool HasAllMD5 = true;
247  bool HasAnyMD5 = false;
248 
249 public:
250  MCDwarfLineTableHeader() = default;
251 
252  Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
253  Optional<MD5::MD5Result> Checksum,
255  uint16_t DwarfVersion,
256  unsigned FileNumber = 0);
257  std::pair<MCSymbol *, MCSymbol *>
258  Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
259  Optional<MCDwarfLineStr> &LineStr) const;
260  std::pair<MCSymbol *, MCSymbol *>
261  Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
262  ArrayRef<char> SpecialOpcodeLengths,
263  Optional<MCDwarfLineStr> &LineStr) const;
264  void resetMD5Usage() {
265  HasAllMD5 = true;
266  HasAnyMD5 = false;
267  }
268  void trackMD5Usage(bool MD5Used) {
269  HasAllMD5 &= MD5Used;
270  HasAnyMD5 |= MD5Used;
271  }
272  bool isMD5UsageConsistent() const {
273  return MCDwarfFiles.empty() || (HasAllMD5 == HasAnyMD5);
274  }
275 
276  void setRootFile(StringRef Directory, StringRef FileName,
277  Optional<MD5::MD5Result> Checksum,
279  CompilationDir = std::string(Directory);
280  RootFile.Name = std::string(FileName);
281  RootFile.DirIndex = 0;
282  RootFile.Checksum = Checksum;
284  trackMD5Usage(Checksum.hasValue());
285  HasSource = Source.hasValue();
286  }
287 
288  void resetFileTable() {
289  MCDwarfDirs.clear();
290  MCDwarfFiles.clear();
291  RootFile.Name.clear();
292  resetMD5Usage();
293  HasSource = false;
294  }
295 
296 private:
297  void emitV2FileDirTables(MCStreamer *MCOS) const;
298  void emitV5FileDirTables(MCStreamer *MCOS, Optional<MCDwarfLineStr> &LineStr) const;
299 };
300 
302  MCDwarfLineTableHeader Header;
303  bool HasSplitLineTable = false;
304 
305 public:
306  void maybeSetRootFile(StringRef Directory, StringRef FileName,
307  Optional<MD5::MD5Result> Checksum,
309  if (!Header.RootFile.Name.empty())
310  return;
311  Header.setRootFile(Directory, FileName, Checksum, Source);
312  }
313 
314  unsigned getFile(StringRef Directory, StringRef FileName,
315  Optional<MD5::MD5Result> Checksum, uint16_t DwarfVersion,
317  HasSplitLineTable = true;
318  return cantFail(Header.tryGetFile(Directory, FileName, Checksum, Source,
319  DwarfVersion));
320  }
321 
322  void Emit(MCStreamer &MCOS, MCDwarfLineTableParams Params,
323  MCSection *Section) const;
324 };
325 
327  MCDwarfLineTableHeader Header;
328  MCLineSection MCLineSections;
329 
330 public:
331  // This emits the Dwarf file and the line tables for all Compile Units.
332  static void emit(MCStreamer *MCOS, MCDwarfLineTableParams Params);
333 
334  // This emits the Dwarf file and the line tables for a given Compile Unit.
335  void emitCU(MCStreamer *MCOS, MCDwarfLineTableParams Params,
336  Optional<MCDwarfLineStr> &LineStr) const;
337 
338  // This emits a single line table associated with a given Section.
339  static void
341  const MCLineSection::MCDwarfLineEntryCollection &LineEntries);
342 
343  Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
344  Optional<MD5::MD5Result> Checksum,
346  uint16_t DwarfVersion,
347  unsigned FileNumber = 0);
348  unsigned getFile(StringRef &Directory, StringRef &FileName,
350  uint16_t DwarfVersion, unsigned FileNumber = 0) {
351  return cantFail(tryGetFile(Directory, FileName, Checksum, Source,
352  DwarfVersion, FileNumber));
353  }
354 
355  void setRootFile(StringRef Directory, StringRef FileName,
357  Header.CompilationDir = std::string(Directory);
358  Header.RootFile.Name = std::string(FileName);
359  Header.RootFile.DirIndex = 0;
360  Header.RootFile.Checksum = Checksum;
361  Header.RootFile.Source = Source;
362  Header.trackMD5Usage(Checksum.hasValue());
363  Header.HasSource = Source.hasValue();
364  }
365 
366  void resetFileTable() { Header.resetFileTable(); }
367 
368  bool hasRootFile() const { return !Header.RootFile.Name.empty(); }
369 
370  const MCDwarfFile &getRootFile() const { return Header.RootFile; }
371 
372  // Report whether MD5 usage has been consistent (all-or-none).
373  bool isMD5UsageConsistent() const { return Header.isMD5UsageConsistent(); }
374 
375  MCSymbol *getLabel() const {
376  return Header.Label;
377  }
378 
379  void setLabel(MCSymbol *Label) {
380  Header.Label = Label;
381  }
382 
384  return Header.MCDwarfDirs;
385  }
386 
388  return Header.MCDwarfDirs;
389  }
390 
392  return Header.MCDwarfFiles;
393  }
394 
396  return Header.MCDwarfFiles;
397  }
398 
400  return MCLineSections;
401  }
403  return MCLineSections;
404  }
405 };
406 
408 public:
409  /// Utility function to encode a Dwarf pair of LineDelta and AddrDeltas.
410  static void Encode(MCContext &Context, MCDwarfLineTableParams Params,
411  int64_t LineDelta, uint64_t AddrDelta, raw_ostream &OS);
412 
413  /// Utility function to emit the encoding to a streamer.
414  static void Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
415  int64_t LineDelta, uint64_t AddrDelta);
416 };
417 
419 public:
420  //
421  // When generating dwarf for assembly source files this emits the Dwarf
422  // sections.
423  //
424  static void Emit(MCStreamer *MCOS);
425 };
426 
427 // When generating dwarf for assembly source files this is the info that is
428 // needed to be gathered for each symbol that will have a dwarf label.
430 private:
431  // Name of the symbol without a leading underbar, if any.
432  StringRef Name;
433  // The dwarf file number this symbol is in.
434  unsigned FileNumber;
435  // The line number this symbol is at.
436  unsigned LineNumber;
437  // The low_pc for the dwarf label is taken from this symbol.
438  MCSymbol *Label;
439 
440 public:
441  MCGenDwarfLabelEntry(StringRef name, unsigned fileNumber, unsigned lineNumber,
442  MCSymbol *label)
443  : Name(name), FileNumber(fileNumber), LineNumber(lineNumber),
444  Label(label) {}
445 
446  StringRef getName() const { return Name; }
447  unsigned getFileNumber() const { return FileNumber; }
448  unsigned getLineNumber() const { return LineNumber; }
449  MCSymbol *getLabel() const { return Label; }
450 
451  // This is called when label is created when we are generating dwarf for
452  // assembly source files.
453  static void Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr,
454  SMLoc &Loc);
455 };
456 
458 public:
459  enum OpType {
477  };
478 
479 private:
480  OpType Operation;
481  MCSymbol *Label;
482  unsigned Register;
483  union {
484  int Offset;
485  unsigned Register2;
486  };
487  unsigned AddressSpace;
488  std::vector<char> Values;
489  std::string Comment;
490 
491  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int O, StringRef V,
492  StringRef Comment = "")
493  : Operation(Op), Label(L), Register(R), Offset(O),
494  Values(V.begin(), V.end()), Comment(Comment) {
496  }
497 
498  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2)
499  : Operation(Op), Label(L), Register(R1), Register2(R2) {
500  assert(Op == OpRegister);
501  }
502 
503  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int O, unsigned AS)
504  : Operation(Op), Label(L), Register(R), Offset(O), AddressSpace(AS) {
506  }
507 
508 public:
509  /// .cfi_def_cfa defines a rule for computing CFA as: take address from
510  /// Register and add Offset to it.
512  int Offset) {
513  return MCCFIInstruction(OpDefCfa, L, Register, Offset, "");
514  }
515 
516  /// .cfi_def_cfa_register modifies a rule for computing CFA. From now
517  /// on Register will be used instead of the old one. Offset remains the same.
519  return MCCFIInstruction(OpDefCfaRegister, L, Register, 0, "");
520  }
521 
522  /// .cfi_def_cfa_offset modifies a rule for computing CFA. Register
523  /// remains the same, but offset is new. Note that it is the absolute offset
524  /// that will be added to a defined register to the compute CFA address.
526  return MCCFIInstruction(OpDefCfaOffset, L, 0, Offset, "");
527  }
528 
529  /// .cfi_adjust_cfa_offset Same as .cfi_def_cfa_offset, but
530  /// Offset is a relative value that is added/subtracted from the previous
531  /// offset.
532  static MCCFIInstruction createAdjustCfaOffset(MCSymbol *L, int Adjustment) {
533  return MCCFIInstruction(OpAdjustCfaOffset, L, 0, Adjustment, "");
534  }
535 
536  // FIXME: Update the remaining docs to use the new proposal wording.
537  /// .cfi_llvm_def_aspace_cfa defines the rule for computing the CFA to
538  /// be the result of evaluating the DWARF operation expression
539  /// `DW_OP_constu AS; DW_OP_aspace_bregx R, B` as a location description.
541  int Offset,
542  unsigned AddressSpace) {
544  AddressSpace);
545  }
546 
547  /// .cfi_offset Previous value of Register is saved at offset Offset
548  /// from CFA.
550  int Offset) {
551  return MCCFIInstruction(OpOffset, L, Register, Offset, "");
552  }
553 
554  /// .cfi_rel_offset Previous value of Register is saved at offset
555  /// Offset from the current CFA register. This is transformed to .cfi_offset
556  /// using the known displacement of the CFA register from the CFA.
558  int Offset) {
559  return MCCFIInstruction(OpRelOffset, L, Register, Offset, "");
560  }
561 
562  /// .cfi_register Previous value of Register1 is saved in
563  /// register Register2.
564  static MCCFIInstruction createRegister(MCSymbol *L, unsigned Register1,
565  unsigned Register2) {
566  return MCCFIInstruction(OpRegister, L, Register1, Register2);
567  }
568 
569  /// .cfi_window_save SPARC register window is saved.
571  return MCCFIInstruction(OpWindowSave, L, 0, 0, "");
572  }
573 
574  /// .cfi_negate_ra_state AArch64 negate RA state.
576  return MCCFIInstruction(OpNegateRAState, L, 0, 0, "");
577  }
578 
579  /// .cfi_restore says that the rule for Register is now the same as it
580  /// was at the beginning of the function, after all initial instructions added
581  /// by .cfi_startproc were executed.
583  return MCCFIInstruction(OpRestore, L, Register, 0, "");
584  }
585 
586  /// .cfi_undefined From now on the previous value of Register can't be
587  /// restored anymore.
589  return MCCFIInstruction(OpUndefined, L, Register, 0, "");
590  }
591 
592  /// .cfi_same_value Current value of Register is the same as in the
593  /// previous frame. I.e., no restoration is needed.
595  return MCCFIInstruction(OpSameValue, L, Register, 0, "");
596  }
597 
598  /// .cfi_remember_state Save all current rules for all registers.
600  return MCCFIInstruction(OpRememberState, L, 0, 0, "");
601  }
602 
603  /// .cfi_restore_state Restore the previously saved state.
605  return MCCFIInstruction(OpRestoreState, L, 0, 0, "");
606  }
607 
608  /// .cfi_escape Allows the user to add arbitrary bytes to the unwind
609  /// info.
611  StringRef Comment = "") {
612  return MCCFIInstruction(OpEscape, L, 0, 0, Vals, Comment);
613  }
614 
615  /// A special wrapper for .cfi_escape that indicates GNU_ARGS_SIZE
617  return MCCFIInstruction(OpGnuArgsSize, L, 0, Size, "");
618  }
619 
620  OpType getOperation() const { return Operation; }
621  MCSymbol *getLabel() const { return Label; }
622 
623  unsigned getRegister() const {
629  return Register;
630  }
631 
632  unsigned getRegister2() const {
634  return Register2;
635  }
636 
637  unsigned getAddressSpace() const {
639  return AddressSpace;
640  }
641 
642  int getOffset() const {
647  return Offset;
648  }
649 
652  return StringRef(&Values[0], Values.size());
653  }
654 
656  return Comment;
657  }
658 };
659 
661  MCDwarfFrameInfo() = default;
662 
663  MCSymbol *Begin = nullptr;
664  MCSymbol *End = nullptr;
665  const MCSymbol *Personality = nullptr;
666  const MCSymbol *Lsda = nullptr;
667  std::vector<MCCFIInstruction> Instructions;
668  unsigned CurrentCfaRegister = 0;
669  unsigned PersonalityEncoding = 0;
670  unsigned LsdaEncoding = 0;
672  bool IsSignalFrame = false;
673  bool IsSimple = false;
674  unsigned RAReg = static_cast<unsigned>(INT_MAX);
675  bool IsBKeyFrame = false;
676 };
677 
679 public:
680  //
681  // This emits the frame info section.
682  //
683  static void Emit(MCObjectStreamer &streamer, MCAsmBackend *MAB, bool isEH);
684  static void EmitAdvanceLoc(MCObjectStreamer &Streamer, uint64_t AddrDelta);
685  static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta,
686  raw_ostream &OS);
687 };
688 
689 } // end namespace llvm
690 
691 #endif // LLVM_MC_MCDWARF_H
llvm::Check::Size
@ Size
Definition: FileCheck.h:73
llvm::MCDwarfLineTable::tryGetFile
Expected< unsigned > tryGetFile(StringRef &Directory, StringRef &FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
Definition: MCDwarf.cpp:515
llvm::MCCFIInstruction::OpWindowSave
@ OpWindowSave
Definition: MCDwarf.h:474
llvm::MCDwarfFrameInfo::End
MCSymbol * End
Definition: MCDwarf.h:664
llvm::MCDwarfLoc::getColumn
unsigned getColumn() const
Get the Column of this MCDwarfLoc.
Definition: MCDwarf.h:131
llvm::MCGenDwarfInfo
Definition: MCDwarf.h:418
llvm::MCDwarfLineTableParams::DWARF2LineRange
uint8_t DWARF2LineRange
Range of line offsets in a special line info. opcode.
Definition: MCDwarf.h:234
llvm
This file implements support for optimizing divisions by a constant.
Definition: AllocatorList.h:23
llvm::MCDwarfLineTable::emitOne
static void emitOne(MCStreamer *MCOS, MCSection *Section, const MCLineSection::MCDwarfLineEntryCollection &LineEntries)
Definition: MCDwarf.cpp:148
llvm::MCSymbol
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
llvm::MCCFIInstruction::OpRelOffset
@ OpRelOffset
Definition: MCDwarf.h:468
Optional.h
llvm::MCDwarfLineTableParams::DWARF2LineOpcodeBase
uint8_t DWARF2LineOpcodeBase
First special line opcode - leave room for the standard opcodes.
Definition: MCDwarf.h:229
llvm::MCCFIInstruction::OpDefCfaRegister
@ OpDefCfaRegister
Definition: MCDwarf.h:465
llvm::MCCFIInstruction::getComment
StringRef getComment() const
Definition: MCDwarf.h:655
llvm::MCDwarfLoc::setIsa
void setIsa(unsigned isa)
Set the Isa of this MCDwarfLoc.
Definition: MCDwarf.h:161
llvm::MCDwarfLoc::setFileNum
void setFileNum(unsigned fileNum)
Set the FileNum of this MCDwarfLoc.
Definition: MCDwarf.h:143
llvm::MCDwarfLoc::getLine
unsigned getLine() const
Get the Line of this MCDwarfLoc.
Definition: MCDwarf.h:128
llvm::MCDwarfFrameInfo::Lsda
const MCSymbol * Lsda
Definition: MCDwarf.h:666
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::MCDwarfFrameInfo::Begin
MCSymbol * Begin
Definition: MCDwarf.h:663
StringRef.h
llvm::MCCFIInstruction::OpOffset
@ OpOffset
Definition: MCDwarf.h:463
llvm::MCGenDwarfLabelEntry::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:449
llvm::SmallVector< std::string, 3 >
llvm::isa
LLVM_NODISCARD bool isa(const Y &Val)
Definition: Casting.h:141
llvm::MCDwarfLineTableHeader::isMD5UsageConsistent
bool isMD5UsageConsistent() const
Definition: MCDwarf.h:272
llvm::MCLineSection::const_iterator
MCDwarfLineEntryCollection::const_iterator const_iterator
Definition: MCDwarf.h:210
MapVector.h
llvm::MCDwarfLineTableHeader::MCDwarfFiles
SmallVector< MCDwarfFile, 3 > MCDwarfFiles
Definition: MCDwarf.h:240
Error.h
llvm::MCGenDwarfLabelEntry::MCGenDwarfLabelEntry
MCGenDwarfLabelEntry(StringRef name, unsigned fileNumber, unsigned lineNumber, MCSymbol *label)
Definition: MCDwarf.h:441
llvm::MCDwarfLineTableHeader::tryGetFile
Expected< unsigned > tryGetFile(StringRef &Directory, StringRef &FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
Definition: MCDwarf.cpp:533
llvm::MCCFIInstruction::createRelOffset
static MCCFIInstruction createRelOffset(MCSymbol *L, unsigned Register, int Offset)
.cfi_rel_offset Previous value of Register is saved at offset Offset from the current CFA register.
Definition: MCDwarf.h:557
llvm::MCDwarfLineTableHeader::trackMD5Usage
void trackMD5Usage(bool MD5Used)
Definition: MCDwarf.h:268
llvm::sys::path::end
const_iterator end(StringRef path)
Get end iterator over path.
Definition: Path.cpp:233
llvm::sys::path::begin
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
Definition: Path.cpp:224
llvm::MCDwarfLineTableHeader::Emit
std::pair< MCSymbol *, MCSymbol * > Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, Optional< MCDwarfLineStr > &LineStr) const
Definition: MCDwarf.cpp:256
llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc
static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta, raw_ostream &OS)
Definition: MCDwarf.cpp:1877
llvm::Optional
Definition: APInt.h:33
llvm::MapVector< MCSection *, MCDwarfLineEntryCollection >
llvm::MCDwarfFrameInfo::RAReg
unsigned RAReg
Definition: MCDwarf.h:674
llvm::MCDwarfLineTableHeader::RootFile
MCDwarfFile RootFile
Definition: MCDwarf.h:243
llvm::Expected
Tagged union holding either a T or a Error.
Definition: APFloat.h:42
llvm::MCDwarfFile::Checksum
Optional< MD5::MD5Result > Checksum
The MD5 checksum, if there is one.
Definition: MCDwarf.h:85
llvm::MCDwarfFrameInfo::MCDwarfFrameInfo
MCDwarfFrameInfo()=default
llvm::MCDwarfFile::Name
std::string Name
Definition: MCDwarf.h:78
llvm::MCDwarfLoc::setColumn
void setColumn(unsigned column)
Set the Column of this MCDwarfLoc.
Definition: MCDwarf.h:149
llvm::MCCFIInstruction::createSameValue
static MCCFIInstruction createSameValue(MCSymbol *L, unsigned Register)
.cfi_same_value Current value of Register is the same as in the previous frame.
Definition: MCDwarf.h:594
llvm::MCCFIInstruction::createLLVMDefAspaceCfa
static MCCFIInstruction createLLVMDefAspaceCfa(MCSymbol *L, unsigned Register, int Offset, unsigned AddressSpace)
.cfi_llvm_def_aspace_cfa defines the rule for computing the CFA to be the result of evaluating the DW...
Definition: MCDwarf.h:540
llvm::MCDwarfLoc::getDiscriminator
unsigned getDiscriminator() const
Get the Discriminator of this MCDwarfLoc.
Definition: MCDwarf.h:140
llvm::RISCVFenceField::R
@ R
Definition: RISCVBaseInfo.h:198
llvm::MCCFIInstruction::cfiDefCfaOffset
static MCCFIInstruction cfiDefCfaOffset(MCSymbol *L, int Offset)
.cfi_def_cfa_offset modifies a rule for computing CFA.
Definition: MCDwarf.h:525
llvm::MCDwarfLineTable::setRootFile
void setRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:355
llvm::MCGenDwarfLabelEntry
Definition: MCDwarf.h:429
llvm::Optional::hasValue
constexpr bool hasValue() const
Definition: Optional.h:288
Context
LLVMContext & Context
Definition: NVVMIntrRange.cpp:66
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:78
llvm::MCCFIInstruction::OpDefCfa
@ OpDefCfa
Definition: MCDwarf.h:467
llvm::MCDwarfLoc::setFlags
void setFlags(unsigned flags)
Set the Flags of this MCDwarfLoc.
Definition: MCDwarf.h:155
llvm::MCStreamer
Streaming machine code generation interface.
Definition: MCStreamer.h:199
R2
#define R2(n)
llvm::MCDwarfLineStr::emitSection
void emitSection(MCStreamer *MCOS)
Emit the .debug_line_str section if appropriate.
Definition: MCDwarf.cpp:296
StringTableBuilder.h
llvm::MCCFIInstruction::OpUndefined
@ OpUndefined
Definition: MCDwarf.h:472
llvm::MCDwarfLoc::setDiscriminator
void setDiscriminator(unsigned discriminator)
Set the Discriminator of this MCDwarfLoc.
Definition: MCDwarf.h:167
llvm::MCGenDwarfInfo::Emit
static void Emit(MCStreamer *MCOS)
Definition: MCDwarf.cpp:1091
llvm::MCDwarfLoc::setLine
void setLine(unsigned line)
Set the Line of this MCDwarfLoc.
Definition: MCDwarf.h:146
llvm::MCAsmBackend
Generic interface to target specific assembler backends.
Definition: MCAsmBackend.h:36
llvm::MCDwarfFrameInfo::CurrentCfaRegister
unsigned CurrentCfaRegister
Definition: MCDwarf.h:668
llvm::SMLoc
Represents a location in source code.
Definition: SMLoc.h:23
llvm::MCDwarfLineStr
Manage the .debug_line_str section contents, if we use it.
Definition: MCDwarf.h:51
MD5.h
Operation
PowerPC Reduce CR logical Operation
Definition: PPCReduceCRLogicals.cpp:734
llvm::MCLineSection
Instances of this class represent the line information for a compile unit where machine instructions ...
Definition: MCDwarf.h:201
llvm::MCDwarfLineTableParams
Definition: MCDwarf.h:224
llvm::MCDwarfFrameInfo::Personality
const MCSymbol * Personality
Definition: MCDwarf.h:665
llvm::SrcMgr
SourceMgr SrcMgr
Definition: Error.cpp:24
llvm::MCDwarfLineTable::emitCU
void emitCU(MCStreamer *MCOS, MCDwarfLineTableParams Params, Optional< MCDwarfLineStr > &LineStr) const
Definition: MCDwarf.cpp:502
llvm::MCDwarfLineTableHeader::MCDwarfDirs
SmallVector< std::string, 3 > MCDwarfDirs
Definition: MCDwarf.h:239
llvm::MCDwarfLineTableHeader::HasSource
bool HasSource
Definition: MCDwarf.h:244
llvm::MCCFIInstruction::getOffset
int getOffset() const
Definition: MCDwarf.h:642
llvm::MCObjectStreamer
Streaming object file generation interface.
Definition: MCObjectStreamer.h:36
llvm::MCDwarfLineTable
Definition: MCDwarf.h:326
llvm::MCDwarfLineTable::emit
static void emit(MCStreamer *MCOS, MCDwarfLineTableParams Params)
Definition: MCDwarf.cpp:219
llvm::MCCFIInstruction::createRestoreState
static MCCFIInstruction createRestoreState(MCSymbol *L)
.cfi_restore_state Restore the previously saved state.
Definition: MCDwarf.h:604
llvm::MCLineSection::getMCLineEntries
const MCLineDivisionMap & getMCLineEntries() const
Definition: MCDwarf.h:219
llvm::raw_ostream
This class implements an extremely fast bulk output stream that can only output to a stream.
Definition: raw_ostream.h:53
llvm::MCCFIInstruction::getOperation
OpType getOperation() const
Definition: MCDwarf.h:620
llvm::MCDwarfFrameEmitter::Emit
static void Emit(MCObjectStreamer &streamer, MCAsmBackend *MAB, bool isEH)
Definition: MCDwarf.cpp:1799
StringMap.h
llvm::MCLineSection::MCDwarfLineEntryCollection
std::vector< MCDwarfLineEntry > MCDwarfLineEntryCollection
Definition: MCDwarf.h:208
llvm::MCCFIInstruction::createEscape
static MCCFIInstruction createEscape(MCSymbol *L, StringRef Vals, StringRef Comment="")
.cfi_escape Allows the user to add arbitrary bytes to the unwind info.
Definition: MCDwarf.h:610
llvm::AddressSpace
AddressSpace
Definition: NVPTXBaseInfo.h:21
llvm::MCCFIInstruction::getRegister
unsigned getRegister() const
Definition: MCDwarf.h:623
llvm::MCDwarfLineTable::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:375
llvm::MCCFIInstruction
Definition: MCDwarf.h:457
llvm::MCCFIInstruction::createDefCfaRegister
static MCCFIInstruction createDefCfaRegister(MCSymbol *L, unsigned Register)
.cfi_def_cfa_register modifies a rule for computing CFA.
Definition: MCDwarf.h:518
llvm::MCDwarfLineTable::getMCDwarfDirs
SmallVectorImpl< std::string > & getMCDwarfDirs()
Definition: MCDwarf.h:387
llvm::StringMap< unsigned >
llvm::MCDwarfLineTableParams::DWARF2LineBase
int8_t DWARF2LineBase
Minimum line offset in a special line info.
Definition: MCDwarf.h:232
llvm::MCDwarfLineTable::getMCLineSections
const MCLineSection & getMCLineSections() const
Definition: MCDwarf.h:399
llvm::MCGenDwarfLabelEntry::Make
static void Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr, SMLoc &Loc)
Definition: MCDwarf.cpp:1154
llvm::MCDwarfLineAddr::Encode
static void Encode(MCContext &Context, MCDwarfLineTableParams Params, int64_t LineDelta, uint64_t AddrDelta, raw_ostream &OS)
Utility function to encode a Dwarf pair of LineDelta and AddrDeltas.
Definition: MCDwarf.cpp:638
llvm::MCDwarfLoc::getIsa
unsigned getIsa() const
Get the Isa of this MCDwarfLoc.
Definition: MCDwarf.h:137
llvm::MCDwarfLineTable::getFile
unsigned getFile(StringRef &Directory, StringRef &FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source, uint16_t DwarfVersion, unsigned FileNumber=0)
Definition: MCDwarf.h:348
llvm::MCDwarfLineTable::getRootFile
const MCDwarfFile & getRootFile() const
Definition: MCDwarf.h:370
llvm::ISD::Register
@ Register
Definition: ISDOpcodes.h:74
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:197
llvm::MCCFIInstruction::OpDefCfaOffset
@ OpDefCfaOffset
Definition: MCDwarf.h:466
llvm::MCCFIInstruction::OpRestore
@ OpRestore
Definition: MCDwarf.h:471
uint64_t
llvm::MCDwarfLineAddr::Emit
static void Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, int64_t LineDelta, uint64_t AddrDelta)
Utility function to emit the encoding to a streamer.
Definition: MCDwarf.cpp:622
llvm::MCCFIInstruction::createGnuArgsSize
static MCCFIInstruction createGnuArgsSize(MCSymbol *L, int Size)
A special wrapper for .cfi_escape that indicates GNU_ARGS_SIZE.
Definition: MCDwarf.h:616
llvm::MCCFIInstruction::OpSameValue
@ OpSameValue
Definition: MCDwarf.h:460
llvm::MCDwarfLineTable::setLabel
void setLabel(MCSymbol *Label)
Definition: MCDwarf.h:379
llvm::MCCFIInstruction::createNegateRAState
static MCCFIInstruction createNegateRAState(MCSymbol *L)
.cfi_negate_ra_state AArch64 negate RA state.
Definition: MCDwarf.h:575
llvm::MCDwarfLineTableHeader::CompilationDir
std::string CompilationDir
Definition: MCDwarf.h:242
llvm::MCCFIInstruction::OpType
OpType
Definition: MCDwarf.h:459
llvm::MCDwarfFile
Instances of this class represent the name of the dwarf .file directive and its associated dwarf file...
Definition: MCDwarf.h:76
llvm::MCGenDwarfLabelEntry::getLineNumber
unsigned getLineNumber() const
Definition: MCDwarf.h:448
llvm::MCLineSection::iterator
MCDwarfLineEntryCollection::iterator iterator
Definition: MCDwarf.h:209
llvm::MCCFIInstruction::getRegister2
unsigned getRegister2() const
Definition: MCDwarf.h:632
llvm::MCDwarfFrameEmitter
Definition: MCDwarf.h:678
assert
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
llvm::MCDwarfLineTable::getMCDwarfFiles
SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles()
Definition: MCDwarf.h:395
llvm::MCGenDwarfLabelEntry::getName
StringRef getName() const
Definition: MCDwarf.h:446
llvm::MCDwarfLineTableHeader::setRootFile
void setRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:276
llvm::MCCFIInstruction::cfiDefCfa
static MCCFIInstruction cfiDefCfa(MCSymbol *L, unsigned Register, int Offset)
.cfi_def_cfa defines a rule for computing CFA as: take address from Register and add Offset to it.
Definition: MCDwarf.h:511
llvm::MCCFIInstruction::OpAdjustCfaOffset
@ OpAdjustCfaOffset
Definition: MCDwarf.h:469
llvm::MCDwarfLineTable::getMCDwarfFiles
const SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles() const
Definition: MCDwarf.h:391
MCSection.h
llvm::MCCFIInstruction::Register2
unsigned Register2
Definition: MCDwarf.h:485
llvm::mcdwarf::emitListsTableHeaderStart
MCSymbol * emitListsTableHeaderStart(MCStreamer &S)
Definition: MCDwarf.cpp:47
llvm::MCCFIInstruction::OpEscape
@ OpEscape
Definition: MCDwarf.h:470
llvm::MCDwarfLineEntry::MCDwarfLineEntry
MCDwarfLineEntry(MCSymbol *label, const MCDwarfLoc loc)
Definition: MCDwarf.h:186
llvm::Sched::Source
@ Source
Definition: TargetLowering.h:100
llvm::ArrayRef< char >
llvm::MCDwarfLoc
Instances of this class represent the information from a dwarf .loc directive.
Definition: MCDwarf.h:94
llvm::MCCFIInstruction::getAddressSpace
unsigned getAddressSpace() const
Definition: MCDwarf.h:637
llvm::MCCFIInstruction::OpRememberState
@ OpRememberState
Definition: MCDwarf.h:461
llvm::StringTableBuilder::DWARF
@ DWARF
Definition: StringTableBuilder.h:33
llvm::MCDwarfDwoLineTable
Definition: MCDwarf.h:301
llvm::MCDwarfLineStr::MCDwarfLineStr
MCDwarfLineStr(MCContext &Ctx)
Construct an instance that can emit .debug_line_str (for use in a normal v5 line table).
Definition: MCDwarf.cpp:79
llvm::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:58
llvm::MCCFIInstruction::getValues
StringRef getValues() const
Definition: MCDwarf.h:650
llvm::MCDwarfLineEntry::make
static void make(MCStreamer *MCOS, MCSection *Section)
Definition: MCDwarf.cpp:91
llvm::MCGenDwarfLabelEntry::getFileNumber
unsigned getFileNumber() const
Definition: MCDwarf.h:447
llvm::cantFail
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
Definition: Error.h:737
llvm::SourceMgr
This owns the files read by a parser, handles include stacks, and handles diagnostic wrangling.
Definition: SourceMgr.h:31
llvm::MCDwarfLineTableHeader::Label
MCSymbol * Label
Definition: MCDwarf.h:238
uint32_t
llvm::MCCFIInstruction::OpLLVMDefAspaceCfa
@ OpLLVMDefAspaceCfa
Definition: MCDwarf.h:464
llvm::MCSection
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:39
S
add sub stmia L5 ldr r0 bl L_printf $stub Instead of a and a wouldn t it be better to do three moves *Return an aggregate type is even return S
Definition: README.txt:210
llvm::MCDwarfFrameInfo::CompactUnwindEncoding
uint32_t CompactUnwindEncoding
Definition: MCDwarf.h:671
llvm::MCCFIInstruction::createAdjustCfaOffset
static MCCFIInstruction createAdjustCfaOffset(MCSymbol *L, int Adjustment)
.cfi_adjust_cfa_offset Same as .cfi_def_cfa_offset, but Offset is a relative value that is added/subt...
Definition: MCDwarf.h:532
llvm::MCDwarfLineTableHeader::MCDwarfLineTableHeader
MCDwarfLineTableHeader()=default
llvm::MCDwarfFile::DirIndex
unsigned DirIndex
Definition: MCDwarf.h:81
llvm::MCDwarfLineStr::emitRef
void emitRef(MCStreamer *MCOS, StringRef Path)
Emit a reference to the string.
Definition: MCDwarf.cpp:308
llvm::MCDwarfDwoLineTable::maybeSetRootFile
void maybeSetRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:306
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
llvm::MCDwarfLineTableHeader::SourceIdMap
StringMap< unsigned > SourceIdMap
Definition: MCDwarf.h:241
llvm::MCDwarfDwoLineTable::Emit
void Emit(MCStreamer &MCOS, MCDwarfLineTableParams Params, MCSection *Section) const
Definition: MCDwarf.cpp:246
llvm::AVR::AddressSpace
AddressSpace
An integer that identifies all of the supported AVR address spaces.
Definition: AVR.h:42
llvm::MCDwarfFrameInfo::IsBKeyFrame
bool IsBKeyFrame
Definition: MCDwarf.h:675
llvm::MCDwarfFrameInfo::PersonalityEncoding
unsigned PersonalityEncoding
Definition: MCDwarf.h:669
name
static const char * name
Definition: SVEIntrinsicOpts.cpp:78
llvm::MCLineSection::addLineEntry
void addLineEntry(const MCDwarfLineEntry &LineEntry, MCSection *Sec)
Definition: MCDwarf.h:204
llvm::MCDwarfLoc::getFlags
unsigned getFlags() const
Get the Flags of this MCDwarfLoc.
Definition: MCDwarf.h:134
llvm::pdb::PDB_SymType::Label
@ Label
uint16_t
llvm::AMDGPU::SendMsg::Op
Op
Definition: SIDefines.h:324
llvm::MCDwarfLineTableHeader::resetFileTable
void resetFileTable()
Definition: MCDwarf.h:288
llvm::MCCFIInstruction::OpGnuArgsSize
@ OpGnuArgsSize
Definition: MCDwarf.h:476
llvm::MCDwarfLineTable::resetFileTable
void resetFileTable()
Definition: MCDwarf.h:366
llvm::MCDwarfFrameInfo::IsSignalFrame
bool IsSignalFrame
Definition: MCDwarf.h:672
llvm::MCDwarfDwoLineTable::getFile
unsigned getFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, uint16_t DwarfVersion, Optional< StringRef > Source)
Definition: MCDwarf.h:314
llvm::MCDwarfFile::Source
Optional< StringRef > Source
The source code of the file.
Definition: MCDwarf.h:89
llvm::StringTableBuilder
Utility for building string tables with deduplicated suffixes.
Definition: StringTableBuilder.h:23
llvm::SmallVectorImpl::clear
void clear()
Definition: SmallVector.h:585
llvm::MCDwarfLoc::getFileNum
unsigned getFileNum() const
Get the FileNum of this MCDwarfLoc.
Definition: MCDwarf.h:125
llvm::MCDwarfLineTableHeader
Definition: MCDwarf.h:237
llvm::MCCFIInstruction::OpRegister
@ OpRegister
Definition: MCDwarf.h:473
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition: ARMBuildAttributes.h:79
llvm::MCDwarfLineTable::isMD5UsageConsistent
bool isMD5UsageConsistent() const
Definition: MCDwarf.h:373
llvm::MCDwarfLineTable::getMCLineSections
MCLineSection & getMCLineSections()
Definition: MCDwarf.h:402
llvm::MCDwarfLineTable::getMCDwarfDirs
const SmallVectorImpl< std::string > & getMCDwarfDirs() const
Definition: MCDwarf.h:383
llvm::MCDwarfLineEntry::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:189
llvm::MCCFIInstruction::Offset
int Offset
Definition: MCDwarf.h:484
llvm::MCDwarfFrameInfo::Instructions
std::vector< MCCFIInstruction > Instructions
Definition: MCDwarf.h:667
llvm::MCCFIInstruction::createRegister
static MCCFIInstruction createRegister(MCSymbol *L, unsigned Register1, unsigned Register2)
.cfi_register Previous value of Register1 is saved in register Register2.
Definition: MCDwarf.h:564
llvm::MCDwarfFrameInfo::LsdaEncoding
unsigned LsdaEncoding
Definition: MCDwarf.h:670
SmallVector.h
llvm::MCCFIInstruction::createUndefined
static MCCFIInstruction createUndefined(MCSymbol *L, unsigned Register)
.cfi_undefined From now on the previous value of Register can't be restored anymore.
Definition: MCDwarf.h:588
llvm::MCDwarfFrameEmitter::EmitAdvanceLoc
static void EmitAdvanceLoc(MCObjectStreamer &Streamer, uint64_t AddrDelta)
Definition: MCDwarf.cpp:1868
llvm::SmallVectorImpl< std::string >
llvm::MCDwarfFrameInfo::IsSimple
bool IsSimple
Definition: MCDwarf.h:673
llvm::MCCFIInstruction::createOffset
static MCCFIInstruction createOffset(MCSymbol *L, unsigned Register, int Offset)
.cfi_offset Previous value of Register is saved at offset Offset from CFA.
Definition: MCDwarf.h:549
llvm::MCCFIInstruction::createRememberState
static MCCFIInstruction createRememberState(MCSymbol *L)
.cfi_remember_state Save all current rules for all registers.
Definition: MCDwarf.h:599
llvm::MCDwarfLineEntry
Instances of this class represent the line information for the dwarf line table entries.
Definition: MCDwarf.h:177
llvm::MCDwarfLineTableHeader::resetMD5Usage
void resetMD5Usage()
Definition: MCDwarf.h:264
llvm::MCCFIInstruction::OpNegateRAState
@ OpNegateRAState
Definition: MCDwarf.h:475
llvm::MCDwarfFrameInfo
Definition: MCDwarf.h:660
llvm::MCDwarfLineAddr
Definition: MCDwarf.h:407
llvm::MCCFIInstruction::OpRestoreState
@ OpRestoreState
Definition: MCDwarf.h:462
llvm::MCCFIInstruction::createWindowSave
static MCCFIInstruction createWindowSave(MCSymbol *L)
.cfi_window_save SPARC register window is saved.
Definition: MCDwarf.h:570
llvm::ISD::MCSymbol
@ MCSymbol
Definition: ISDOpcodes.h:172
llvm::MCDwarfLineTable::hasRootFile
bool hasRootFile() const
Definition: MCDwarf.h:368
llvm::MCCFIInstruction::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:621
llvm::MCCFIInstruction::createRestore
static MCCFIInstruction createRestore(MCSymbol *L, unsigned Register)
.cfi_restore says that the rule for Register is now the same as it was at the beginning of the functi...
Definition: MCDwarf.h:582