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 indicates the line entry is synthesized for an end entry.
192  bool IsEndEntry = false;
193 
194  // Override the label with the given EndLabel.
195  void setEndLabel(MCSymbol *EndLabel) {
196  Label = EndLabel;
197  IsEndEntry = true;
198  }
199 
200  // This is called when an instruction is assembled into the specified
201  // section and if there is information from the last .loc directive that
202  // has yet to have a line entry made for it is made.
203  static void make(MCStreamer *MCOS, MCSection *Section);
204 };
205 
206 /// Instances of this class represent the line information for a compile
207 /// unit where machine instructions have been assembled after seeing .loc
208 /// directives. This is the information used to build the dwarf line
209 /// table for a section.
211 public:
212  // Add an entry to this MCLineSection's line entries.
213  void addLineEntry(const MCDwarfLineEntry &LineEntry, MCSection *Sec) {
214  MCLineDivisions[Sec].push_back(LineEntry);
215  }
216 
217  // Add an end entry by cloning the last entry, if exists, for the section
218  // the given EndLabel belongs to. The label is replaced by the given EndLabel.
219  void addEndEntry(MCSymbol *EndLabel);
220 
221  using MCDwarfLineEntryCollection = std::vector<MCDwarfLineEntry>;
222  using iterator = MCDwarfLineEntryCollection::iterator;
223  using const_iterator = MCDwarfLineEntryCollection::const_iterator;
225 
226 private:
227  // A collection of MCDwarfLineEntry for each section.
228  MCLineDivisionMap MCLineDivisions;
229 
230 public:
231  // Returns the collection of MCDwarfLineEntry for a given Compile Unit ID.
233  return MCLineDivisions;
234  }
235 };
236 
238  /// First special line opcode - leave room for the standard opcodes.
239  /// Note: If you want to change this, you'll have to update the
240  /// "StandardOpcodeLengths" table that is emitted in
241  /// \c Emit().
242  uint8_t DWARF2LineOpcodeBase = 13;
243  /// Minimum line offset in a special line info. opcode. The value
244  /// -5 was chosen to give a reasonable range of values.
245  int8_t DWARF2LineBase = -5;
246  /// Range of line offsets in a special line info. opcode.
247  uint8_t DWARF2LineRange = 14;
248 };
249 
251  MCSymbol *Label = nullptr;
255  std::string CompilationDir;
257  bool HasSource = false;
258 private:
259  bool HasAllMD5 = true;
260  bool HasAnyMD5 = false;
261 
262 public:
263  MCDwarfLineTableHeader() = default;
264 
265  Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
266  Optional<MD5::MD5Result> Checksum,
268  uint16_t DwarfVersion,
269  unsigned FileNumber = 0);
270  std::pair<MCSymbol *, MCSymbol *>
271  Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
272  Optional<MCDwarfLineStr> &LineStr) const;
273  std::pair<MCSymbol *, MCSymbol *>
274  Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
275  ArrayRef<char> SpecialOpcodeLengths,
276  Optional<MCDwarfLineStr> &LineStr) const;
277  void resetMD5Usage() {
278  HasAllMD5 = true;
279  HasAnyMD5 = false;
280  }
281  void trackMD5Usage(bool MD5Used) {
282  HasAllMD5 &= MD5Used;
283  HasAnyMD5 |= MD5Used;
284  }
285  bool isMD5UsageConsistent() const {
286  return MCDwarfFiles.empty() || (HasAllMD5 == HasAnyMD5);
287  }
288 
289  void setRootFile(StringRef Directory, StringRef FileName,
290  Optional<MD5::MD5Result> Checksum,
292  CompilationDir = std::string(Directory);
293  RootFile.Name = std::string(FileName);
294  RootFile.DirIndex = 0;
295  RootFile.Checksum = Checksum;
297  trackMD5Usage(Checksum.hasValue());
298  HasSource = Source.hasValue();
299  }
300 
301  void resetFileTable() {
302  MCDwarfDirs.clear();
303  MCDwarfFiles.clear();
304  RootFile.Name.clear();
305  resetMD5Usage();
306  HasSource = false;
307  }
308 
309 private:
310  void emitV2FileDirTables(MCStreamer *MCOS) const;
311  void emitV5FileDirTables(MCStreamer *MCOS, Optional<MCDwarfLineStr> &LineStr) const;
312 };
313 
315  MCDwarfLineTableHeader Header;
316  bool HasSplitLineTable = false;
317 
318 public:
319  void maybeSetRootFile(StringRef Directory, StringRef FileName,
320  Optional<MD5::MD5Result> Checksum,
322  if (!Header.RootFile.Name.empty())
323  return;
324  Header.setRootFile(Directory, FileName, Checksum, Source);
325  }
326 
327  unsigned getFile(StringRef Directory, StringRef FileName,
328  Optional<MD5::MD5Result> Checksum, uint16_t DwarfVersion,
330  HasSplitLineTable = true;
331  return cantFail(Header.tryGetFile(Directory, FileName, Checksum, Source,
332  DwarfVersion));
333  }
334 
335  void Emit(MCStreamer &MCOS, MCDwarfLineTableParams Params,
336  MCSection *Section) const;
337 };
338 
340  MCDwarfLineTableHeader Header;
341  MCLineSection MCLineSections;
342 
343 public:
344  // This emits the Dwarf file and the line tables for all Compile Units.
345  static void emit(MCStreamer *MCOS, MCDwarfLineTableParams Params);
346 
347  // This emits the Dwarf file and the line tables for a given Compile Unit.
348  void emitCU(MCStreamer *MCOS, MCDwarfLineTableParams Params,
349  Optional<MCDwarfLineStr> &LineStr) const;
350 
351  // This emits a single line table associated with a given Section.
352  static void
354  const MCLineSection::MCDwarfLineEntryCollection &LineEntries);
355 
356  Expected<unsigned> tryGetFile(StringRef &Directory, StringRef &FileName,
357  Optional<MD5::MD5Result> Checksum,
359  uint16_t DwarfVersion,
360  unsigned FileNumber = 0);
361  unsigned getFile(StringRef &Directory, StringRef &FileName,
363  uint16_t DwarfVersion, unsigned FileNumber = 0) {
364  return cantFail(tryGetFile(Directory, FileName, Checksum, Source,
365  DwarfVersion, FileNumber));
366  }
367 
368  void setRootFile(StringRef Directory, StringRef FileName,
370  Header.CompilationDir = std::string(Directory);
371  Header.RootFile.Name = std::string(FileName);
372  Header.RootFile.DirIndex = 0;
373  Header.RootFile.Checksum = Checksum;
374  Header.RootFile.Source = Source;
375  Header.trackMD5Usage(Checksum.hasValue());
376  Header.HasSource = Source.hasValue();
377  }
378 
379  void resetFileTable() { Header.resetFileTable(); }
380 
381  bool hasRootFile() const { return !Header.RootFile.Name.empty(); }
382 
383  const MCDwarfFile &getRootFile() const { return Header.RootFile; }
384 
385  // Report whether MD5 usage has been consistent (all-or-none).
386  bool isMD5UsageConsistent() const { return Header.isMD5UsageConsistent(); }
387 
388  MCSymbol *getLabel() const {
389  return Header.Label;
390  }
391 
392  void setLabel(MCSymbol *Label) {
393  Header.Label = Label;
394  }
395 
397  return Header.MCDwarfDirs;
398  }
399 
401  return Header.MCDwarfDirs;
402  }
403 
405  return Header.MCDwarfFiles;
406  }
407 
409  return Header.MCDwarfFiles;
410  }
411 
413  return MCLineSections;
414  }
416  return MCLineSections;
417  }
418 };
419 
421 public:
422  /// Utility function to encode a Dwarf pair of LineDelta and AddrDeltas.
423  static void Encode(MCContext &Context, MCDwarfLineTableParams Params,
424  int64_t LineDelta, uint64_t AddrDelta, raw_ostream &OS);
425 
426  /// Utility function to emit the encoding to a streamer.
427  static void Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params,
428  int64_t LineDelta, uint64_t AddrDelta);
429 };
430 
432 public:
433  //
434  // When generating dwarf for assembly source files this emits the Dwarf
435  // sections.
436  //
437  static void Emit(MCStreamer *MCOS);
438 };
439 
440 // When generating dwarf for assembly source files this is the info that is
441 // needed to be gathered for each symbol that will have a dwarf label.
443 private:
444  // Name of the symbol without a leading underbar, if any.
445  StringRef Name;
446  // The dwarf file number this symbol is in.
447  unsigned FileNumber;
448  // The line number this symbol is at.
449  unsigned LineNumber;
450  // The low_pc for the dwarf label is taken from this symbol.
451  MCSymbol *Label;
452 
453 public:
454  MCGenDwarfLabelEntry(StringRef name, unsigned fileNumber, unsigned lineNumber,
455  MCSymbol *label)
456  : Name(name), FileNumber(fileNumber), LineNumber(lineNumber),
457  Label(label) {}
458 
459  StringRef getName() const { return Name; }
460  unsigned getFileNumber() const { return FileNumber; }
461  unsigned getLineNumber() const { return LineNumber; }
462  MCSymbol *getLabel() const { return Label; }
463 
464  // This is called when label is created when we are generating dwarf for
465  // assembly source files.
466  static void Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr,
467  SMLoc &Loc);
468 };
469 
471 public:
472  enum OpType {
490  };
491 
492 private:
493  OpType Operation;
494  MCSymbol *Label;
495  unsigned Register;
496  union {
497  int Offset;
498  unsigned Register2;
499  };
500  unsigned AddressSpace;
501  std::vector<char> Values;
502  std::string Comment;
503 
504  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int O, StringRef V,
505  StringRef Comment = "")
506  : Operation(Op), Label(L), Register(R), Offset(O),
507  Values(V.begin(), V.end()), Comment(Comment) {
509  }
510 
511  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R1, unsigned R2)
512  : Operation(Op), Label(L), Register(R1), Register2(R2) {
513  assert(Op == OpRegister);
514  }
515 
516  MCCFIInstruction(OpType Op, MCSymbol *L, unsigned R, int O, unsigned AS)
517  : Operation(Op), Label(L), Register(R), Offset(O), AddressSpace(AS) {
519  }
520 
521 public:
522  /// .cfi_def_cfa defines a rule for computing CFA as: take address from
523  /// Register and add Offset to it.
525  int Offset) {
526  return MCCFIInstruction(OpDefCfa, L, Register, Offset, "");
527  }
528 
529  /// .cfi_def_cfa_register modifies a rule for computing CFA. From now
530  /// on Register will be used instead of the old one. Offset remains the same.
532  return MCCFIInstruction(OpDefCfaRegister, L, Register, 0, "");
533  }
534 
535  /// .cfi_def_cfa_offset modifies a rule for computing CFA. Register
536  /// remains the same, but offset is new. Note that it is the absolute offset
537  /// that will be added to a defined register to the compute CFA address.
539  return MCCFIInstruction(OpDefCfaOffset, L, 0, Offset, "");
540  }
541 
542  /// .cfi_adjust_cfa_offset Same as .cfi_def_cfa_offset, but
543  /// Offset is a relative value that is added/subtracted from the previous
544  /// offset.
545  static MCCFIInstruction createAdjustCfaOffset(MCSymbol *L, int Adjustment) {
546  return MCCFIInstruction(OpAdjustCfaOffset, L, 0, Adjustment, "");
547  }
548 
549  // FIXME: Update the remaining docs to use the new proposal wording.
550  /// .cfi_llvm_def_aspace_cfa defines the rule for computing the CFA to
551  /// be the result of evaluating the DWARF operation expression
552  /// `DW_OP_constu AS; DW_OP_aspace_bregx R, B` as a location description.
554  int Offset,
555  unsigned AddressSpace) {
557  AddressSpace);
558  }
559 
560  /// .cfi_offset Previous value of Register is saved at offset Offset
561  /// from CFA.
563  int Offset) {
564  return MCCFIInstruction(OpOffset, L, Register, Offset, "");
565  }
566 
567  /// .cfi_rel_offset Previous value of Register is saved at offset
568  /// Offset from the current CFA register. This is transformed to .cfi_offset
569  /// using the known displacement of the CFA register from the CFA.
571  int Offset) {
572  return MCCFIInstruction(OpRelOffset, L, Register, Offset, "");
573  }
574 
575  /// .cfi_register Previous value of Register1 is saved in
576  /// register Register2.
577  static MCCFIInstruction createRegister(MCSymbol *L, unsigned Register1,
578  unsigned Register2) {
579  return MCCFIInstruction(OpRegister, L, Register1, Register2);
580  }
581 
582  /// .cfi_window_save SPARC register window is saved.
584  return MCCFIInstruction(OpWindowSave, L, 0, 0, "");
585  }
586 
587  /// .cfi_negate_ra_state AArch64 negate RA state.
589  return MCCFIInstruction(OpNegateRAState, L, 0, 0, "");
590  }
591 
592  /// .cfi_restore says that the rule for Register is now the same as it
593  /// was at the beginning of the function, after all initial instructions added
594  /// by .cfi_startproc were executed.
596  return MCCFIInstruction(OpRestore, L, Register, 0, "");
597  }
598 
599  /// .cfi_undefined From now on the previous value of Register can't be
600  /// restored anymore.
602  return MCCFIInstruction(OpUndefined, L, Register, 0, "");
603  }
604 
605  /// .cfi_same_value Current value of Register is the same as in the
606  /// previous frame. I.e., no restoration is needed.
608  return MCCFIInstruction(OpSameValue, L, Register, 0, "");
609  }
610 
611  /// .cfi_remember_state Save all current rules for all registers.
613  return MCCFIInstruction(OpRememberState, L, 0, 0, "");
614  }
615 
616  /// .cfi_restore_state Restore the previously saved state.
618  return MCCFIInstruction(OpRestoreState, L, 0, 0, "");
619  }
620 
621  /// .cfi_escape Allows the user to add arbitrary bytes to the unwind
622  /// info.
624  StringRef Comment = "") {
625  return MCCFIInstruction(OpEscape, L, 0, 0, Vals, Comment);
626  }
627 
628  /// A special wrapper for .cfi_escape that indicates GNU_ARGS_SIZE
630  return MCCFIInstruction(OpGnuArgsSize, L, 0, Size, "");
631  }
632 
633  OpType getOperation() const { return Operation; }
634  MCSymbol *getLabel() const { return Label; }
635 
636  unsigned getRegister() const {
642  return Register;
643  }
644 
645  unsigned getRegister2() const {
647  return Register2;
648  }
649 
650  unsigned getAddressSpace() const {
652  return AddressSpace;
653  }
654 
655  int getOffset() const {
660  return Offset;
661  }
662 
665  return StringRef(&Values[0], Values.size());
666  }
667 
669  return Comment;
670  }
671 };
672 
674  MCDwarfFrameInfo() = default;
675 
676  MCSymbol *Begin = nullptr;
677  MCSymbol *End = nullptr;
678  const MCSymbol *Personality = nullptr;
679  const MCSymbol *Lsda = nullptr;
680  std::vector<MCCFIInstruction> Instructions;
681  unsigned CurrentCfaRegister = 0;
682  unsigned PersonalityEncoding = 0;
683  unsigned LsdaEncoding = 0;
685  bool IsSignalFrame = false;
686  bool IsSimple = false;
687  unsigned RAReg = static_cast<unsigned>(INT_MAX);
688  bool IsBKeyFrame = false;
689 };
690 
692 public:
693  //
694  // This emits the frame info section.
695  //
696  static void Emit(MCObjectStreamer &streamer, MCAsmBackend *MAB, bool isEH);
697  static void EmitAdvanceLoc(MCObjectStreamer &Streamer, uint64_t AddrDelta);
698  static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta,
699  raw_ostream &OS);
700 };
701 
702 } // end namespace llvm
703 
704 #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:552
llvm::MCCFIInstruction::OpWindowSave
@ OpWindowSave
Definition: MCDwarf.h:487
llvm::MCDwarfFrameInfo::End
MCSymbol * End
Definition: MCDwarf.h:677
llvm::MCDwarfLoc::getColumn
unsigned getColumn() const
Get the Column of this MCDwarfLoc.
Definition: MCDwarf.h:131
llvm::MCDwarfLineEntry::IsEndEntry
bool IsEndEntry
Definition: MCDwarf.h:192
llvm::MCGenDwarfInfo
Definition: MCDwarf.h:431
llvm::MCDwarfLineTableParams::DWARF2LineRange
uint8_t DWARF2LineRange
Range of line offsets in a special line info. opcode.
Definition: MCDwarf.h:247
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AllocatorList.h:23
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:481
Optional.h
llvm::MCDwarfLineTableParams::DWARF2LineOpcodeBase
uint8_t DWARF2LineOpcodeBase
First special line opcode - leave room for the standard opcodes.
Definition: MCDwarf.h:242
llvm::MCCFIInstruction::OpDefCfaRegister
@ OpDefCfaRegister
Definition: MCDwarf.h:478
llvm::MCCFIInstruction::getComment
StringRef getComment() const
Definition: MCDwarf.h:668
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:679
llvm::MCContext
Context object for machine code objects.
Definition: MCContext.h:72
llvm::MCDwarfFrameInfo::Begin
MCSymbol * Begin
Definition: MCDwarf.h:676
StringRef.h
llvm::MCCFIInstruction::OpOffset
@ OpOffset
Definition: MCDwarf.h:476
llvm::MCGenDwarfLabelEntry::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:462
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:285
llvm::MCLineSection::const_iterator
MCDwarfLineEntryCollection::const_iterator const_iterator
Definition: MCDwarf.h:223
MapVector.h
llvm::MCDwarfLineTableHeader::MCDwarfFiles
SmallVector< MCDwarfFile, 3 > MCDwarfFiles
Definition: MCDwarf.h:253
Error.h
llvm::MCGenDwarfLabelEntry::MCGenDwarfLabelEntry
MCGenDwarfLabelEntry(StringRef name, unsigned fileNumber, unsigned lineNumber, MCSymbol *label)
Definition: MCDwarf.h:454
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:570
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:570
llvm::MCDwarfLineTableHeader::trackMD5Usage
void trackMD5Usage(bool MD5Used)
Definition: MCDwarf.h:281
llvm::sys::path::end
const_iterator end(StringRef path)
Get end iterator over path.
Definition: Path.cpp:236
llvm::sys::path::begin
const_iterator begin(StringRef path, Style style=Style::native)
Get begin iterator over path.
Definition: Path.cpp:227
llvm::MCDwarfLineTableHeader::Emit
std::pair< MCSymbol *, MCSymbol * > Emit(MCStreamer *MCOS, MCDwarfLineTableParams Params, Optional< MCDwarfLineStr > &LineStr) const
Definition: MCDwarf.cpp:293
llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc
static void EncodeAdvanceLoc(MCContext &Context, uint64_t AddrDelta, raw_ostream &OS)
Definition: MCDwarf.cpp:1914
llvm::Optional
Definition: APInt.h:33
llvm::MapVector< MCSection *, MCDwarfLineEntryCollection >
llvm::MCDwarfFrameInfo::RAReg
unsigned RAReg
Definition: MCDwarf.h:687
llvm::MCDwarfLineTableHeader::RootFile
MCDwarfFile RootFile
Definition: MCDwarf.h:256
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:607
llvm::MCDwarfLineEntry::setEndLabel
void setEndLabel(MCSymbol *EndLabel)
Definition: MCDwarf.h:195
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:553
llvm::MCDwarfLoc::getDiscriminator
unsigned getDiscriminator() const
Get the Discriminator of this MCDwarfLoc.
Definition: MCDwarf.h:140
llvm::RISCVFenceField::R
@ R
Definition: RISCVBaseInfo.h:207
llvm::MCCFIInstruction::cfiDefCfaOffset
static MCCFIInstruction cfiDefCfaOffset(MCSymbol *L, int Offset)
.cfi_def_cfa_offset modifies a rule for computing CFA.
Definition: MCDwarf.h:538
llvm::MCDwarfLineTable::setRootFile
void setRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:368
Context
ManagedStatic< detail::RecordContext > Context
Definition: Record.cpp:96
llvm::MCGenDwarfLabelEntry
Definition: MCDwarf.h:442
llvm::Optional::hasValue
constexpr bool hasValue() const
Definition: Optional.h:288
llvm::ARMBuildAttrs::Section
@ Section
Legacy Tags.
Definition: ARMBuildAttributes.h:82
llvm::MCCFIInstruction::OpDefCfa
@ OpDefCfa
Definition: MCDwarf.h:480
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:333
StringTableBuilder.h
llvm::MCCFIInstruction::OpUndefined
@ OpUndefined
Definition: MCDwarf.h:485
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:1128
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:681
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:210
llvm::MCDwarfLineTableParams
Definition: MCDwarf.h:237
llvm::MCDwarfFrameInfo::Personality
const MCSymbol * Personality
Definition: MCDwarf.h:678
llvm::SrcMgr
SourceMgr SrcMgr
Definition: Error.cpp:24
llvm::MCDwarfLineTable::emitCU
void emitCU(MCStreamer *MCOS, MCDwarfLineTableParams Params, Optional< MCDwarfLineStr > &LineStr) const
Definition: MCDwarf.cpp:539
llvm::MCDwarfLineTableHeader::MCDwarfDirs
SmallVector< std::string, 3 > MCDwarfDirs
Definition: MCDwarf.h:252
llvm::MCDwarfLineTableHeader::HasSource
bool HasSource
Definition: MCDwarf.h:257
llvm::MCCFIInstruction::getOffset
int getOffset() const
Definition: MCDwarf.h:655
llvm::MCObjectStreamer
Streaming object file generation interface.
Definition: MCObjectStreamer.h:36
llvm::MCDwarfLineTable
Definition: MCDwarf.h:339
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:617
llvm::MCLineSection::getMCLineEntries
const MCLineDivisionMap & getMCLineEntries() const
Definition: MCDwarf.h:232
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:633
llvm::MCDwarfFrameEmitter::Emit
static void Emit(MCObjectStreamer &streamer, MCAsmBackend *MAB, bool isEH)
Definition: MCDwarf.cpp:1836
StringMap.h
llvm::MCLineSection::MCDwarfLineEntryCollection
std::vector< MCDwarfLineEntry > MCDwarfLineEntryCollection
Definition: MCDwarf.h:221
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:623
llvm::AddressSpace
AddressSpace
Definition: NVPTXBaseInfo.h:21
llvm::MCCFIInstruction::getRegister
unsigned getRegister() const
Definition: MCDwarf.h:636
llvm::MCDwarfLineTable::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:388
llvm::MCCFIInstruction
Definition: MCDwarf.h:470
llvm::MCCFIInstruction::createDefCfaRegister
static MCCFIInstruction createDefCfaRegister(MCSymbol *L, unsigned Register)
.cfi_def_cfa_register modifies a rule for computing CFA.
Definition: MCDwarf.h:531
llvm::MCDwarfLineTable::getMCDwarfDirs
SmallVectorImpl< std::string > & getMCDwarfDirs()
Definition: MCDwarf.h:400
llvm::StringMap< unsigned >
llvm::MCDwarfLineTableParams::DWARF2LineBase
int8_t DWARF2LineBase
Minimum line offset in a special line info.
Definition: MCDwarf.h:245
llvm::MCDwarfLineTable::getMCLineSections
const MCLineSection & getMCLineSections() const
Definition: MCDwarf.h:412
llvm::MCGenDwarfLabelEntry::Make
static void Make(MCSymbol *Symbol, MCStreamer *MCOS, SourceMgr &SrcMgr, SMLoc &Loc)
Definition: MCDwarf.cpp:1191
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:675
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:361
llvm::MCDwarfLineTable::getRootFile
const MCDwarfFile & getRootFile() const
Definition: MCDwarf.h:383
llvm::ISD::Register
@ Register
Definition: ISDOpcodes.h:74
llvm::RISCVFenceField::O
@ O
Definition: RISCVBaseInfo.h:206
llvm::MCCFIInstruction::OpDefCfaOffset
@ OpDefCfaOffset
Definition: MCDwarf.h:479
llvm::MCCFIInstruction::OpRestore
@ OpRestore
Definition: MCDwarf.h:484
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:659
llvm::MCCFIInstruction::createGnuArgsSize
static MCCFIInstruction createGnuArgsSize(MCSymbol *L, int Size)
A special wrapper for .cfi_escape that indicates GNU_ARGS_SIZE.
Definition: MCDwarf.h:629
llvm::MCCFIInstruction::OpSameValue
@ OpSameValue
Definition: MCDwarf.h:473
llvm::MCDwarfLineTable::setLabel
void setLabel(MCSymbol *Label)
Definition: MCDwarf.h:392
llvm::MCCFIInstruction::createNegateRAState
static MCCFIInstruction createNegateRAState(MCSymbol *L)
.cfi_negate_ra_state AArch64 negate RA state.
Definition: MCDwarf.h:588
llvm::MCDwarfLineTableHeader::CompilationDir
std::string CompilationDir
Definition: MCDwarf.h:255
llvm::MCCFIInstruction::OpType
OpType
Definition: MCDwarf.h:472
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:461
llvm::MCLineSection::iterator
MCDwarfLineEntryCollection::iterator iterator
Definition: MCDwarf.h:222
llvm::MCCFIInstruction::getRegister2
unsigned getRegister2() const
Definition: MCDwarf.h:645
llvm::MCDwarfFrameEmitter
Definition: MCDwarf.h:691
assert
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
llvm::MCDwarfLineTable::getMCDwarfFiles
SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles()
Definition: MCDwarf.h:408
llvm::MCGenDwarfLabelEntry::getName
StringRef getName() const
Definition: MCDwarf.h:459
llvm::MCDwarfLineTableHeader::setRootFile
void setRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:289
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:524
llvm::MCCFIInstruction::OpAdjustCfaOffset
@ OpAdjustCfaOffset
Definition: MCDwarf.h:482
llvm::MCDwarfLineTable::getMCDwarfFiles
const SmallVectorImpl< MCDwarfFile > & getMCDwarfFiles() const
Definition: MCDwarf.h:404
MCSection.h
llvm::MCCFIInstruction::Register2
unsigned Register2
Definition: MCDwarf.h:498
llvm::mcdwarf::emitListsTableHeaderStart
MCSymbol * emitListsTableHeaderStart(MCStreamer &S)
Definition: MCDwarf.cpp:47
llvm::MCCFIInstruction::OpEscape
@ OpEscape
Definition: MCDwarf.h:483
llvm::MCDwarfLineEntry::MCDwarfLineEntry
MCDwarfLineEntry(MCSymbol *label, const MCDwarfLoc loc)
Definition: MCDwarf.h:186
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:94
llvm::MCCFIInstruction::getAddressSpace
unsigned getAddressSpace() const
Definition: MCDwarf.h:650
llvm::MCCFIInstruction::OpRememberState
@ OpRememberState
Definition: MCDwarf.h:474
llvm::StringTableBuilder::DWARF
@ DWARF
Definition: StringTableBuilder.h:33
llvm::MCDwarfDwoLineTable
Definition: MCDwarf.h:314
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:57
llvm::MCCFIInstruction::getValues
StringRef getValues() const
Definition: MCDwarf.h:663
llvm::MCDwarfLineEntry::make
static void make(MCStreamer *MCOS, MCSection *Section)
Definition: MCDwarf.cpp:91
llvm::MCGenDwarfLabelEntry::getFileNumber
unsigned getFileNumber() const
Definition: MCDwarf.h:460
llvm::cantFail
void cantFail(Error Err, const char *Msg=nullptr)
Report a fatal error if Err is a failure value.
Definition: Error.h:746
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:251
uint32_t
llvm::MCCFIInstruction::OpLLVMDefAspaceCfa
@ OpLLVMDefAspaceCfa
Definition: MCDwarf.h:477
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:684
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:545
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:345
llvm::MCDwarfDwoLineTable::maybeSetRootFile
void maybeSetRootFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, Optional< StringRef > Source)
Definition: MCDwarf.h:319
llvm::Register
Wrapper class representing virtual and physical registers.
Definition: Register.h:19
llvm::MCDwarfLineTableHeader::SourceIdMap
StringMap< unsigned > SourceIdMap
Definition: MCDwarf.h:254
llvm::MCDwarfDwoLineTable::Emit
void Emit(MCStreamer &MCOS, MCDwarfLineTableParams Params, MCSection *Section) const
Definition: MCDwarf.cpp:283
llvm::MCDwarfFrameInfo::IsBKeyFrame
bool IsBKeyFrame
Definition: MCDwarf.h:688
llvm::MCDwarfFrameInfo::PersonalityEncoding
unsigned PersonalityEncoding
Definition: MCDwarf.h:682
name
static const char * name
Definition: SVEIntrinsicOpts.cpp:74
llvm::MCLineSection::addLineEntry
void addLineEntry(const MCDwarfLineEntry &LineEntry, MCSection *Sec)
Definition: MCDwarf.h:213
llvm::MCDwarfLoc::getFlags
unsigned getFlags() const
Get the Flags of this MCDwarfLoc.
Definition: MCDwarf.h:134
llvm::pdb::PDB_SymType::Label
@ Label
llvm::omp::AddressSpace
AddressSpace
Definition: OMPConstants.h:108
uint16_t
llvm::AMDGPU::SendMsg::Op
Op
Definition: SIDefines.h:325
llvm::MCDwarfLineTableHeader::resetFileTable
void resetFileTable()
Definition: MCDwarf.h:301
llvm::MCCFIInstruction::OpGnuArgsSize
@ OpGnuArgsSize
Definition: MCDwarf.h:489
llvm::MCDwarfLineTable::resetFileTable
void resetFileTable()
Definition: MCDwarf.h:379
llvm::MCDwarfFrameInfo::IsSignalFrame
bool IsSignalFrame
Definition: MCDwarf.h:685
llvm::MCDwarfDwoLineTable::getFile
unsigned getFile(StringRef Directory, StringRef FileName, Optional< MD5::MD5Result > Checksum, uint16_t DwarfVersion, Optional< StringRef > Source)
Definition: MCDwarf.h:327
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:579
llvm::MCDwarfLoc::getFileNum
unsigned getFileNum() const
Get the FileNum of this MCDwarfLoc.
Definition: MCDwarf.h:125
llvm::MCDwarfLineTableHeader
Definition: MCDwarf.h:250
llvm::MCCFIInstruction::OpRegister
@ OpRegister
Definition: MCDwarf.h:486
llvm::ARMBuildAttrs::Symbol
@ Symbol
Definition: ARMBuildAttributes.h:83
llvm::MCDwarfLineTable::isMD5UsageConsistent
bool isMD5UsageConsistent() const
Definition: MCDwarf.h:386
llvm::MCDwarfLineTable::getMCLineSections
MCLineSection & getMCLineSections()
Definition: MCDwarf.h:415
llvm::MCLineSection::addEndEntry
void addEndEntry(MCSymbol *EndLabel)
Definition: MCDwarf.cpp:144
llvm::MCDwarfLineTable::getMCDwarfDirs
const SmallVectorImpl< std::string > & getMCDwarfDirs() const
Definition: MCDwarf.h:396
llvm::MCDwarfLineEntry::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:189
llvm::MCCFIInstruction::Offset
int Offset
Definition: MCDwarf.h:497
llvm::MCDwarfFrameInfo::Instructions
std::vector< MCCFIInstruction > Instructions
Definition: MCDwarf.h:680
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:577
llvm::MCDwarfFrameInfo::LsdaEncoding
unsigned LsdaEncoding
Definition: MCDwarf.h:683
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:601
llvm::MCDwarfFrameEmitter::EmitAdvanceLoc
static void EmitAdvanceLoc(MCObjectStreamer &Streamer, uint64_t AddrDelta)
Definition: MCDwarf.cpp:1905
llvm::SmallVectorImpl< std::string >
llvm::MCDwarfFrameInfo::IsSimple
bool IsSimple
Definition: MCDwarf.h:686
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:562
llvm::MCCFIInstruction::createRememberState
static MCCFIInstruction createRememberState(MCSymbol *L)
.cfi_remember_state Save all current rules for all registers.
Definition: MCDwarf.h:612
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:277
llvm::MCCFIInstruction::OpNegateRAState
@ OpNegateRAState
Definition: MCDwarf.h:488
llvm::MCDwarfFrameInfo
Definition: MCDwarf.h:673
llvm::MCDwarfLineAddr
Definition: MCDwarf.h:420
llvm::MCCFIInstruction::OpRestoreState
@ OpRestoreState
Definition: MCDwarf.h:475
llvm::MCCFIInstruction::createWindowSave
static MCCFIInstruction createWindowSave(MCSymbol *L)
.cfi_window_save SPARC register window is saved.
Definition: MCDwarf.h:583
llvm::ISD::MCSymbol
@ MCSymbol
Definition: ISDOpcodes.h:172
llvm::MCDwarfLineTable::hasRootFile
bool hasRootFile() const
Definition: MCDwarf.h:381
llvm::MCCFIInstruction::getLabel
MCSymbol * getLabel() const
Definition: MCDwarf.h:634
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:595