LLVM 20.0.0git
MCAsmInfo.h
Go to the documentation of this file.
1//===-- llvm/MC/MCAsmInfo.h - Asm info --------------------------*- 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 a class to be used as the basis for target specific
10// asm writers. This class primarily takes care of global printing constants,
11// which are used in very similar ways across all targets.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef LLVM_MC_MCASMINFO_H
16#define LLVM_MC_MCASMINFO_H
17
18#include "llvm/ADT/StringRef.h"
21#include <vector>
22
23namespace llvm {
24
25class MCContext;
26class MCCFIInstruction;
27class MCExpr;
28class MCSection;
29class MCStreamer;
30class MCSubtargetInfo;
31class MCSymbol;
32
33namespace WinEH {
34
35enum class EncodingType {
36 Invalid, /// Invalid
37 Alpha, /// Windows Alpha
38 Alpha64, /// Windows AXP64
39 ARM, /// Windows NT (Windows on ARM)
40 CE, /// Windows CE ARM, PowerPC, SH3, SH4
41 Itanium, /// Windows x64, Windows Itanium (IA-64)
42 X86, /// Windows x86, uses no CFI, just EH tables
43 MIPS = Alpha,
44};
45
46} // end namespace WinEH
47
48namespace LCOMM {
49
51
52} // end namespace LCOMM
53
54/// This class is intended to be used as a base class for asm
55/// properties and features specific to the target.
56class MCAsmInfo {
57public:
58 /// Assembly character literal syntax types.
60 ACLS_Unknown, /// Unknown; character literals not used by LLVM for this
61 /// target.
62 ACLS_SingleQuotePrefix, /// The desired character is prefixed by a single
63 /// quote, e.g., `'A`.
64 };
65
66protected:
67 //===------------------------------------------------------------------===//
68 // Properties to be set by the target writer, used to configure asm printer.
69 //
70
71 /// Code pointer size in bytes. Default is 4.
72 unsigned CodePointerSize = 4;
73
74 /// Size of the stack slot reserved for callee-saved registers, in bytes.
75 /// Default is same as pointer size.
77
78 /// True if target is little endian. Default is true.
79 bool IsLittleEndian = true;
80
81 /// True if target stack grow up. Default is false.
82 bool StackGrowsUp = false;
83
84 /// True if this target has the MachO .subsections_via_symbols directive.
85 /// Default is false.
87
88 /// True if this is a non-GNU COFF target. The COFF port of the GNU linker
89 /// doesn't handle associative comdats in the way that we would like to use
90 /// them.
92
93 /// True if this is a non-GNU COFF target. For GNU targets, we don't generate
94 /// constants into comdat sections.
96
97 /// True if this is an XCOFF target that supports visibility attributes as
98 /// part of .global, .weak, .extern, and .comm. Default is false.
100
101 /// This is the maximum possible length of an instruction, which is needed to
102 /// compute the size of an inline asm. Defaults to 4.
103 unsigned MaxInstLength = 4;
104
105 /// Every possible instruction length is a multiple of this value. Factored
106 /// out in .debug_frame and .debug_line. Defaults to 1.
107 unsigned MinInstAlignment = 1;
108
109 /// The '$' token, when not referencing an identifier or constant, refers to
110 /// the current PC. Defaults to false.
111 bool DollarIsPC = false;
112
113 /// Allow '.' token, when not referencing an identifier or constant, to refer
114 /// to the current PC. Defaults to true.
115 bool DotIsPC = true;
116
117 /// Whether the '*' token refers to the current PC. This is used for the
118 /// HLASM dialect.
119 bool StarIsPC = false;
120
121 /// This string, if specified, is used to separate instructions from each
122 /// other when on the same line. Defaults to ';'
123 const char *SeparatorString;
124
125 /// This indicates the comment string used by the assembler. Defaults to
126 /// "#"
128
129 /// This indicates whether the comment string is only accepted as a comment
130 /// at the beginning of statements. Defaults to false.
132
133 /// This indicates whether to allow additional "comment strings" to be lexed
134 /// as a comment. Setting this attribute to true, will ensure that C-style
135 /// line comments (// ..), C-style block comments (/* .. */), and "#" are
136 /// all treated as comments in addition to the string specified by the
137 /// CommentString attribute.
138 /// Default is true.
140
141 /// Should we emit the '\t' as the starting indentation marker for GNU inline
142 /// asm statements. Defaults to true.
144
145 /// This is appended to emitted labels. Defaults to ":"
146 const char *LabelSuffix;
147
148 /// Emit labels in purely upper case. Defaults to false.
150
151 // Print the EH begin symbol with an assignment. Defaults to false.
153
154 // Do we need to create a local symbol for .size?
155 bool NeedsLocalForSize = false;
156
157 /// This prefix is used for globals like constant pool entries that are
158 /// completely private to the .s file and should not have names in the .o
159 /// file. Defaults to "L"
161
162 /// This prefix is used for labels for basic blocks. Defaults to the same as
163 /// PrivateGlobalPrefix.
165
166 /// This prefix is used for symbols that should be passed through the
167 /// assembler but be removed by the linker. This is 'l' on Darwin, currently
168 /// used for some ObjC metadata. The default of "" meast that for this system
169 /// a plain private symbol should be used. Defaults to "".
171
172 /// If these are nonempty, they contain a directive to emit before and after
173 /// an inline assembly statement. Defaults to "#APP\n", "#NO_APP\n"
174 const char *InlineAsmStart;
175 const char *InlineAsmEnd;
176
177 /// These are assembly directives that tells the assembler to interpret the
178 /// following instructions differently. Defaults to ".code16", ".code32",
179 /// ".code64".
180 const char *Code16Directive;
181 const char *Code32Directive;
182 const char *Code64Directive;
183
184 /// Which dialect of an assembler variant to use. Defaults to 0
185 unsigned AssemblerDialect = 0;
186
187 /// This is true if the assembler allows @ characters in symbol names.
188 /// Defaults to false.
189 bool AllowAtInName = false;
190
191 /// This is true if the assembler allows the "?" character at the start of
192 /// of a string to be lexed as an AsmToken::Identifier.
193 /// If the AsmLexer determines that the string can be lexed as a possible
194 /// comment, setting this option will have no effect, and the string will
195 /// still be lexed as a comment.
197
198 /// This is true if the assembler allows the "$" character at the start of
199 /// of a string to be lexed as an AsmToken::Identifier.
200 /// If the AsmLexer determines that the string can be lexed as a possible
201 /// comment, setting this option will have no effect, and the string will
202 /// still be lexed as a comment.
204
205 /// This is true if the assembler allows the "@" character at the start of
206 /// a string to be lexed as an AsmToken::Identifier.
207 /// If the AsmLexer determines that the string can be lexed as a possible
208 /// comment, setting this option will have no effect, and the string will
209 /// still be lexed as a comment.
211
212 /// This is true if the assembler allows the "#" character at the start of
213 /// a string to be lexed as an AsmToken::Identifier.
214 /// If the AsmLexer determines that the string can be lexed as a possible
215 /// comment, setting this option will have no effect, and the string will
216 /// still be lexed as a comment.
218
219 /// If this is true, symbol names with invalid characters will be printed in
220 /// quotes.
222
223 /// This is true if data region markers should be printed as
224 /// ".data_region/.end_data_region" directives. If false, use "$d/$a" labels
225 /// instead.
227
228 /// True if .align is to be used for alignment. Only power-of-two
229 /// alignment is supported.
231
232 /// True if the target supports LEB128 directives.
234
235 /// True if full register names are printed.
237
238 //===--- Data Emission Directives -------------------------------------===//
239
240 /// This should be set to the directive used to get some number of zero (and
241 /// non-zero if supported by the directive) bytes emitted to the current
242 /// section. Common cases are "\t.zero\t" and "\t.space\t". Defaults to
243 /// "\t.zero\t"
244 const char *ZeroDirective;
245
246 /// This should be set to true if the zero directive supports a value to emit
247 /// other than zero. If this is set to false, the Data*bitsDirective's will be
248 /// used to emit these bytes. Defaults to true.
250
251 /// This directive allows emission of an ascii string with the standard C
252 /// escape characters embedded into it. If a target doesn't support this, it
253 /// can be set to null. Defaults to "\t.ascii\t"
254 const char *AsciiDirective;
255
256 /// If not null, this allows for special handling of zero terminated strings
257 /// on this target. This is commonly supported as ".asciz". If a target
258 /// doesn't support this, it can be set to null. Defaults to "\t.asciz\t"
259 const char *AscizDirective;
260
261 /// This directive accepts a comma-separated list of bytes for emission as a
262 /// string of bytes. For targets that do not support this, it shall be set to
263 /// null. Defaults to null.
264 const char *ByteListDirective = nullptr;
265
266 /// This directive allows emission of a zero-terminated ascii string without
267 /// the standard C escape characters embedded into it. If a target doesn't
268 /// support this, it can be set to null. Defaults to null.
269 const char *PlainStringDirective = nullptr;
270
271 /// Form used for character literals in the assembly syntax. Useful for
272 /// producing strings as byte lists. If a target does not use or support
273 /// this, it shall be set to ACLS_Unknown. Defaults to ACLS_Unknown.
275
276 /// These directives are used to output some unit of integer data to the
277 /// current section. If a data directive is set to null, smaller data
278 /// directives will be used to emit the large sizes. Defaults to "\t.byte\t",
279 /// "\t.short\t", "\t.long\t", "\t.quad\t"
284
285 /// True if data directives support signed values
287
288 /// If non-null, a directive that is used to emit a word which should be
289 /// relocated as a 64-bit GP-relative offset, e.g. .gpdword on Mips. Defaults
290 /// to nullptr.
291 const char *GPRel64Directive = nullptr;
292
293 /// If non-null, a directive that is used to emit a word which should be
294 /// relocated as a 32-bit GP-relative offset, e.g. .gpword on Mips or .gprel32
295 /// on Alpha. Defaults to nullptr.
296 const char *GPRel32Directive = nullptr;
297
298 /// If non-null, directives that are used to emit a word/dword which should
299 /// be relocated as a 32/64-bit DTP/TP-relative offset, e.g. .dtprelword/
300 /// .dtpreldword/.tprelword/.tpreldword on Mips.
301 const char *DTPRel32Directive = nullptr;
302 const char *DTPRel64Directive = nullptr;
303 const char *TPRel32Directive = nullptr;
304 const char *TPRel64Directive = nullptr;
305
306 /// This is true if this target uses "Sun Style" syntax for section switching
307 /// ("#alloc,#write" etc) instead of the normal ELF syntax (,"a,w") in
308 /// .section directives. Defaults to false.
310
311 /// This is true if this target uses ELF '.section' directive before the
312 /// '.bss' one. It's used for PPC/Linux which doesn't support the '.bss'
313 /// directive only. Defaults to false.
315
317
318 //===--- Alignment Information ----------------------------------------===//
319
320 /// If this is true (the default) then the asmprinter emits ".align N"
321 /// directives, where N is the number of bytes to align to. Otherwise, it
322 /// emits ".align log2(N)", e.g. 3 to align to an 8 byte boundary. Defaults
323 /// to true.
325
326 /// If non-zero, this is used to fill the executable space created as the
327 /// result of a alignment directive. Defaults to 0
328 unsigned TextAlignFillValue = 0;
329
330 //===--- Global Variable Emission Directives --------------------------===//
331
332 /// This is the directive used to declare a global entity. Defaults to
333 /// ".globl".
334 const char *GlobalDirective;
335
336 /// True if the expression
337 /// .long f - g
338 /// uses a relocation but it can be suppressed by writing
339 /// a = f - g
340 /// .long a
342
343 /// True is .comm's and .lcomms optional alignment is to be specified in bytes
344 /// instead of log2(n). Defaults to true.
346
347 /// Describes if the .lcomm directive for the target supports an alignment
348 /// argument and how it is interpreted. Defaults to NoAlignment.
350
351 /// True if the target only has basename for .file directive. False if the
352 /// target also needs the directory along with the basename. Defaults to true.
354
355 /// True if the target represents string constants as mostly raw characters in
356 /// paired double quotation with paired double quotation marks as the escape
357 /// mechanism to represent a double quotation mark within the string. Defaults
358 /// to false.
360
361 // True if the target allows .align directives on functions. This is true for
362 // most targets, so defaults to true.
364
365 /// True if the target has .type and .size directives, this is true for most
366 /// ELF targets. Defaults to true.
368
369 /// True if the target has a single parameter .file directive, this is true
370 /// for ELF targets. Defaults to true.
372
373 /// True if the target has a four strings .file directive, strings separated
374 /// by comma. Defaults to false.
376
377 /// True if the target has a .ident directive, this is true for ELF targets.
378 /// Defaults to false.
379 bool HasIdentDirective = false;
380
381 /// True if this target supports the MachO .no_dead_strip directive. Defaults
382 /// to false.
383 bool HasNoDeadStrip = false;
384
385 /// Used to declare a global as being a weak symbol. Defaults to ".weak".
386 const char *WeakDirective;
387
388 /// This directive, if non-null, is used to declare a global as being a weak
389 /// undefined symbol. Defaults to nullptr.
390 const char *WeakRefDirective = nullptr;
391
392 /// True if we have a directive to declare a global as being a weak defined
393 /// symbol that can be hidden (unexported). Defaults to false.
395
396 /// True if we should mark symbols as global instead of weak, for
397 /// weak*/linkonce*, if the symbol has a comdat.
398 /// Defaults to false.
399 bool AvoidWeakIfComdat = false;
400
401 /// This attribute, if not MCSA_Invalid, is used to declare a symbol as having
402 /// hidden visibility. Defaults to MCSA_Hidden.
404
405 /// This attribute, if not MCSA_Invalid, is used to declare a symbol as having
406 /// exported visibility. Defaults to MCSA_Exported.
408
409 /// This attribute, if not MCSA_Invalid, is used to declare an undefined
410 /// symbol as having hidden visibility. Defaults to MCSA_Hidden.
412
413 /// This attribute, if not MCSA_Invalid, is used to declare a symbol as having
414 /// protected visibility. Defaults to MCSA_Protected
416
418
419 //===--- Dwarf Emission Directives -----------------------------------===//
420
421 /// True if target supports emission of debugging information. Defaults to
422 /// false.
424
425 /// Exception handling format for the target. Defaults to None.
427
428 /// True if target uses CFI unwind information for other purposes than EH
429 /// (debugging / sanitizers) when `ExceptionsType == ExceptionHandling::None`.
430 bool UsesCFIWithoutEH = false;
431
432 /// Windows exception handling data (.pdata) encoding. Defaults to Invalid.
434
435 /// True if Dwarf2 output generally uses relocations for references to other
436 /// .debug_* sections.
438
439 /// True if DWARF FDE symbol reference relocations should be replaced by an
440 /// absolute difference.
442
443 /// True if the target supports generating the DWARF line table through using
444 /// the .loc/.file directives. Defaults to true.
446
447 /// True if DWARF `.file directory' directive syntax is used by
448 /// default.
450
451 /// True if the target needs the DWARF section length in the header (if any)
452 /// of the DWARF section in the assembly file. Defaults to true.
454
455 /// True if dwarf register numbers are printed instead of symbolic register
456 /// names in .cfi_* directives. Defaults to false.
457 bool DwarfRegNumForCFI = false;
458
459 /// True if target uses parens to indicate the symbol variant instead of @.
460 /// For example, foo(plt) instead of foo@plt. Defaults to false.
462
463 /// True if the target uses parens for symbol names starting with
464 /// '$' character to distinguish them from absolute names.
466
467 /// True if the target supports flags in ".loc" directive, false if only
468 /// location is allowed.
470
471 //===--- Prologue State ----------------------------------------------===//
472
473 std::vector<MCCFIInstruction> InitialFrameState;
474
475 //===--- Integrated Assembler Information ----------------------------===//
476
477 // Generated object files can use all ELF features supported by GNU ld of
478 // this binutils version and later. INT_MAX means all features can be used,
479 // regardless of GNU ld support. The default value is referenced by
480 // clang/Driver/Options.td.
481 std::pair<int, int> BinutilsVersion = {2, 26};
482
483 /// Should we use the integrated assembler?
484 /// The integrated assembler should be enabled by default (by the
485 /// constructors) when failing to parse a valid piece of assembly (inline
486 /// or otherwise) is considered a bug. It may then be overridden after
487 /// construction (see LLVMTargetMachine::initAsmInfo()).
489
490 /// Use AsmParser to parse inlineAsm when UseIntegratedAssembler is not set.
492
493 /// Preserve Comments in assembly
495
496 /// True if the integrated assembler should interpret 'a >> b' constant
497 /// expressions as logical rather than arithmetic.
498 bool UseLogicalShr = true;
499
500 // If true, then the lexer and expression parser will support %neg(),
501 // %hi(), and similar unary operators.
502 bool HasMipsExpressions = false;
503
504 // If true, use Motorola-style integers in Assembly (ex. $0ac).
506
507 // If true, emit function descriptor symbol on AIX.
509
510public:
511 explicit MCAsmInfo();
512 virtual ~MCAsmInfo();
513
514 /// Get the code pointer size in bytes.
515 unsigned getCodePointerSize() const { return CodePointerSize; }
516
517 /// Get the callee-saved register stack slot
518 /// size in bytes.
519 unsigned getCalleeSaveStackSlotSize() const {
521 }
522
523 /// True if the target is little endian.
524 bool isLittleEndian() const { return IsLittleEndian; }
525
526 /// True if target stack grow up.
527 bool isStackGrowthDirectionUp() const { return StackGrowsUp; }
528
530
531 // Data directive accessors.
532
533 const char *getData8bitsDirective() const { return Data8bitsDirective; }
534 const char *getData16bitsDirective() const { return Data16bitsDirective; }
535 const char *getData32bitsDirective() const { return Data32bitsDirective; }
536 const char *getData64bitsDirective() const { return Data64bitsDirective; }
537 bool supportsSignedData() const { return SupportsSignedData; }
538 const char *getGPRel64Directive() const { return GPRel64Directive; }
539 const char *getGPRel32Directive() const { return GPRel32Directive; }
540 const char *getDTPRel64Directive() const { return DTPRel64Directive; }
541 const char *getDTPRel32Directive() const { return DTPRel32Directive; }
542 const char *getTPRel64Directive() const { return TPRel64Directive; }
543 const char *getTPRel32Directive() const { return TPRel32Directive; }
544
545 /// Targets can implement this method to specify a section to switch to if the
546 /// translation unit doesn't have any trampolines that require an executable
547 /// stack.
549 return nullptr;
550 }
551
552 virtual const MCExpr *getExprForPersonalitySymbol(const MCSymbol *Sym,
553 unsigned Encoding,
554 MCStreamer &Streamer) const;
555
556 virtual const MCExpr *getExprForFDESymbol(const MCSymbol *Sym,
557 unsigned Encoding,
558 MCStreamer &Streamer) const;
559
560 /// Return true if C is an acceptable character inside a symbol name.
561 virtual bool isAcceptableChar(char C) const;
562
563 /// Return true if the identifier \p Name does not need quotes to be
564 /// syntactically correct.
565 virtual bool isValidUnquotedName(StringRef Name) const;
566
567 /// Return true if the .section directive should be omitted when
568 /// emitting \p SectionName. For example:
569 ///
570 /// shouldOmitSectionDirective(".text")
571 ///
572 /// returns false => .section .text,#alloc,#execinstr
573 /// returns true => .text
575
578 }
579
582 }
583
586 }
587
588 // Accessors.
589
590 bool isMachO() const { return HasSubsectionsViaSymbols; }
595 }
596
597 /// Returns the maximum possible encoded instruction size in bytes. If \p STI
598 /// is null, this should be the maximum size for any subtarget.
599 virtual unsigned getMaxInstLength(const MCSubtargetInfo *STI = nullptr) const {
600 return MaxInstLength;
601 }
602
603 unsigned getMinInstAlignment() const { return MinInstAlignment; }
604 bool getDollarIsPC() const { return DollarIsPC; }
605 bool getDotIsPC() const { return DotIsPC; }
606 bool getStarIsPC() const { return StarIsPC; }
607 const char *getSeparatorString() const { return SeparatorString; }
608
609 /// This indicates the column (zero-based) at which asm comments should be
610 /// printed.
611 unsigned getCommentColumn() const { return 40; }
612
616 }
620 }
621 const char *getLabelSuffix() const { return LabelSuffix; }
623
625 bool needsLocalForSize() const { return NeedsLocalForSize; }
628
631 }
632
636 return getPrivateGlobalPrefix();
637 }
638
639 const char *getInlineAsmStart() const { return InlineAsmStart; }
640 const char *getInlineAsmEnd() const { return InlineAsmEnd; }
641 const char *getCode16Directive() const { return Code16Directive; }
642 const char *getCode32Directive() const { return Code32Directive; }
643 const char *getCode64Directive() const { return Code64Directive; }
644 unsigned getAssemblerDialect() const { return AssemblerDialect; }
645 bool doesAllowAtInName() const { return AllowAtInName; }
646 void setAllowAtInName(bool V) { AllowAtInName = V; }
649 }
652 }
655 }
658 }
660
663 }
664
667 }
668
670
673
674 const char *getZeroDirective() const { return ZeroDirective; }
677 }
678 const char *getAsciiDirective() const { return AsciiDirective; }
679 const char *getAscizDirective() const { return AscizDirective; }
680 const char *getByteListDirective() const { return ByteListDirective; }
681 const char *getPlainStringDirective() const { return PlainStringDirective; }
684 }
686 unsigned getTextAlignFillValue() const { return TextAlignFillValue; }
687 const char *getGlobalDirective() const { return GlobalDirective; }
688
691 }
692
695 }
696
699 }
700
703 }
706 }
711 bool hasIdentDirective() const { return HasIdentDirective; }
712 bool hasNoDeadStrip() const { return HasNoDeadStrip; }
713 const char *getWeakDirective() const { return WeakDirective; }
714 const char *getWeakRefDirective() const { return WeakRefDirective; }
715
718 }
719
720 bool avoidWeakIfComdat() const { return AvoidWeakIfComdat; }
721
723
725
728 }
729
732 }
733
735
737
740
742 ExceptionsType = EH;
743 }
744
745 bool usesCFIWithoutEH() const {
747 }
748
749 /// Returns true if the exception handling method for the platform uses call
750 /// frame information to unwind.
751 bool usesCFIForEH() const {
755 }
756
757 bool usesWindowsCFI() const {
761 }
762
765 }
766
772 }
775 }
776
779 }
780
783 }
784
787 }
788
789 void addInitialFrameState(const MCCFIInstruction &Inst);
790
791 const std::vector<MCCFIInstruction> &getInitialFrameState() const {
792 return InitialFrameState;
793 }
794
795 void setBinutilsVersion(std::pair<int, int> Value) {
797 }
798
799 /// Return true if assembly (inline or otherwise) should be parsed.
801
802 /// Return true if target want to use AsmParser to parse inlineasm.
805 }
806
807 bool binutilsIsAtLeast(int Major, int Minor) const {
808 return BinutilsVersion >= std::make_pair(Major, Minor);
809 }
810
811 /// Set whether assembly (inline or otherwise) should be parsed.
812 virtual void setUseIntegratedAssembler(bool Value) {
814 }
815
816 /// Set whether target want to use AsmParser to parse inlineasm.
819 }
820
821 /// Return true if assembly (inline or otherwise) should be parsed.
823
824 /// Set whether assembly (inline or otherwise) should be parsed.
825 virtual void setPreserveAsmComments(bool Value) {
827 }
828
829
830 bool shouldUseLogicalShr() const { return UseLogicalShr; }
831
832 bool hasMipsExpressions() const { return HasMipsExpressions; }
835};
836
837} // end namespace llvm
838
839#endif // LLVM_MC_MCASMINFO_H
std::string Name
Symbol * Sym
Definition: ELF_riscv.cpp:479
This class is intended to be used as a base class for asm properties and features specific to the tar...
Definition: MCAsmInfo.h:56
StringRef getPrivateGlobalPrefix() const
Definition: MCAsmInfo.h:626
bool RestrictCommentStringToStartOfStatement
This indicates whether the comment string is only accepted as a comment at the beginning of statement...
Definition: MCAsmInfo.h:131
bool needsFunctionDescriptors() const
Definition: MCAsmInfo.h:833
const char * Data16bitsDirective
Definition: MCAsmInfo.h:281
bool hasCOFFAssociativeComdats() const
Definition: MCAsmInfo.h:591
void addInitialFrameState(const MCCFIInstruction &Inst)
Definition: MCAsmInfo.cpp:75
bool NeedsDwarfSectionOffsetDirective
Definition: MCAsmInfo.h:316
bool useParensForSymbolVariant() const
Definition: MCAsmInfo.h:769
const char * getPlainStringDirective() const
Definition: MCAsmInfo.h:681
const char * getLabelSuffix() const
Definition: MCAsmInfo.h:621
void setAllowAtInName(bool V)
Definition: MCAsmInfo.h:646
MCSymbolAttr ExportedVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having exported visibility.
Definition: MCAsmInfo.h:407
bool preserveAsmComments() const
Return true if assembly (inline or otherwise) should be parsed.
Definition: MCAsmInfo.h:822
bool supportsSignedData() const
Definition: MCAsmInfo.h:537
const char * getInlineAsmStart() const
Definition: MCAsmInfo.h:639
const char * DTPRel32Directive
If non-null, directives that are used to emit a word/dword which should be relocated as a 32/64-bit D...
Definition: MCAsmInfo.h:301
bool hasDotTypeDotSizeDirective() const
Definition: MCAsmInfo.h:708
bool isLittleEndian() const
True if the target is little endian.
Definition: MCAsmInfo.h:524
unsigned MinInstAlignment
Every possible instruction length is a multiple of this value.
Definition: MCAsmInfo.h:107
bool HasNoDeadStrip
True if this target supports the MachO .no_dead_strip directive.
Definition: MCAsmInfo.h:383
bool AllowAdditionalComments
This indicates whether to allow additional "comment strings" to be lexed as a comment.
Definition: MCAsmInfo.h:139
const char * PlainStringDirective
This directive allows emission of a zero-terminated ascii string without the standard C escape charac...
Definition: MCAsmInfo.h:269
unsigned TextAlignFillValue
If non-zero, this is used to fill the executable space created as the result of a alignment directive...
Definition: MCAsmInfo.h:328
bool AllowQuestionAtStartOfIdentifier
This is true if the assembler allows the "?" character at the start of of a string to be lexed as an ...
Definition: MCAsmInfo.h:196
bool useIntegratedAssembler() const
Return true if assembly (inline or otherwise) should be parsed.
Definition: MCAsmInfo.h:800
MCSymbolAttr ProtectedVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.
Definition: MCAsmInfo.h:415
bool HasFunctionAlignment
Definition: MCAsmInfo.h:363
bool HasBasenameOnlyForFileDirective
True if the target only has basename for .file directive.
Definition: MCAsmInfo.h:353
const char * AsciiDirective
This directive allows emission of an ascii string with the standard C escape characters embedded into...
Definition: MCAsmInfo.h:254
bool hasBasenameOnlyForFileDirective() const
Definition: MCAsmInfo.h:701
std::vector< MCCFIInstruction > InitialFrameState
Definition: MCAsmInfo.h:473
bool getRestrictCommentStringToStartOfStatement() const
Definition: MCAsmInfo.h:614
MCSymbolAttr getProtectedVisibilityAttr() const
Definition: MCAsmInfo.h:730
bool usesSunStyleELFSectionSwitchSyntax() const
Definition: MCAsmInfo.h:576
bool doesAllowDollarAtStartOfIdentifier() const
Definition: MCAsmInfo.h:653
const char * Code64Directive
Definition: MCAsmInfo.h:182
virtual unsigned getMaxInstLength(const MCSubtargetInfo *STI=nullptr) const
Returns the maximum possible encoded instruction size in bytes.
Definition: MCAsmInfo.h:599
unsigned getMinInstAlignment() const
Definition: MCAsmInfo.h:603
bool hasLEB128Directives() const
Definition: MCAsmInfo.h:669
bool doesSupportDataRegionDirectives() const
Definition: MCAsmInfo.h:661
const char * Code32Directive
Definition: MCAsmInfo.h:181
MCSymbolAttr getExportedVisibilityAttr() const
Definition: MCAsmInfo.h:724
const char * ByteListDirective
This directive accepts a comma-separated list of bytes for emission as a string of bytes.
Definition: MCAsmInfo.h:264
bool HasSubsectionsViaSymbols
True if this target has the MachO .subsections_via_symbols directive.
Definition: MCAsmInfo.h:86
const char * getTPRel64Directive() const
Definition: MCAsmInfo.h:542
bool HasFourStringsDotFile
True if the target has a four strings .file directive, strings separated by comma.
Definition: MCAsmInfo.h:375
const char * getData32bitsDirective() const
Definition: MCAsmInfo.h:535
const char * Data8bitsDirective
These directives are used to output some unit of integer data to the current section.
Definition: MCAsmInfo.h:280
const char * Data64bitsDirective
Definition: MCAsmInfo.h:283
const std::vector< MCCFIInstruction > & getInitialFrameState() const
Definition: MCAsmInfo.h:791
const char * DTPRel64Directive
Definition: MCAsmInfo.h:302
bool useFullRegisterNames() const
Definition: MCAsmInfo.h:671
bool hasFourStringsDotFile() const
Definition: MCAsmInfo.h:710
unsigned getAssemblerDialect() const
Definition: MCAsmInfo.h:644
virtual void setUseIntegratedAssembler(bool Value)
Set whether assembly (inline or otherwise) should be parsed.
Definition: MCAsmInfo.h:812
bool DollarIsPC
The '$' token, when not referencing an identifier or constant, refers to the current PC.
Definition: MCAsmInfo.h:111
virtual ~MCAsmInfo()
const char * getInlineAsmEnd() const
Definition: MCAsmInfo.h:640
bool HasVisibilityOnlyWithLinkage
True if this is an XCOFF target that supports visibility attributes as part of .global,...
Definition: MCAsmInfo.h:99
unsigned getTextAlignFillValue() const
Definition: MCAsmInfo.h:686
StringRef getLinkerPrivateGlobalPrefix() const
Definition: MCAsmInfo.h:633
bool doesAllowAtInName() const
Definition: MCAsmInfo.h:645
bool useDwarfRegNumForCFI() const
Definition: MCAsmInfo.h:768
bool useAssignmentForEHBegin() const
Definition: MCAsmInfo.h:624
bool usesCFIWithoutEH() const
Definition: MCAsmInfo.h:745
bool hasMipsExpressions() const
Definition: MCAsmInfo.h:832
bool supportsExtendedDwarfLocDirective() const
Definition: MCAsmInfo.h:773
bool AvoidWeakIfComdat
True if we should mark symbols as global instead of weak, for weak*‍/linkonce*, if the symbol has a c...
Definition: MCAsmInfo.h:399
bool UsesDwarfFileAndLocDirectives
True if the target supports generating the DWARF line table through using the .loc/....
Definition: MCAsmInfo.h:445
bool NeedsLocalForSize
Definition: MCAsmInfo.h:155
StringRef getPrivateLabelPrefix() const
Definition: MCAsmInfo.h:627
ExceptionHandling ExceptionsType
Exception handling format for the target. Defaults to None.
Definition: MCAsmInfo.h:426
bool shouldEmitLabelsInUpperCase() const
Definition: MCAsmInfo.h:622
bool AllowDollarAtStartOfIdentifier
This is true if the assembler allows the "$" character at the start of of a string to be lexed as an ...
Definition: MCAsmInfo.h:203
bool PreserveAsmComments
Preserve Comments in assembly.
Definition: MCAsmInfo.h:494
const char * LabelSuffix
This is appended to emitted labels. Defaults to ":".
Definition: MCAsmInfo.h:146
StringRef PrivateGlobalPrefix
This prefix is used for globals like constant pool entries that are completely private to the ....
Definition: MCAsmInfo.h:160
bool DwarfFDESymbolsUseAbsDiff
True if DWARF FDE symbol reference relocations should be replaced by an absolute difference.
Definition: MCAsmInfo.h:441
const char * getData8bitsDirective() const
Definition: MCAsmInfo.h:533
const char * getTPRel32Directive() const
Definition: MCAsmInfo.h:543
const char * TPRel64Directive
Definition: MCAsmInfo.h:304
const char * getData64bitsDirective() const
Definition: MCAsmInfo.h:536
AsmCharLiteralSyntax characterLiteralSyntax() const
Definition: MCAsmInfo.h:682
bool avoidWeakIfComdat() const
Definition: MCAsmInfo.h:720
bool UseDotAlignForAlignment
True if .align is to be used for alignment.
Definition: MCAsmInfo.h:230
const char * getByteListDirective() const
Definition: MCAsmInfo.h:680
bool SetDirectiveSuppressesReloc
True if the expression .long f - g uses a relocation but it can be suppressed by writing a = f - g ....
Definition: MCAsmInfo.h:341
bool hasVisibilityOnlyWithLinkage() const
Definition: MCAsmInfo.h:593
const char * getCode16Directive() const
Definition: MCAsmInfo.h:641
const char * Data32bitsDirective
Definition: MCAsmInfo.h:282
bool UseIntegratedAssembler
Should we use the integrated assembler? The integrated assembler should be enabled by default (by the...
Definition: MCAsmInfo.h:488
bool shouldUseMotorolaIntegers() const
Definition: MCAsmInfo.h:834
bool supportsNameQuoting() const
Definition: MCAsmInfo.h:659
bool AllowAtAtStartOfIdentifier
This is true if the assembler allows the "@" character at the start of a string to be lexed as an Asm...
Definition: MCAsmInfo.h:210
const char * getGPRel64Directive() const
Definition: MCAsmInfo.h:538
const char * Code16Directive
These are assembly directives that tells the assembler to interpret the following instructions differ...
Definition: MCAsmInfo.h:180
bool UseLogicalShr
True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather tha...
Definition: MCAsmInfo.h:498
bool UseMotorolaIntegers
Definition: MCAsmInfo.h:505
MCSymbolAttr getHiddenDeclarationVisibilityAttr() const
Definition: MCAsmInfo.h:726
const char * GlobalDirective
This is the directive used to declare a global entity.
Definition: MCAsmInfo.h:334
bool getStarIsPC() const
Definition: MCAsmInfo.h:606
LCOMM::LCOMMType LCOMMDirectiveAlignmentType
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpr...
Definition: MCAsmInfo.h:349
bool hasWeakDefCanBeHiddenDirective() const
Definition: MCAsmInfo.h:716
WinEH::EncodingType WinEHEncodingType
Windows exception handling data (.pdata) encoding. Defaults to Invalid.
Definition: MCAsmInfo.h:433
bool HasCOFFComdatConstants
True if this is a non-GNU COFF target.
Definition: MCAsmInfo.h:95
virtual void setPreserveAsmComments(bool Value)
Set whether assembly (inline or otherwise) should be parsed.
Definition: MCAsmInfo.h:825
bool hasLinkerPrivateGlobalPrefix() const
Definition: MCAsmInfo.h:629
const char * WeakRefDirective
This directive, if non-null, is used to declare a global as being a weak undefined symbol.
Definition: MCAsmInfo.h:390
StringRef PrivateLabelPrefix
This prefix is used for labels for basic blocks.
Definition: MCAsmInfo.h:164
bool DotIsPC
Allow '.
Definition: MCAsmInfo.h:115
LCOMM::LCOMMType getLCOMMDirectiveAlignmentType() const
Definition: MCAsmInfo.h:697
bool needsDwarfSectionOffsetDirective() const
Definition: MCAsmInfo.h:584
bool shouldUseLogicalShr() const
Definition: MCAsmInfo.h:830
bool HasDotTypeDotSizeDirective
True if the target has .type and .size directives, this is true for most ELF targets.
Definition: MCAsmInfo.h:367
bool usesCFIForEH() const
Returns true if the exception handling method for the platform uses call frame information to unwind.
Definition: MCAsmInfo.h:751
bool AllowAtInName
This is true if the assembler allows @ characters in symbol names.
Definition: MCAsmInfo.h:189
bool EmitLabelsInUpperCase
Emit labels in purely upper case. Defaults to false.
Definition: MCAsmInfo.h:149
unsigned MaxInstLength
This is the maximum possible length of an instruction, which is needed to compute the size of an inli...
Definition: MCAsmInfo.h:103
const char * TPRel32Directive
Definition: MCAsmInfo.h:303
bool HasWeakDefCanBeHiddenDirective
True if we have a directive to declare a global as being a weak defined symbol that can be hidden (un...
Definition: MCAsmInfo.h:394
StringRef getCommentString() const
Definition: MCAsmInfo.h:613
const char * getAscizDirective() const
Definition: MCAsmInfo.h:679
bool StarIsPC
Whether the '*' token refers to the current PC.
Definition: MCAsmInfo.h:119
bool SunStyleELFSectionSwitchSyntax
This is true if this target uses "Sun Style" syntax for section switching ("#alloc,...
Definition: MCAsmInfo.h:309
const char * InlineAsmStart
If these are nonempty, they contain a directive to emit before and after an inline assembly statement...
Definition: MCAsmInfo.h:174
bool useParensForDollarSignNames() const
Definition: MCAsmInfo.h:770
bool UseAssignmentForEHBegin
Definition: MCAsmInfo.h:152
bool HasCOFFAssociativeComdats
True if this is a non-GNU COFF target.
Definition: MCAsmInfo.h:91
bool doesSupportDebugInformation() const
Definition: MCAsmInfo.h:736
bool doesSetDirectiveSuppressReloc() const
Definition: MCAsmInfo.h:689
bool ParseInlineAsmUsingAsmParser
Use AsmParser to parse inlineAsm when UseIntegratedAssembler is not set.
Definition: MCAsmInfo.h:491
bool getDotIsPC() const
Definition: MCAsmInfo.h:605
WinEH::EncodingType getWinEHEncodingType() const
Definition: MCAsmInfo.h:739
bool doesDwarfUseRelocationsAcrossSections() const
Definition: MCAsmInfo.h:763
const char * getDTPRel64Directive() const
Definition: MCAsmInfo.h:540
bool UsesELFSectionDirectiveForBSS
This is true if this target uses ELF '.section' directive before the '.bss' one.
Definition: MCAsmInfo.h:314
virtual void setParseInlineAsmUsingAsmParser(bool Value)
Set whether target want to use AsmParser to parse inlineasm.
Definition: MCAsmInfo.h:817
const char * getZeroDirective() const
Definition: MCAsmInfo.h:674
bool EnableDwarfFileDirectoryDefault
True if DWARF ‘.file directory’ directive syntax is used by default.
Definition: MCAsmInfo.h:449
bool DwarfSectionSizeRequired
True if the target needs the DWARF section length in the header (if any) of the DWARF section in the ...
Definition: MCAsmInfo.h:453
MCSymbolAttr getMemtagAttr() const
Definition: MCAsmInfo.h:734
StringRef LinkerPrivateGlobalPrefix
This prefix is used for symbols that should be passed through the assembler but be removed by the lin...
Definition: MCAsmInfo.h:170
bool SupportsDebugInformation
True if target supports emission of debugging information.
Definition: MCAsmInfo.h:423
void setFullRegisterNames(bool V)
Definition: MCAsmInfo.h:672
const char * getWeakDirective() const
Definition: MCAsmInfo.h:713
virtual const MCExpr * getExprForFDESymbol(const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
Definition: MCAsmInfo.cpp:87
bool StackGrowsUp
True if target stack grow up. Default is false.
Definition: MCAsmInfo.h:82
bool hasSubsectionsViaSymbols() const
Definition: MCAsmInfo.h:529
bool PPCUseFullRegisterNames
True if full register names are printed.
Definition: MCAsmInfo.h:236
const char * InlineAsmEnd
Definition: MCAsmInfo.h:175
const char * getData16bitsDirective() const
Definition: MCAsmInfo.h:534
const char * getSeparatorString() const
Definition: MCAsmInfo.h:607
bool SupportsSignedData
True if data directives support signed values.
Definition: MCAsmInfo.h:286
bool doesAllowAtAtStartOfIdentifier() const
Definition: MCAsmInfo.h:650
bool getCOMMDirectiveAlignmentIsInBytes() const
Definition: MCAsmInfo.h:693
bool isStackGrowthDirectionUp() const
True if target stack grow up.
Definition: MCAsmInfo.h:527
virtual bool isAcceptableChar(char C) const
Return true if C is an acceptable character inside a symbol name.
Definition: MCAsmInfo.cpp:101
unsigned AssemblerDialect
Which dialect of an assembler variant to use. Defaults to 0.
Definition: MCAsmInfo.h:185
const char * SeparatorString
This string, if specified, is used to separate instructions from each other when on the same line.
Definition: MCAsmInfo.h:123
virtual bool shouldOmitSectionDirective(StringRef SectionName) const
Return true if the .section directive should be omitted when emitting SectionName.
Definition: MCAsmInfo.cpp:122
bool getEmitGNUAsmStartIndentationMarker() const
Definition: MCAsmInfo.h:618
MCSymbolAttr HiddenDeclarationVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibili...
Definition: MCAsmInfo.h:411
bool doesAllowHashAtStartOfIdentifier() const
Definition: MCAsmInfo.h:656
bool HasMipsExpressions
Definition: MCAsmInfo.h:502
bool hasPairedDoubleQuoteStringConstants() const
Definition: MCAsmInfo.h:704
const char * GPRel32Directive
If non-null, a directive that is used to emit a word which should be relocated as a 32-bit GP-relativ...
Definition: MCAsmInfo.h:296
bool shouldAllowAdditionalComments() const
Definition: MCAsmInfo.h:617
unsigned getCalleeSaveStackSlotSize() const
Get the callee-saved register stack slot size in bytes.
Definition: MCAsmInfo.h:519
bool UsesCFIWithoutEH
True if target uses CFI unwind information for other purposes than EH (debugging / sanitizers) when E...
Definition: MCAsmInfo.h:430
bool HasIdentDirective
True if the target has a .ident directive, this is true for ELF targets.
Definition: MCAsmInfo.h:379
bool isMachO() const
Definition: MCAsmInfo.h:590
bool UseParensForDollarSignNames
True if the target uses parens for symbol names starting with '$' character to distinguish them from ...
Definition: MCAsmInfo.h:465
bool DwarfUsesRelocationsAcrossSections
True if Dwarf2 output generally uses relocations for references to other .debug_* sections.
Definition: MCAsmInfo.h:437
bool needsDwarfSectionSizeInHeader() const
Definition: MCAsmInfo.h:781
bool parseInlineAsmUsingAsmParser() const
Return true if target want to use AsmParser to parse inlineasm.
Definition: MCAsmInfo.h:803
bool HasSingleParameterDotFile
True if the target has a single parameter .file directive, this is true for ELF targets.
Definition: MCAsmInfo.h:371
void setBinutilsVersion(std::pair< int, int > Value)
Definition: MCAsmInfo.h:795
bool doDwarfFDESymbolsUseAbsDiff() const
Definition: MCAsmInfo.h:767
const char * getGlobalDirective() const
Definition: MCAsmInfo.h:687
const char * getCode32Directive() const
Definition: MCAsmInfo.h:642
void setExceptionsType(ExceptionHandling EH)
Definition: MCAsmInfo.h:741
bool doesAllowQuestionAtStartOfIdentifier() const
Definition: MCAsmInfo.h:647
bool COMMDirectiveAlignmentIsInBytes
True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).
Definition: MCAsmInfo.h:345
bool getAlignmentIsInBytes() const
Definition: MCAsmInfo.h:685
bool AlignmentIsInBytes
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number ...
Definition: MCAsmInfo.h:324
bool usesWindowsCFI() const
Definition: MCAsmInfo.h:757
bool usesELFSectionDirectiveForBSS() const
Definition: MCAsmInfo.h:580
AsmCharLiteralSyntax CharacterLiteralSyntax
Form used for character literals in the assembly syntax.
Definition: MCAsmInfo.h:274
bool getDollarIsPC() const
Definition: MCAsmInfo.h:604
bool SupportsExtendedDwarfLocDirective
True if the target supports flags in ".loc" directive, false if only location is allowed.
Definition: MCAsmInfo.h:469
bool NeedsFunctionDescriptors
Definition: MCAsmInfo.h:508
bool EmitGNUAsmStartIndentationMarker
Should we emit the '\t' as the starting indentation marker for GNU inline asm statements.
Definition: MCAsmInfo.h:143
bool binutilsIsAtLeast(int Major, int Minor) const
Definition: MCAsmInfo.h:807
bool ZeroDirectiveSupportsNonZeroValue
This should be set to true if the zero directive supports a value to emit other than zero.
Definition: MCAsmInfo.h:249
const char * ZeroDirective
This should be set to the directive used to get some number of zero (and non-zero if supported by the...
Definition: MCAsmInfo.h:244
unsigned getCommentColumn() const
This indicates the column (zero-based) at which asm comments should be printed.
Definition: MCAsmInfo.h:611
MCSymbolAttr MemtagAttr
Definition: MCAsmInfo.h:417
MCSymbolAttr getHiddenVisibilityAttr() const
Definition: MCAsmInfo.h:722
const char * getCode64Directive() const
Definition: MCAsmInfo.h:643
bool SupportsQuotedNames
If this is true, symbol names with invalid characters will be printed in quotes.
Definition: MCAsmInfo.h:221
bool hasSingleParameterDotFile() const
Definition: MCAsmInfo.h:709
const char * AscizDirective
If not null, this allows for special handling of zero terminated strings on this target.
Definition: MCAsmInfo.h:259
bool UseDataRegionDirectives
This is true if data region markers should be printed as ".data_region/.end_data_region" directives.
Definition: MCAsmInfo.h:226
bool doesZeroDirectiveSupportNonZeroValue() const
Definition: MCAsmInfo.h:675
bool DwarfRegNumForCFI
True if dwarf register numbers are printed instead of symbolic register names in ....
Definition: MCAsmInfo.h:457
const char * getAsciiDirective() const
Definition: MCAsmInfo.h:678
bool IsLittleEndian
True if target is little endian. Default is true.
Definition: MCAsmInfo.h:79
AsmCharLiteralSyntax
Assembly character literal syntax types.
Definition: MCAsmInfo.h:59
@ ACLS_SingleQuotePrefix
Unknown; character literals not used by LLVM for this target.
Definition: MCAsmInfo.h:62
bool useDotAlignForAlignment() const
Definition: MCAsmInfo.h:665
unsigned CodePointerSize
Code pointer size in bytes. Default is 4.
Definition: MCAsmInfo.h:72
virtual const MCExpr * getExprForPersonalitySymbol(const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
Definition: MCAsmInfo.cpp:80
bool UseParensForSymbolVariant
True if target uses parens to indicate the symbol variant instead of .
Definition: MCAsmInfo.h:461
std::pair< int, int > BinutilsVersion
Definition: MCAsmInfo.h:481
bool HasLEB128Directives
True if the target supports LEB128 directives.
Definition: MCAsmInfo.h:233
unsigned CalleeSaveStackSlotSize
Size of the stack slot reserved for callee-saved registers, in bytes.
Definition: MCAsmInfo.h:76
const char * getGPRel32Directive() const
Definition: MCAsmInfo.h:539
const char * getWeakRefDirective() const
Definition: MCAsmInfo.h:714
bool hasCOFFComdatConstants() const
Definition: MCAsmInfo.h:592
MCSymbolAttr HiddenVisibilityAttr
This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility.
Definition: MCAsmInfo.h:403
virtual bool isValidUnquotedName(StringRef Name) const
Return true if the identifier Name does not need quotes to be syntactically correct.
Definition: MCAsmInfo.cpp:108
const char * getDTPRel32Directive() const
Definition: MCAsmInfo.h:541
bool hasNoDeadStrip() const
Definition: MCAsmInfo.h:712
virtual MCSection * getNonexecutableStackSection(MCContext &Ctx) const
Targets can implement this method to specify a section to switch to if the translation unit doesn't h...
Definition: MCAsmInfo.h:548
ExceptionHandling getExceptionHandlingType() const
Definition: MCAsmInfo.h:738
StringRef CommentString
This indicates the comment string used by the assembler.
Definition: MCAsmInfo.h:127
bool needsLocalForSize() const
Definition: MCAsmInfo.h:625
bool AllowHashAtStartOfIdentifier
This is true if the assembler allows the "#" character at the start of a string to be lexed as an Asm...
Definition: MCAsmInfo.h:217
const char * GPRel64Directive
If non-null, a directive that is used to emit a word which should be relocated as a 64-bit GP-relativ...
Definition: MCAsmInfo.h:291
const char * WeakDirective
Used to declare a global as being a weak symbol. Defaults to ".weak".
Definition: MCAsmInfo.h:386
bool hasFunctionAlignment() const
Definition: MCAsmInfo.h:707
bool enableDwarfFileDirectoryDefault() const
Definition: MCAsmInfo.h:785
bool HasPairedDoubleQuoteStringConstants
True if the target represents string constants as mostly raw characters in paired double quotation wi...
Definition: MCAsmInfo.h:359
bool usesDwarfFileAndLocDirectives() const
Definition: MCAsmInfo.h:777
bool hasIdentDirective() const
Definition: MCAsmInfo.h:711
unsigned getCodePointerSize() const
Get the code pointer size in bytes.
Definition: MCAsmInfo.h:515
Context object for machine code objects.
Definition: MCContext.h:83
Base class for the full range of assembler expressions which are needed for parsing.
Definition: MCExpr.h:34
Instances of this class represent a uniqued identifier for a section in the current translation unit.
Definition: MCSection.h:36
Streaming machine code generation interface.
Definition: MCStreamer.h:213
Generic base class for all target subtargets.
MCSymbol - Instances of this class represent a symbol name in the MC file, and MCSymbols are created ...
Definition: MCSymbol.h:41
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:50
constexpr bool empty() const
empty - Check if the string is empty.
Definition: StringRef.h:134
LLVM Value Representation.
Definition: Value.h:74
@ C
The default llvm calling convention, compatible with C.
Definition: CallingConv.h:34
@ ByteAlignment
Definition: MCAsmInfo.h:50
@ Log2Alignment
Definition: MCAsmInfo.h:50
@ MIPS
Windows x86, uses no CFI, just EH tables.
@ Itanium
Windows CE ARM, PowerPC, SH3, SH4.
@ CE
Windows NT (Windows on ARM)
@ Alpha64
Windows Alpha.
@ X86
Windows x64, Windows Itanium (IA-64)
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
ExceptionHandling
@ ZOS
z/OS MVS Exception Handling.
@ None
No exception support.
@ DwarfCFI
DWARF-like instruction based exceptions.
@ WinEH
Windows Exception Handling.
MCSymbolAttr
Definition: MCDirectives.h:18
@ MCSA_Memtag
.memtag (ELF)
Definition: MCDirectives.h:50
@ MCSA_Protected
.protected (ELF)
Definition: MCDirectives.h:43
@ MCSA_Exported
.globl _foo, exported (XCOFF)
Definition: MCDirectives.h:34
@ MCSA_Hidden
.hidden (ELF)
Definition: MCDirectives.h:33