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