LLVM 24.0.0git
llvm::MCAsmInfo Class Reference

This class is intended to be used as a base class for asm properties and features specific to the target. More...

#include "llvm/MC/MCAsmInfo.h"

Inheritance diagram for llvm::MCAsmInfo:
[legend]

Public Types

enum  AsmCharLiteralSyntax { ACLS_Unknown , ACLS_SingleQuotePrefix }
 Assembly character literal syntax types. More...
using AtSpecifierKind = uint16_t
 Type for at specifiers. Currently, 16 bits is enough.

Public Member Functions

 MCAsmInfo (const MCTargetOptions &Options)
 ~MCAsmInfo ()
 MCAsmInfo (MCAsmInfo const &)=delete
MCAsmInfo & operator= (MCAsmInfo const &)=delete
const MCTargetOptions & getTargetOptions () const
unsigned getAsmMacroMaxNestingDepth () const
unsigned getCodePointerSize () const
 Get the code pointer size in bytes.
unsigned getCalleeSaveStackSlotSize () const
 Get the callee-saved register stack slot size in bytes.
bool isLittleEndian () const
 True if the target is little endian.
bool usesCompInstByteOrder (const MCSubtargetInfo &STI) const
 True if the instruction is stored in multiple halfwords, with the high-order half appearing first in memory regardless of target endianness, to distinguish it from instructions occupying only one halfword.
bool isStackGrowthDirectionUp () const
 True if target stack grow up.
bool emitELFStackSection () const
bool hasSubsectionsViaSymbols () const
const char * getData8bitsDirective () const
const char * getData16bitsDirective () const
const char * getData32bitsDirective () const
const char * getData64bitsDirective () const
bool supportsSignedData () const
const MCExpr * getExprForPersonalitySymbol (const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
const MCExpr * getExprForFDESymbol (const MCSymbol *Sym, unsigned Encoding, MCStreamer &Streamer) const
const MCExpr * getDwarfSectionOffsetExpr (const MCSymbol *Sym, uint64_t Offset, MCContext &Ctx) const
 Return the expression used to emit the offset of Sym + Offset from the start of its DWARF section.
bool isAcceptableChar (char C) const
 Return true if C is an acceptable character inside a symbol name.
bool isValidUnquotedName (StringRef Name) const
 Return true if the identifier Name does not need quotes to be syntactically correct.
llvm::DenseSet< llvm::CachedHashStringRef > & getReservedIdentifiers ()
const llvm::DenseSet< llvm::CachedHashStringRef > & getReservedIdentifiers () const
bool isSectionDirective (StringRef SecName) const
void printSwitchToSection (const MCSection &Sec, uint32_t Subsection, const Triple &T, raw_ostream &OS) const
bool usesSunStyleELFSectionSwitchSyntax () const
bool needsDwarfSectionOffsetDirective () const
bool isAIX () const
bool isHLASM () const
bool isMachO () const
bool hasCOFFAssociativeComdats () const
bool hasCOFFComdatConstants () const
unsigned getMaxInstLength () const
 Returns the maximum possible encoded instruction size in bytes.
unsigned getMinInstAlignment () const
bool getDollarIsPC () const
const char * getSeparatorString () const
unsigned getCommentColumn () const
void setCommentColumn (unsigned Col)
StringRef getCommentString () const
bool shouldAllowAdditionalComments () const
const char * getLabelSuffix () const
bool usesSetToEquateSymbol () const
bool useAssignmentForEHBegin () const
bool needsLocalForSize () const
StringRef getInternalSymbolPrefix () const
bool hasLinkerPrivateGlobalPrefix () const
StringRef getLinkerPrivateGlobalPrefix () const
const char * getInlineAsmStart () const
const char * getInlineAsmEnd () const
unsigned getAssemblerDialect () const
unsigned getOutputAssemblerDialect () const
bool doesAllowAtInName () const
void setAllowAtInName (bool V)
bool doesAllowQuestionAtStartOfIdentifier () const
bool doesAllowAtAtStartOfIdentifier () const
bool doesAllowDollarAtStartOfIdentifier () const
bool supportsNameQuoting () const
bool doesSupportDataRegionDirectives () const
bool hasLEB128Directives () const
bool useFullRegisterNames () const
void setFullRegisterNames (bool V)
bool hasAddrsigDirective () const
const char * getZeroDirective () const
const char * getAsciiDirective () const
const char * getAscizDirective () const
AsmCharLiteralSyntax characterLiteralSyntax () const
bool getAlignmentIsInBytes () const
unsigned getTextAlignFillValue () const
const char * getGlobalDirective () const
bool doesSetDirectiveSuppressReloc () const
bool getCOMMDirectiveAlignmentIsInBytes () const
LCOMM::LCOMMType getLCOMMDirectiveAlignmentType () const
bool hasFunctionAlignment () const
bool hasPreferredAlignment () const
bool hasDotTypeDotSizeDirective () const
bool hasSingleParameterDotFile () const
bool hasIdentDirective () const
bool hasNoDeadStrip () const
const char * getWeakDirective () const
const char * getWeakRefDirective () const
bool hasWeakDefCanBeHiddenDirective () const
bool avoidWeakIfComdat () const
MCSymbolAttr getHiddenVisibilityAttr () const
MCSymbolAttr getExportedVisibilityAttr () const
MCSymbolAttr getHiddenDeclarationVisibilityAttr () const
MCSymbolAttr getProtectedVisibilityAttr () const
bool doesSupportDebugInformation () const
WinEH::EncodingType getWinEHEncodingType () const
bool usesCFIWithoutEH (ExceptionHandling EH) const
bool usesCFIForEH (ExceptionHandling EH) const
 Returns true if the exception handling method EH uses call frame information to unwind.
bool usesWindowsCFI () const
 Returns true if the object format describes unwind information with Windows SEH unwind opcodes (.seh_* directives, .pdata and .xdata).
bool usesPerInvokeEHLabels (ExceptionHandling EH) const
 Returns true if the exception tables reference the per-invoke EH labels emitted around invokes.
bool doesDwarfUseRelocationsAcrossSections () const
bool doDwarfFDESymbolsUseAbsDiff () const
bool useDwarfRegNumForCFI () const
bool useAtForSpecifier () const
bool useParensForSpecifier () const
bool supportsExtendedDwarfLocDirective () const
bool enableDwarfFileDirectoryDefault () const
void addInitialFrameState (const MCCFIInstruction &Inst)
const std::vector< MCCFIInstruction > & getInitialFrameState () const
void setBinutilsVersion (std::pair< int, int > Value)
bool useIntegratedAssembler () const
 Return true if assembly (inline or otherwise) should be parsed.
bool parseInlineAsmUsingAsmParser () const
 Return true if target want to use AsmParser to parse inlineasm.
bool binutilsIsAtLeast (int Major, int Minor) const
void setUseIntegratedAssembler (bool Value)
 Set whether assembly (inline or otherwise) should be parsed.
void setParseInlineAsmUsingAsmParser (bool Value)
 Set whether target want to use AsmParser to parse inlineasm.
bool preserveAsmComments () const
 Return true if assembly (inline or otherwise) should be parsed.
void setPreserveAsmComments (bool Value)
 Set whether assembly (inline or otherwise) should be parsed.
bool shouldUseLogicalShr () const
bool shouldUseMotorolaIntegers () const
StringRef getSpecifierName (uint32_t S) const
std::optional< uint32_t > getSpecifierForName (StringRef Name) const
void printExpr (raw_ostream &, const MCExpr &) const
bool evaluateAsRelocatableImpl (const MCSpecifierExpr &, MCValue &Res, const MCAssembler *Asm) const

Protected Member Functions

void initializeAtSpecifiers (EnumStrings< AtSpecifierKind, 1 >)

Protected Attributes

unsigned CodePointerSize = 4
 Code pointer size in bytes. Default is 4.
unsigned CalleeSaveStackSlotSize = 4
 Size of the stack slot reserved for callee-saved registers, in bytes.
bool IsLittleEndian = true
 True if target is little endian. Default is true.
std::optional< unsigned > CompInstByteOrderFeature
 Feature that indicates mixed-endian byte order.
bool StackGrowsUp = false
 True if target stack grow up. Default is false.
bool EmitELFStackSection = false
 Whether a section indicating a (non-)executable stack should be emitted.
bool HasSubsectionsViaSymbols = false
 True if this target has the MachO .subsections_via_symbols directive.
bool HasCOFFAssociativeComdats = false
 True if this is a non-GNU COFF target.
bool HasCOFFComdatConstants = false
 True if this is a non-GNU COFF target.
bool IsAIX = false
bool IsHLASM = false
unsigned MaxInstLength = 4
 This is the maximum possible length of an instruction, which is needed to compute the size of an inline asm.
unsigned MinInstAlignment = 1
 Every possible instruction length is a multiple of this value.
bool DollarIsPC = false
 The '$' token, when not referencing an identifier or constant, refers to the current PC.
const char * SeparatorString = ";"
 This string, if specified, is used to separate instructions from each other when on the same line.
StringRef CommentString = "#"
 This indicates the comment string used by the assembler.
bool AllowAdditionalComments = true
 This indicates whether to allow additional "comment strings" to be lexed as a comment.
const char * LabelSuffix = ":"
 This is appended to emitted labels. Defaults to ":".
bool UsesSetToEquateSymbol = false
 Use .set instead of = to equate a symbol to an expression.
bool UseAssignmentForEHBegin = false
bool NeedsLocalForSize = false
StringRef InternalSymbolPrefix = "L"
 For internal use by compiler and assembler, not meant to be visible externally.
StringRef LinkerPrivateGlobalPrefix = ""
 This prefix is used for symbols that should be passed through the assembler but be removed by the linker.
const char * InlineAsmStart = "APP"
 If these are nonempty, they contain a directive to emit before and after an inline assembly statement.
const char * InlineAsmEnd = "NO_APP"
unsigned AssemblerDialect = 0
 Which dialect of an assembler variant to use. Defaults to 0.
bool AllowAtInName = false
 This is true if the assembler allows @ characters in symbol names.
bool AllowQuestionAtStartOfIdentifier = false
 This is true if the assembler allows the "?" character at the start of of a string to be lexed as an AsmToken::Identifier.
bool AllowDollarAtStartOfIdentifier = false
 This is true if the assembler allows the "$" character at the start of of a string to be lexed as an AsmToken::Identifier.
bool AllowAtAtStartOfIdentifier = false
 This is true if the assembler allows the "@" character at the start of a string to be lexed as an AsmToken::Identifier.
bool SupportsQuotedNames = true
 If this is true, symbol names with invalid characters will be printed in quotes.
bool UseDataRegionDirectives = false
 This is true if data region markers should be printed as ".data_region/.end_data_region" directives.
bool HasLEB128Directives = true
 True if the target supports LEB128 directives.
bool PPCUseFullRegisterNames = false
 True if full register names are printed.
bool HasAddrsigDirective = true
 True if the target supports the .addrsig directive.
void(* SpecifierExprPrintFn )(const MCAsmInfo &, raw_ostream &, const MCSpecifierExpr &) = nullptr
bool(* SpecifierExprEvaluateFn )(const MCSpecifierExpr &E, MCValue &Res, const MCAssembler *Asm) = nullptr
const char * ZeroDirective = "\t.zero\t"
 This should be set to the directive used to get some number of zero (and non-zero if supported by the directive) bytes emitted to the current section.
const char * AsciiDirective = "\t.ascii\t"
 This directive allows emission of an ascii string with the standard C escape characters embedded into it.
const char * AscizDirective = "\t.asciz\t"
 If not null, this allows for special handling of zero terminated strings on this target.
AsmCharLiteralSyntax CharacterLiteralSyntax = ACLS_Unknown
 Form used for character literals in the assembly syntax.
const char * Data8bitsDirective = "\t.byte\t"
 These directives are used to output some unit of integer data to the current section.
const char * Data16bitsDirective = "\t.short\t"
const char * Data32bitsDirective = "\t.long\t"
const char * Data64bitsDirective = "\t.quad\t"
bool SupportsSignedData = true
 True if data directives support signed values.
bool SunStyleELFSectionSwitchSyntax = false
 This is true if this target uses "Sun Style" syntax for section switching ("#alloc,#write" etc) instead of the normal ELF syntax (,"a,w") in .section directives.
bool NeedsDwarfSectionOffsetDirective = false
void(* PrintSwitchToSectionFn )(const MCAsmInfo &, const MCSection &, uint32_t Subsection, const Triple &, raw_ostream &)
bool AlignmentIsInBytes = true
 If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number of bytes to align to.
unsigned TextAlignFillValue = 0
 If non-zero, this is used to fill the executable space created as the result of a alignment directive.
const char * GlobalDirective = "\t.globl\t"
 This is the directive used to declare a global entity.
bool SetDirectiveSuppressesReloc = false
 True if the expression .long f - g uses a relocation but it can be suppressed by writing a = f - g .long a.
bool COMMDirectiveAlignmentIsInBytes = true
 True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).
LCOMM::LCOMMType LCOMMDirectiveAlignmentType = LCOMM::NoAlignment
 Describes if the .lcomm directive for the target supports an alignment argument and how it is interpreted.
bool HasFunctionAlignment = true
bool HasPreferredAlignment = false
bool HasDotTypeDotSizeDirective = true
 True if the target has .type and .size directives, this is true for most ELF targets.
bool HasSingleParameterDotFile = true
 True if the target has a single parameter .file directive, this is true for ELF targets.
bool HasIdentDirective = false
 True if the target has a .ident directive, this is true for ELF targets.
bool HasNoDeadStrip = false
 True if this target supports the MachO .no_dead_strip directive.
const char * WeakDirective = "\t.weak\t"
 Used to declare a global as being a weak symbol. Defaults to ".weak".
const char * WeakRefDirective = nullptr
 This directive, if non-null, is used to declare a global as being a weak undefined symbol.
bool HasWeakDefCanBeHiddenDirective = false
 True if we have a directive to declare a global as being a weak defined symbol that can be hidden (unexported).
bool AvoidWeakIfComdat = false
 True if we should mark symbols as global instead of weak, for weak*‍/linkonce*, if the symbol has a comdat.
MCSymbolAttr HiddenVisibilityAttr = MCSA_Hidden
 This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility.
MCSymbolAttr ExportedVisibilityAttr = MCSA_Exported
 This attribute, if not MCSA_Invalid, is used to declare a symbol as having exported visibility.
MCSymbolAttr HiddenDeclarationVisibilityAttr = MCSA_Hidden
 This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibility.
MCSymbolAttr ProtectedVisibilityAttr = MCSA_Protected
 This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.
bool SupportsDebugInformation = false
 True if target supports emission of debugging information.
bool UsesCFIWithoutEH = false
 True if target uses CFI unwind information for other purposes than EH (debugging / sanitizers) when the exception model is ExceptionHandling::None.
WinEH::EncodingType WinEHEncodingType = WinEH::EncodingType::Invalid
 Windows exception handling data (.pdata) encoding. Defaults to Invalid.
bool DwarfUsesRelocationsAcrossSections = true
 True if Dwarf2 output generally uses relocations for references to other .debug_* sections.
uint16_t DwarfPersonalitySymbolSpec = 0
 The optional specifier to use for the personality symbol references.
int DwarfPersonalitySymbolsAbsOff = 0
 Non-zero if DWARF personality symbol reference relocations should have a constant addend instead of being PC-relative when a symbol specifier is used to refer to personality symbols.
bool DwarfFDESymbolsUseAbsDiff = false
 True if DWARF FDE symbol reference relocations should be replaced by an absolute difference.
uint16_t DwarfFDERelSymbolSpec = 0
 The optional specifier to use for the relative FDE symbol references.
bool EnableDwarfFileDirectoryDefault = true
 True if DWARF ‘.file directory’ directive syntax is used by default.
bool DwarfRegNumForCFI = false
 True if dwarf register numbers are printed instead of symbolic register names in .cfi_* directives.
bool UseAtForSpecifier = false
 True if target uses @ (expr@specifier) for relocation specifiers.
bool UseParensForSpecifier = false
 (ARM-specific) Uses parens for relocation specifier in data directives, e.g.
bool SupportsExtendedDwarfLocDirective = true
 True if the target supports flags in ".loc" directive, false if only location is allowed.
unsigned DwarfSectionOffSpecifierExpr = 0
 If non-zero, MCSpecifierExpr kind used as base for DWARF-relative exprs.
std::vector< MCCFIInstruction > InitialFrameState
std::pair< int, int > BinutilsVersion = {2, 26}
bool UseIntegratedAssembler = true
 Should we use the integrated assembler?
bool ParseInlineAsmUsingAsmParser = false
 Use AsmParser to parse inlineAsm when UseIntegratedAssembler is not set.
bool PreserveAsmComments = true
 Preserve Comments in assembly.
unsigned CommentColumn = 40
 The column (zero-based) at which asm comments should be printed.
bool UseLogicalShr = true
 True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather than arithmetic.
bool UseMotorolaIntegers = false
llvm::DenseMap< AtSpecifierKind, StringRef > AtSpecifierToName
llvm::StringMap< AtSpecifierKind > NameToAtSpecifier
llvm::DenseSet< llvm::CachedHashStringRef > ReservedIdentifiers
SmallDenseSet< StringRef, 8 > SectionDirectives
 Sections whose name also is supported as a directive without an explicit ".section" directive.
const MCTargetOptions & TargetOptions

Detailed Description

This class is intended to be used as a base class for asm properties and features specific to the target.

Note: this class is not virtual, target features must be added through existing or new member variables. Subclasses cannot have additional member variables or member functions.

Definition at line 69 of file MCAsmInfo.h.

Member Typedef Documentation

◆ AtSpecifierKind

Type for at specifiers. Currently, 16 bits is enough.

Definition at line 80 of file MCAsmInfo.h.

Member Enumeration Documentation

◆ AsmCharLiteralSyntax

Assembly character literal syntax types.

Enumerator
ACLS_Unknown 
ACLS_SingleQuotePrefix 

Unknown; character literals not used by LLVM for this target.

Definition at line 72 of file MCAsmInfo.h.

Constructor & Destructor Documentation

◆ MCAsmInfo() [1/2]

◆ ~MCAsmInfo()

MCAsmInfo::~MCAsmInfo ( )
default

◆ MCAsmInfo() [2/2]

llvm::MCAsmInfo::MCAsmInfo ( MCAsmInfo const & )
delete

References MCAsmInfo().

Member Function Documentation

◆ addInitialFrameState()

◆ avoidWeakIfComdat()

bool llvm::MCAsmInfo::avoidWeakIfComdat ( ) const
inline

Definition at line 673 of file MCAsmInfo.h.

References AvoidWeakIfComdat.

◆ binutilsIsAtLeast()

bool llvm::MCAsmInfo::binutilsIsAtLeast ( int Major,
int Minor ) const
inline

Definition at line 761 of file MCAsmInfo.h.

References BinutilsVersion.

Referenced by llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo().

◆ characterLiteralSyntax()

AsmCharLiteralSyntax llvm::MCAsmInfo::characterLiteralSyntax ( ) const
inline

Definition at line 641 of file MCAsmInfo.h.

References CharacterLiteralSyntax.

◆ doDwarfFDESymbolsUseAbsDiff()

bool llvm::MCAsmInfo::doDwarfFDESymbolsUseAbsDiff ( ) const
inline

Definition at line 731 of file MCAsmInfo.h.

References DwarfFDESymbolsUseAbsDiff.

Referenced by emitFDESymbol().

◆ doesAllowAtAtStartOfIdentifier()

bool llvm::MCAsmInfo::doesAllowAtAtStartOfIdentifier ( ) const
inline

Definition at line 619 of file MCAsmInfo.h.

References AllowAtAtStartOfIdentifier.

◆ doesAllowAtInName()

bool llvm::MCAsmInfo::doesAllowAtInName ( ) const
inline

Definition at line 614 of file MCAsmInfo.h.

References AllowAtInName.

Referenced by isAcceptableChar().

◆ doesAllowDollarAtStartOfIdentifier()

bool llvm::MCAsmInfo::doesAllowDollarAtStartOfIdentifier ( ) const
inline

Definition at line 622 of file MCAsmInfo.h.

References AllowDollarAtStartOfIdentifier.

◆ doesAllowQuestionAtStartOfIdentifier()

bool llvm::MCAsmInfo::doesAllowQuestionAtStartOfIdentifier ( ) const
inline

Definition at line 616 of file MCAsmInfo.h.

References AllowQuestionAtStartOfIdentifier.

◆ doesDwarfUseRelocationsAcrossSections()

bool llvm::MCAsmInfo::doesDwarfUseRelocationsAcrossSections ( ) const
inline

Definition at line 727 of file MCAsmInfo.h.

References DwarfUsesRelocationsAcrossSections.

Referenced by llvm::MCGenDwarfInfo::Emit().

◆ doesSetDirectiveSuppressReloc()

bool llvm::MCAsmInfo::doesSetDirectiveSuppressReloc ( ) const
inline

Definition at line 648 of file MCAsmInfo.h.

References SetDirectiveSuppressesReloc.

Referenced by llvm::MCStreamer::emitAbsoluteSymbolDiff().

◆ doesSupportDataRegionDirectives()

bool llvm::MCAsmInfo::doesSupportDataRegionDirectives ( ) const
inline

Definition at line 627 of file MCAsmInfo.h.

References UseDataRegionDirectives.

◆ doesSupportDebugInformation()

bool llvm::MCAsmInfo::doesSupportDebugInformation ( ) const
inline

Definition at line 687 of file MCAsmInfo.h.

References SupportsDebugInformation.

◆ emitELFStackSection()

bool llvm::MCAsmInfo::emitELFStackSection ( ) const
inline

Definition at line 512 of file MCAsmInfo.h.

References EmitELFStackSection.

◆ enableDwarfFileDirectoryDefault()

bool llvm::MCAsmInfo::enableDwarfFileDirectoryDefault ( ) const
inline

Definition at line 739 of file MCAsmInfo.h.

References EnableDwarfFileDirectoryDefault.

◆ evaluateAsRelocatableImpl()

bool MCAsmInfo::evaluateAsRelocatableImpl ( const MCSpecifierExpr & E,
MCValue & Res,
const MCAssembler * Asm ) const

◆ getAlignmentIsInBytes()

bool llvm::MCAsmInfo::getAlignmentIsInBytes ( ) const
inline

Definition at line 644 of file MCAsmInfo.h.

References AlignmentIsInBytes.

◆ getAsciiDirective()

const char * llvm::MCAsmInfo::getAsciiDirective ( ) const
inline

Definition at line 639 of file MCAsmInfo.h.

References AsciiDirective.

◆ getAscizDirective()

const char * llvm::MCAsmInfo::getAscizDirective ( ) const
inline

Definition at line 640 of file MCAsmInfo.h.

References AscizDirective.

◆ getAsmMacroMaxNestingDepth()

unsigned MCAsmInfo::getAsmMacroMaxNestingDepth ( ) const

Definition at line 46 of file MCAsmInfo.cpp.

References llvm::getMCCLOptions(), and TargetOptions.

◆ getAssemblerDialect()

unsigned llvm::MCAsmInfo::getAssemblerDialect ( ) const
inline

◆ getCalleeSaveStackSlotSize()

unsigned llvm::MCAsmInfo::getCalleeSaveStackSlotSize ( ) const
inline

Get the callee-saved register stack slot size in bytes.

Definition at line 496 of file MCAsmInfo.h.

References CalleeSaveStackSlotSize.

Referenced by getDataAlignmentFactor().

◆ getCodePointerSize()

◆ getCOMMDirectiveAlignmentIsInBytes()

bool llvm::MCAsmInfo::getCOMMDirectiveAlignmentIsInBytes ( ) const
inline

Definition at line 652 of file MCAsmInfo.h.

References COMMDirectiveAlignmentIsInBytes.

◆ getCommentColumn()

unsigned llvm::MCAsmInfo::getCommentColumn ( ) const
inline

Definition at line 584 of file MCAsmInfo.h.

References CommentColumn.

Referenced by emitComments().

◆ getCommentString()

StringRef llvm::MCAsmInfo::getCommentString ( ) const
inline

◆ getData16bitsDirective()

const char * llvm::MCAsmInfo::getData16bitsDirective ( ) const
inline

Definition at line 519 of file MCAsmInfo.h.

References Data16bitsDirective.

◆ getData32bitsDirective()

const char * llvm::MCAsmInfo::getData32bitsDirective ( ) const
inline

Definition at line 520 of file MCAsmInfo.h.

References Data32bitsDirective.

◆ getData64bitsDirective()

const char * llvm::MCAsmInfo::getData64bitsDirective ( ) const
inline

Definition at line 521 of file MCAsmInfo.h.

References Data64bitsDirective.

◆ getData8bitsDirective()

const char * llvm::MCAsmInfo::getData8bitsDirective ( ) const
inline

◆ getDollarIsPC()

bool llvm::MCAsmInfo::getDollarIsPC ( ) const
inline

Definition at line 581 of file MCAsmInfo.h.

References DollarIsPC.

◆ getDwarfSectionOffsetExpr()

const MCExpr * MCAsmInfo::getDwarfSectionOffsetExpr ( const MCSymbol * Sym,
uint64_t Offset,
MCContext & Ctx ) const

Return the expression used to emit the offset of Sym + Offset from the start of its DWARF section.

Definition at line 95 of file MCAsmInfo.cpp.

References llvm::MCConstantExpr::create(), llvm::MCSpecifierExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), DwarfSectionOffSpecifierExpr, and llvm::Offset.

Referenced by llvm::MCStreamer::emitDwarfSectionOffset().

◆ getExportedVisibilityAttr()

MCSymbolAttr llvm::MCAsmInfo::getExportedVisibilityAttr ( ) const
inline

Definition at line 677 of file MCAsmInfo.h.

References ExportedVisibilityAttr.

◆ getExprForFDESymbol()

◆ getExprForPersonalitySymbol()

◆ getGlobalDirective()

const char * llvm::MCAsmInfo::getGlobalDirective ( ) const
inline

Definition at line 646 of file MCAsmInfo.h.

References GlobalDirective.

◆ getHiddenDeclarationVisibilityAttr()

MCSymbolAttr llvm::MCAsmInfo::getHiddenDeclarationVisibilityAttr ( ) const
inline

Definition at line 679 of file MCAsmInfo.h.

References HiddenDeclarationVisibilityAttr.

◆ getHiddenVisibilityAttr()

MCSymbolAttr llvm::MCAsmInfo::getHiddenVisibilityAttr ( ) const
inline

Definition at line 675 of file MCAsmInfo.h.

References HiddenVisibilityAttr.

◆ getInitialFrameState()

const std::vector< MCCFIInstruction > & llvm::MCAsmInfo::getInitialFrameState ( ) const
inline

Definition at line 745 of file MCAsmInfo.h.

References InitialFrameState.

Referenced by llvm::MCStreamer::emitCFIStartProc().

◆ getInlineAsmEnd()

const char * llvm::MCAsmInfo::getInlineAsmEnd ( ) const
inline

Definition at line 607 of file MCAsmInfo.h.

References InlineAsmEnd.

◆ getInlineAsmStart()

const char * llvm::MCAsmInfo::getInlineAsmStart ( ) const
inline

Definition at line 606 of file MCAsmInfo.h.

References InlineAsmStart.

◆ getInternalSymbolPrefix()

StringRef llvm::MCAsmInfo::getInternalSymbolPrefix ( ) const
inline

Definition at line 594 of file MCAsmInfo.h.

References InternalSymbolPrefix.

Referenced by getLinkerPrivateGlobalPrefix(), and llvm::MCResourceInfo::getSymbol().

◆ getLabelSuffix()

const char * llvm::MCAsmInfo::getLabelSuffix ( ) const
inline

Definition at line 589 of file MCAsmInfo.h.

References LabelSuffix.

◆ getLCOMMDirectiveAlignmentType()

LCOMM::LCOMMType llvm::MCAsmInfo::getLCOMMDirectiveAlignmentType ( ) const
inline

Definition at line 656 of file MCAsmInfo.h.

References LCOMMDirectiveAlignmentType.

◆ getLinkerPrivateGlobalPrefix()

StringRef llvm::MCAsmInfo::getLinkerPrivateGlobalPrefix ( ) const
inline

◆ getMaxInstLength()

unsigned llvm::MCAsmInfo::getMaxInstLength ( ) const
inline

Returns the maximum possible encoded instruction size in bytes.

Definition at line 578 of file MCAsmInfo.h.

References MaxInstLength.

Referenced by llvm::HexagonInstrInfo::getInlineAsmLength(), and llvm::TargetInstrInfo::getInlineAsmLength().

◆ getMinInstAlignment()

unsigned llvm::MCAsmInfo::getMinInstAlignment ( ) const
inline

Definition at line 580 of file MCAsmInfo.h.

References MinInstAlignment.

Referenced by llvm::MCDwarfLineTableHeader::Emit().

◆ getOutputAssemblerDialect()

unsigned llvm::MCAsmInfo::getOutputAssemblerDialect ( ) const
inline

◆ getProtectedVisibilityAttr()

MCSymbolAttr llvm::MCAsmInfo::getProtectedVisibilityAttr ( ) const
inline

Definition at line 683 of file MCAsmInfo.h.

References ProtectedVisibilityAttr.

◆ getReservedIdentifiers() [1/2]

llvm::DenseSet< llvm::CachedHashStringRef > & llvm::MCAsmInfo::getReservedIdentifiers ( )
inline

Definition at line 543 of file MCAsmInfo.h.

References ReservedIdentifiers.

Referenced by isValidUnquotedName(), and populateReservedIdentifiers().

◆ getReservedIdentifiers() [2/2]

const llvm::DenseSet< llvm::CachedHashStringRef > & llvm::MCAsmInfo::getReservedIdentifiers ( ) const
inline

Definition at line 547 of file MCAsmInfo.h.

References ReservedIdentifiers.

◆ getSeparatorString()

const char * llvm::MCAsmInfo::getSeparatorString ( ) const
inline

◆ getSpecifierForName()

std::optional< uint32_t > MCAsmInfo::getSpecifierForName ( StringRef Name) const

Definition at line 163 of file MCAsmInfo.cpp.

References NameToAtSpecifier.

◆ getSpecifierName()

◆ getTargetOptions()

const MCTargetOptions & llvm::MCAsmInfo::getTargetOptions ( ) const
inline

Definition at line 487 of file MCAsmInfo.h.

References TargetOptions.

◆ getTextAlignFillValue()

unsigned llvm::MCAsmInfo::getTextAlignFillValue ( ) const
inline

Definition at line 645 of file MCAsmInfo.h.

References TextAlignFillValue.

◆ getWeakDirective()

const char * llvm::MCAsmInfo::getWeakDirective ( ) const
inline

Definition at line 666 of file MCAsmInfo.h.

References WeakDirective.

◆ getWeakRefDirective()

const char * llvm::MCAsmInfo::getWeakRefDirective ( ) const
inline

Definition at line 667 of file MCAsmInfo.h.

References WeakRefDirective.

◆ getWinEHEncodingType()

WinEH::EncodingType llvm::MCAsmInfo::getWinEHEncodingType ( ) const
inline

Definition at line 689 of file MCAsmInfo.h.

References WinEHEncodingType.

◆ getZeroDirective()

const char * llvm::MCAsmInfo::getZeroDirective ( ) const
inline

Definition at line 638 of file MCAsmInfo.h.

References ZeroDirective.

◆ hasAddrsigDirective()

bool llvm::MCAsmInfo::hasAddrsigDirective ( ) const
inline

Definition at line 636 of file MCAsmInfo.h.

References HasAddrsigDirective.

◆ hasCOFFAssociativeComdats()

bool llvm::MCAsmInfo::hasCOFFAssociativeComdats ( ) const
inline

Definition at line 574 of file MCAsmInfo.h.

References HasCOFFAssociativeComdats.

◆ hasCOFFComdatConstants()

bool llvm::MCAsmInfo::hasCOFFComdatConstants ( ) const
inline

Definition at line 575 of file MCAsmInfo.h.

References HasCOFFComdatConstants.

◆ hasDotTypeDotSizeDirective()

bool llvm::MCAsmInfo::hasDotTypeDotSizeDirective ( ) const
inline

Definition at line 662 of file MCAsmInfo.h.

References HasDotTypeDotSizeDirective.

◆ hasFunctionAlignment()

bool llvm::MCAsmInfo::hasFunctionAlignment ( ) const
inline

Definition at line 660 of file MCAsmInfo.h.

References HasFunctionAlignment.

◆ hasIdentDirective()

bool llvm::MCAsmInfo::hasIdentDirective ( ) const
inline

Definition at line 664 of file MCAsmInfo.h.

References HasIdentDirective.

◆ hasLEB128Directives()

bool llvm::MCAsmInfo::hasLEB128Directives ( ) const
inline

Definition at line 631 of file MCAsmInfo.h.

References HasLEB128Directives.

◆ hasLinkerPrivateGlobalPrefix()

bool llvm::MCAsmInfo::hasLinkerPrivateGlobalPrefix ( ) const
inline

Definition at line 596 of file MCAsmInfo.h.

References LinkerPrivateGlobalPrefix.

Referenced by getLinkerPrivateGlobalPrefix().

◆ hasNoDeadStrip()

bool llvm::MCAsmInfo::hasNoDeadStrip ( ) const
inline

Definition at line 665 of file MCAsmInfo.h.

References HasNoDeadStrip.

◆ hasPreferredAlignment()

bool llvm::MCAsmInfo::hasPreferredAlignment ( ) const
inline

Definition at line 661 of file MCAsmInfo.h.

References HasPreferredAlignment.

◆ hasSingleParameterDotFile()

bool llvm::MCAsmInfo::hasSingleParameterDotFile ( ) const
inline

Definition at line 663 of file MCAsmInfo.h.

References HasSingleParameterDotFile.

◆ hasSubsectionsViaSymbols()

bool llvm::MCAsmInfo::hasSubsectionsViaSymbols ( ) const
inline

Definition at line 514 of file MCAsmInfo.h.

References HasSubsectionsViaSymbols.

◆ hasWeakDefCanBeHiddenDirective()

bool llvm::MCAsmInfo::hasWeakDefCanBeHiddenDirective ( ) const
inline

Definition at line 669 of file MCAsmInfo.h.

References HasWeakDefCanBeHiddenDirective.

Referenced by canBeHidden().

◆ initializeAtSpecifiers()

◆ isAcceptableChar()

bool MCAsmInfo::isAcceptableChar ( char C) const

Return true if C is an acceptable character inside a symbol name.

Definition at line 109 of file MCAsmInfo.cpp.

References C(), doesAllowAtInName(), isAIX(), llvm::isAlnum(), and isHLASM().

Referenced by isValidUnquotedName().

◆ isAIX()

bool llvm::MCAsmInfo::isAIX ( ) const
inline

Definition at line 571 of file MCAsmInfo.h.

References IsAIX.

Referenced by isAcceptableChar().

◆ isHLASM()

bool llvm::MCAsmInfo::isHLASM ( ) const
inline

Definition at line 572 of file MCAsmInfo.h.

References IsHLASM.

Referenced by EmitInlineAsmStr(), and isAcceptableChar().

◆ isLittleEndian()

bool llvm::MCAsmInfo::isLittleEndian ( ) const
inline

True if the target is little endian.

Definition at line 501 of file MCAsmInfo.h.

References IsLittleEndian.

Referenced by llvm::MCAsmBaseStreamer::addEncodingComment(), and llvm::ARMTargetStreamer::emitInst().

◆ isMachO()

bool llvm::MCAsmInfo::isMachO ( ) const
inline

Definition at line 573 of file MCAsmInfo.h.

References HasSubsectionsViaSymbols.

◆ isSectionDirective()

bool llvm::MCAsmInfo::isSectionDirective ( StringRef SecName) const
inline

Definition at line 551 of file MCAsmInfo.h.

References SectionDirectives.

Referenced by printSwitchToSection(), printSwitchToSection(), and printSwitchToSection().

◆ isStackGrowthDirectionUp()

bool llvm::MCAsmInfo::isStackGrowthDirectionUp ( ) const
inline

True if target stack grow up.

Definition at line 510 of file MCAsmInfo.h.

References StackGrowsUp.

Referenced by getDataAlignmentFactor().

◆ isValidUnquotedName()

bool MCAsmInfo::isValidUnquotedName ( StringRef Name) const

Return true if the identifier Name does not need quotes to be syntactically correct.

Definition at line 129 of file MCAsmInfo.cpp.

References C(), llvm::detail::DenseSetImpl< ValueT, MapTy >::contains(), getReservedIdentifiers(), and isAcceptableChar().

Referenced by llvm::MCSymbol::print().

◆ needsDwarfSectionOffsetDirective()

bool llvm::MCAsmInfo::needsDwarfSectionOffsetDirective ( ) const
inline

Definition at line 565 of file MCAsmInfo.h.

References NeedsDwarfSectionOffsetDirective.

Referenced by llvm::MCStreamer::emitDwarfSectionOffset().

◆ needsLocalForSize()

bool llvm::MCAsmInfo::needsLocalForSize ( ) const
inline

Definition at line 593 of file MCAsmInfo.h.

References NeedsLocalForSize.

◆ operator=()

MCAsmInfo & llvm::MCAsmInfo::operator= ( MCAsmInfo const & )
delete

References MCAsmInfo().

◆ parseInlineAsmUsingAsmParser()

bool llvm::MCAsmInfo::parseInlineAsmUsingAsmParser ( ) const
inline

Return true if target want to use AsmParser to parse inlineasm.

Definition at line 757 of file MCAsmInfo.h.

References ParseInlineAsmUsingAsmParser.

◆ preserveAsmComments()

bool llvm::MCAsmInfo::preserveAsmComments ( ) const
inline

Return true if assembly (inline or otherwise) should be parsed.

Definition at line 774 of file MCAsmInfo.h.

References PreserveAsmComments.

◆ printExpr()

void MCAsmInfo::printExpr ( raw_ostream & OS,
const MCExpr & Expr ) const

Definition at line 170 of file MCAsmInfo.cpp.

References assert(), llvm::dyn_cast(), and SpecifierExprPrintFn.

Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::MCAsmBaseStreamer::addEncodingComment(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), llvm::LoongArchTargetAsmStreamer::emitDTPRel32Value(), llvm::MipsTargetAsmStreamer::emitDTPRel32Value(), llvm::LoongArchTargetAsmStreamer::emitDTPRel64Value(), llvm::MipsTargetAsmStreamer::emitDTPRel64Value(), llvm::MipsTargetAsmStreamer::emitGPRel32Value(), llvm::MipsTargetAsmStreamer::emitGPRel64Value(), llvm::WebAssemblyTargetAsmStreamer::emitIndIdx(), llvm::MipsTargetAsmStreamer::emitTPRel32Value(), llvm::MipsTargetAsmStreamer::emitTPRel64Value(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::AArch64AuthMCExpr::print(), llvm::DIEExpr::print(), XtensaOperand::print(), llvm::AMDGPU::printAMDGPUMCExpr(), llvm::AMDGPUMCExpr::printImpl(), llvm::HexagonMCExpr::printImpl(), llvm::NVPTXGenericMCSymbolRefExpr::printImpl(), printImpl(), printMemoryImmediateOffset(), printOperand(), printSpecifierExpr(), printSpecifierExpr(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().

◆ printSwitchToSection()

void llvm::MCAsmInfo::printSwitchToSection ( const MCSection & Sec,
uint32_t Subsection,
const Triple & T,
raw_ostream & OS ) const
inline

◆ setAllowAtInName()

void llvm::MCAsmInfo::setAllowAtInName ( bool V)
inline

Definition at line 615 of file MCAsmInfo.h.

References AllowAtInName, and V.

◆ setBinutilsVersion()

void llvm::MCAsmInfo::setBinutilsVersion ( std::pair< int, int > Value)
inline

Definition at line 749 of file MCAsmInfo.h.

References BinutilsVersion.

◆ setCommentColumn()

void llvm::MCAsmInfo::setCommentColumn ( unsigned Col)
inline

Definition at line 585 of file MCAsmInfo.h.

References CommentColumn.

◆ setFullRegisterNames()

void llvm::MCAsmInfo::setFullRegisterNames ( bool V)
inline

Definition at line 634 of file MCAsmInfo.h.

References PPCUseFullRegisterNames, and V.

Referenced by llvm::CodeGenTargetMachineImpl::initAsmInfo().

◆ setParseInlineAsmUsingAsmParser()

void llvm::MCAsmInfo::setParseInlineAsmUsingAsmParser ( bool Value)
inline

Set whether target want to use AsmParser to parse inlineasm.

Definition at line 769 of file MCAsmInfo.h.

References ParseInlineAsmUsingAsmParser.

Referenced by llvm::CodeGenTargetMachineImpl::initAsmInfo().

◆ setPreserveAsmComments()

void llvm::MCAsmInfo::setPreserveAsmComments ( bool Value)
inline

Set whether assembly (inline or otherwise) should be parsed.

Definition at line 777 of file MCAsmInfo.h.

References PreserveAsmComments.

Referenced by llvm::CodeGenTargetMachineImpl::initAsmInfo().

◆ setUseIntegratedAssembler()

void llvm::MCAsmInfo::setUseIntegratedAssembler ( bool Value)
inline

Set whether assembly (inline or otherwise) should be parsed.

Definition at line 766 of file MCAsmInfo.h.

References UseIntegratedAssembler.

Referenced by llvm::CodeGenTargetMachineImpl::initAsmInfo().

◆ shouldAllowAdditionalComments()

bool llvm::MCAsmInfo::shouldAllowAdditionalComments ( ) const
inline

Definition at line 588 of file MCAsmInfo.h.

References AllowAdditionalComments.

◆ shouldUseLogicalShr()

bool llvm::MCAsmInfo::shouldUseLogicalShr ( ) const
inline

Definition at line 779 of file MCAsmInfo.h.

References UseLogicalShr.

◆ shouldUseMotorolaIntegers()

bool llvm::MCAsmInfo::shouldUseMotorolaIntegers ( ) const
inline

Definition at line 781 of file MCAsmInfo.h.

References UseMotorolaIntegers.

◆ supportsExtendedDwarfLocDirective()

bool llvm::MCAsmInfo::supportsExtendedDwarfLocDirective ( ) const
inline

Definition at line 735 of file MCAsmInfo.h.

References SupportsExtendedDwarfLocDirective.

◆ supportsNameQuoting()

bool llvm::MCAsmInfo::supportsNameQuoting ( ) const
inline

Definition at line 625 of file MCAsmInfo.h.

References SupportsQuotedNames.

Referenced by llvm::MCSymbol::print().

◆ supportsSignedData()

bool llvm::MCAsmInfo::supportsSignedData ( ) const
inline

Definition at line 522 of file MCAsmInfo.h.

References SupportsSignedData.

◆ useAssignmentForEHBegin()

bool llvm::MCAsmInfo::useAssignmentForEHBegin ( ) const
inline

Definition at line 592 of file MCAsmInfo.h.

References UseAssignmentForEHBegin.

◆ useAtForSpecifier()

bool llvm::MCAsmInfo::useAtForSpecifier ( ) const
inline

Definition at line 733 of file MCAsmInfo.h.

References UseAtForSpecifier.

◆ useDwarfRegNumForCFI()

bool llvm::MCAsmInfo::useDwarfRegNumForCFI ( ) const
inline

Definition at line 732 of file MCAsmInfo.h.

References DwarfRegNumForCFI.

◆ useFullRegisterNames()

bool llvm::MCAsmInfo::useFullRegisterNames ( ) const
inline

Definition at line 633 of file MCAsmInfo.h.

References PPCUseFullRegisterNames.

◆ useIntegratedAssembler()

bool llvm::MCAsmInfo::useIntegratedAssembler ( ) const
inline

Return true if assembly (inline or otherwise) should be parsed.

Definition at line 754 of file MCAsmInfo.h.

References UseIntegratedAssembler.

◆ useParensForSpecifier()

bool llvm::MCAsmInfo::useParensForSpecifier ( ) const
inline

Definition at line 734 of file MCAsmInfo.h.

References UseParensForSpecifier.

◆ usesCFIForEH()

bool llvm::MCAsmInfo::usesCFIForEH ( ExceptionHandling EH) const
inline

Returns true if the exception handling method EH uses call frame information to unwind.

Definition at line 697 of file MCAsmInfo.h.

References llvm::ARM, llvm::DwarfCFI, usesWindowsCFI(), llvm::WinEH, and llvm::ZOS.

Referenced by llvm::DwarfCFIException::beginFunction().

◆ usesCFIWithoutEH()

bool llvm::MCAsmInfo::usesCFIWithoutEH ( ExceptionHandling EH) const
inline

Definition at line 691 of file MCAsmInfo.h.

References llvm::None, and UsesCFIWithoutEH.

◆ usesCompInstByteOrder()

bool MCAsmInfo::usesCompInstByteOrder ( const MCSubtargetInfo & STI) const

True if the instruction is stored in multiple halfwords, with the high-order half appearing first in memory regardless of target endianness, to distinguish it from instructions occupying only one halfword.

Examples are the Thumb variant of Arm, microMIPS, and nanoMIPS.

Definition at line 40 of file MCAsmInfo.cpp.

References CompInstByteOrderFeature, and llvm::MCSubtargetInfo::hasFeature().

Referenced by llvm::MCAsmBaseStreamer::addEncodingComment().

◆ usesPerInvokeEHLabels()

bool llvm::MCAsmInfo::usesPerInvokeEHLabels ( ExceptionHandling EH) const
inline

Returns true if the exception tables reference the per-invoke EH labels emitted around invokes.

32-bit x86 SEH and Wasm do not.

Definition at line 714 of file MCAsmInfo.h.

References llvm::None, llvm::Wasm, llvm::WinEH, WinEHEncodingType, and llvm::WinEH::X86.

Referenced by llvm::SelectionDAGBuilder::lowerStartEH().

◆ usesSetToEquateSymbol()

bool llvm::MCAsmInfo::usesSetToEquateSymbol ( ) const
inline

Definition at line 591 of file MCAsmInfo.h.

References UsesSetToEquateSymbol.

◆ usesSunStyleELFSectionSwitchSyntax()

bool llvm::MCAsmInfo::usesSunStyleELFSectionSwitchSyntax ( ) const
inline

Definition at line 561 of file MCAsmInfo.h.

References SunStyleELFSectionSwitchSyntax.

Referenced by printSwitchToSection().

◆ usesWindowsCFI()

bool llvm::MCAsmInfo::usesWindowsCFI ( ) const
inline

Returns true if the object format describes unwind information with Windows SEH unwind opcodes (.seh_* directives, .pdata and .xdata).

Whether a function uses that encoding also depends on the exception model; see MachineFunction::usesWindowsUnwindInfo().

Definition at line 707 of file MCAsmInfo.h.

References llvm::WinEH::Invalid, WinEHEncodingType, and llvm::WinEH::X86.

Referenced by llvm::MCStreamer::emitWinCFIStartProc(), llvm::MCStreamer::EnsureValidWinFrameInfo(), usesCFIForEH(), and llvm::MachineFunction::usesWindowsUnwindInfo().

Member Data Documentation

◆ AlignmentIsInBytes

◆ AllowAdditionalComments

bool llvm::MCAsmInfo::AllowAdditionalComments = true
protected

This indicates whether to allow additional "comment strings" to be lexed as a comment.

Setting this attribute to true, will ensure that C-style line comments (// ..), C-style block comments (/* .. *‍/), and "#" are all treated as comments in addition to the string specified by the CommentString attribute. Default is true.

Definition at line 152 of file MCAsmInfo.h.

Referenced by shouldAllowAdditionalComments(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().

◆ AllowAtAtStartOfIdentifier

bool llvm::MCAsmInfo::AllowAtAtStartOfIdentifier = false
protected

This is true if the assembler allows the "@" character at the start of a string to be lexed as an AsmToken::Identifier.

If the AsmLexer determines that the string can be lexed as a possible comment, setting this option will have no effect, and the string will still be lexed as a comment.

Definition at line 208 of file MCAsmInfo.h.

Referenced by doesAllowAtAtStartOfIdentifier(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().

◆ AllowAtInName

bool llvm::MCAsmInfo::AllowAtInName = false
protected

◆ AllowDollarAtStartOfIdentifier

bool llvm::MCAsmInfo::AllowDollarAtStartOfIdentifier = false
protected

This is true if the assembler allows the "$" character at the start of of a string to be lexed as an AsmToken::Identifier.

If the AsmLexer determines that the string can be lexed as a possible comment, setting this option will have no effect, and the string will still be lexed as a comment.

Definition at line 201 of file MCAsmInfo.h.

Referenced by doesAllowDollarAtStartOfIdentifier(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().

◆ AllowQuestionAtStartOfIdentifier

bool llvm::MCAsmInfo::AllowQuestionAtStartOfIdentifier = false
protected

This is true if the assembler allows the "?" character at the start of of a string to be lexed as an AsmToken::Identifier.

If the AsmLexer determines that the string can be lexed as a possible comment, setting this option will have no effect, and the string will still be lexed as a comment.

Definition at line 194 of file MCAsmInfo.h.

Referenced by doesAllowQuestionAtStartOfIdentifier(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().

◆ AsciiDirective

const char* llvm::MCAsmInfo::AsciiDirective = "\t.ascii\t"
protected

This directive allows emission of an ascii string with the standard C escape characters embedded into it.

If a target doesn't support this, it can be set to null. Defaults to "\t.ascii\t"

Definition at line 245 of file MCAsmInfo.h.

Referenced by getAsciiDirective(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().

◆ AscizDirective

const char* llvm::MCAsmInfo::AscizDirective = "\t.asciz\t"
protected

If not null, this allows for special handling of zero terminated strings on this target.

This is commonly supported as ".asciz". If a target doesn't support this, it can be set to null. Defaults to "\t.asciz\t"

Definition at line 250 of file MCAsmInfo.h.

Referenced by getAscizDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().

◆ AssemblerDialect

◆ AtSpecifierToName

llvm::DenseMap<AtSpecifierKind, StringRef> llvm::MCAsmInfo::AtSpecifierToName
protected

Definition at line 462 of file MCAsmInfo.h.

Referenced by getSpecifierName(), and initializeAtSpecifiers().

◆ AvoidWeakIfComdat

bool llvm::MCAsmInfo::AvoidWeakIfComdat = false
protected

True if we should mark symbols as global instead of weak, for weak*‍/linkonce*, if the symbol has a comdat.

Defaults to false.

Definition at line 350 of file MCAsmInfo.h.

Referenced by avoidWeakIfComdat(), and llvm::MCAsmInfoCOFF::MCAsmInfoCOFF().

◆ BinutilsVersion

std::pair<int, int> llvm::MCAsmInfo::BinutilsVersion = {2, 26}
protected

Definition at line 435 of file MCAsmInfo.h.

Referenced by binutilsIsAtLeast(), MCAsmInfo(), and setBinutilsVersion().

◆ CalleeSaveStackSlotSize

◆ CharacterLiteralSyntax

AsmCharLiteralSyntax llvm::MCAsmInfo::CharacterLiteralSyntax = ACLS_Unknown
protected

Form used for character literals in the assembly syntax.

Useful for producing strings as byte lists. If a target does not use or support this, it shall be set to ACLS_Unknown. Defaults to ACLS_Unknown.

Definition at line 255 of file MCAsmInfo.h.

Referenced by characterLiteralSyntax(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().

◆ CodePointerSize

◆ COMMDirectiveAlignmentIsInBytes

bool llvm::MCAsmInfo::COMMDirectiveAlignmentIsInBytes = true
protected

True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n).

Defaults to true.

Definition at line 307 of file MCAsmInfo.h.

Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getCOMMDirectiveAlignmentIsInBytes(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().

◆ CommentColumn

unsigned llvm::MCAsmInfo::CommentColumn = 40
protected

The column (zero-based) at which asm comments should be printed.

Definition at line 451 of file MCAsmInfo.h.

Referenced by getCommentColumn(), and setCommentColumn().

◆ CommentString

StringRef llvm::MCAsmInfo::CommentString = "#"
protected

This indicates the comment string used by the assembler.

Defaults to "#"

Definition at line 144 of file MCAsmInfo.h.

Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), getCommentString(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM(), llvm::XCoreMCAsmInfo::XCoreMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().

◆ CompInstByteOrderFeature

std::optional<unsigned> llvm::MCAsmInfo::CompInstByteOrderFeature
protected

Feature that indicates mixed-endian byte order.

Definition at line 99 of file MCAsmInfo.h.

Referenced by llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), and usesCompInstByteOrder().

◆ Data16bitsDirective

◆ Data32bitsDirective

◆ Data64bitsDirective

◆ Data8bitsDirective

const char* llvm::MCAsmInfo::Data8bitsDirective = "\t.byte\t"
protected

These directives are used to output some unit of integer data to the current section.

If a data directive is set to null, smaller data directives will be used to emit the large sizes. Defaults to "\t.byte\t", "\t.short\t", "\t.long\t", "\t.quad\t"

Definition at line 261 of file MCAsmInfo.h.

Referenced by getData8bitsDirective(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().

◆ DollarIsPC

bool llvm::MCAsmInfo::DollarIsPC = false
protected

The '$' token, when not referencing an identifier or constant, refers to the current PC.

Defaults to false.

Definition at line 136 of file MCAsmInfo.h.

Referenced by getDollarIsPC(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().

◆ DwarfFDERelSymbolSpec

uint16_t llvm::MCAsmInfo::DwarfFDERelSymbolSpec = 0
protected

The optional specifier to use for the relative FDE symbol references.

Definition at line 400 of file MCAsmInfo.h.

Referenced by getExprForFDESymbol(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), and llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo().

◆ DwarfFDESymbolsUseAbsDiff

bool llvm::MCAsmInfo::DwarfFDESymbolsUseAbsDiff = false
protected

True if DWARF FDE symbol reference relocations should be replaced by an absolute difference.

Definition at line 397 of file MCAsmInfo.h.

Referenced by doDwarfFDESymbolsUseAbsDiff(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().

◆ DwarfPersonalitySymbolsAbsOff

int llvm::MCAsmInfo::DwarfPersonalitySymbolsAbsOff = 0
protected

Non-zero if DWARF personality symbol reference relocations should have a constant addend instead of being PC-relative when a symbol specifier is used to refer to personality symbols.

Darwin-only.

Definition at line 393 of file MCAsmInfo.h.

Referenced by getExprForPersonalitySymbol(), and llvm::X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin().

◆ DwarfPersonalitySymbolSpec

uint16_t llvm::MCAsmInfo::DwarfPersonalitySymbolSpec = 0
protected

The optional specifier to use for the personality symbol references.

Darwin-only.

Definition at line 388 of file MCAsmInfo.h.

Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), getExprForPersonalitySymbol(), and llvm::X86_64MCAsmInfoDarwin::X86_64MCAsmInfoDarwin().

◆ DwarfRegNumForCFI

bool llvm::MCAsmInfo::DwarfRegNumForCFI = false
protected

◆ DwarfSectionOffSpecifierExpr

unsigned llvm::MCAsmInfo::DwarfSectionOffSpecifierExpr = 0
protected

If non-zero, MCSpecifierExpr kind used as base for DWARF-relative exprs.

Otherwise, a regular MCSymbolRefExpr will be used.

Definition at line 423 of file MCAsmInfo.h.

Referenced by getDwarfSectionOffsetExpr(), and llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF().

◆ DwarfUsesRelocationsAcrossSections

bool llvm::MCAsmInfo::DwarfUsesRelocationsAcrossSections = true
protected

True if Dwarf2 output generally uses relocations for references to other .debug_* sections.

Definition at line 384 of file MCAsmInfo.h.

Referenced by doesDwarfUseRelocationsAcrossSections(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::BPFMCAsmInfo::setDwarfUsesRelocationsAcrossSections().

◆ EmitELFStackSection

bool llvm::MCAsmInfo::EmitELFStackSection = false
protected

Whether a section indicating a (non-)executable stack should be emitted.

Used by most ELF platforms.

Definition at line 106 of file MCAsmInfo.h.

Referenced by llvm::BPFMCAsmInfo::BPFMCAsmInfo(), emitELFStackSection(), and llvm::MCAsmInfoELF::MCAsmInfoELF().

◆ EnableDwarfFileDirectoryDefault

bool llvm::MCAsmInfo::EnableDwarfFileDirectoryDefault = true
protected

True if DWARF ‘.file directory’ directive syntax is used by default.

Definition at line 404 of file MCAsmInfo.h.

Referenced by enableDwarfFileDirectoryDefault(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().

◆ ExportedVisibilityAttr

MCSymbolAttr llvm::MCAsmInfo::ExportedVisibilityAttr = MCSA_Exported
protected

This attribute, if not MCSA_Invalid, is used to declare a symbol as having exported visibility.

Defaults to MCSA_Exported.

Definition at line 358 of file MCAsmInfo.h.

Referenced by getExportedVisibilityAttr().

◆ GlobalDirective

const char* llvm::MCAsmInfo::GlobalDirective = "\t.globl\t"
protected

This is the directive used to declare a global entity.

Defaults to ".globl".

Definition at line 296 of file MCAsmInfo.h.

Referenced by getGlobalDirective(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().

◆ HasAddrsigDirective

bool llvm::MCAsmInfo::HasAddrsigDirective = true
protected

True if the target supports the .addrsig directive.

Definition at line 226 of file MCAsmInfo.h.

Referenced by hasAddrsigDirective(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().

◆ HasCOFFAssociativeComdats

bool llvm::MCAsmInfo::HasCOFFAssociativeComdats = false
protected

True if this is a non-GNU COFF target.

The COFF port of the GNU linker doesn't handle associative comdats in the way that we would like to use them.

Definition at line 115 of file MCAsmInfo.h.

Referenced by hasCOFFAssociativeComdats(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and llvm::MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF().

◆ HasCOFFComdatConstants

bool llvm::MCAsmInfo::HasCOFFComdatConstants = false
protected

True if this is a non-GNU COFF target.

For GNU targets, we don't generate constants into comdat sections.

Definition at line 119 of file MCAsmInfo.h.

Referenced by hasCOFFComdatConstants(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and llvm::MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF().

◆ HasDotTypeDotSizeDirective

bool llvm::MCAsmInfo::HasDotTypeDotSizeDirective = true
protected

◆ HasFunctionAlignment

bool llvm::MCAsmInfo::HasFunctionAlignment = true
protected

◆ HasIdentDirective

bool llvm::MCAsmInfo::HasIdentDirective = false
protected

True if the target has a .ident directive, this is true for ELF targets.

Defaults to false.

Definition at line 330 of file MCAsmInfo.h.

Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasIdentDirective(), llvm::MCAsmInfoELF::MCAsmInfoELF(), and llvm::MCAsmInfoWasm::MCAsmInfoWasm().

◆ HasLEB128Directives

bool llvm::MCAsmInfo::HasLEB128Directives = true
protected

True if the target supports LEB128 directives.

Definition at line 220 of file MCAsmInfo.h.

Referenced by hasLEB128Directives(), MCAsmInfo(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().

◆ HasNoDeadStrip

bool llvm::MCAsmInfo::HasNoDeadStrip = false
protected

True if this target supports the MachO .no_dead_strip directive.

Defaults to false.

Definition at line 334 of file MCAsmInfo.h.

Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), hasNoDeadStrip(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::MCAsmInfoWasm::MCAsmInfoWasm().

◆ HasPreferredAlignment

bool llvm::MCAsmInfo::HasPreferredAlignment = false
protected

◆ HasSingleParameterDotFile

◆ HasSubsectionsViaSymbols

bool llvm::MCAsmInfo::HasSubsectionsViaSymbols = false
protected

True if this target has the MachO .subsections_via_symbols directive.

Default is false.

Definition at line 110 of file MCAsmInfo.h.

Referenced by hasSubsectionsViaSymbols(), isMachO(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().

◆ HasWeakDefCanBeHiddenDirective

bool llvm::MCAsmInfo::HasWeakDefCanBeHiddenDirective = false
protected

True if we have a directive to declare a global as being a weak defined symbol that can be hidden (unexported).

Defaults to false.

Definition at line 345 of file MCAsmInfo.h.

Referenced by hasWeakDefCanBeHiddenDirective(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().

◆ HiddenDeclarationVisibilityAttr

MCSymbolAttr llvm::MCAsmInfo::HiddenDeclarationVisibilityAttr = MCSA_Hidden
protected

This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibility.

Defaults to MCSA_Hidden.

Definition at line 362 of file MCAsmInfo.h.

Referenced by llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getHiddenDeclarationVisibilityAttr(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().

◆ HiddenVisibilityAttr

MCSymbolAttr llvm::MCAsmInfo::HiddenVisibilityAttr = MCSA_Hidden
protected

This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility.

Defaults to MCSA_Hidden.

Definition at line 354 of file MCAsmInfo.h.

Referenced by llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getHiddenVisibilityAttr(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().

◆ InitialFrameState

std::vector<MCCFIInstruction> llvm::MCAsmInfo::InitialFrameState
protected

Definition at line 427 of file MCAsmInfo.h.

Referenced by addInitialFrameState(), and getInitialFrameState().

◆ InlineAsmEnd

◆ InlineAsmStart

const char* llvm::MCAsmInfo::InlineAsmStart = "APP"
protected

If these are nonempty, they contain a directive to emit before and after an inline assembly statement.

Defaults to "APP", "NO_APP"

Definition at line 179 of file MCAsmInfo.h.

Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getInlineAsmStart(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().

◆ InternalSymbolPrefix

◆ IsAIX

bool llvm::MCAsmInfo::IsAIX = false
protected

Definition at line 121 of file MCAsmInfo.h.

Referenced by isAIX(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().

◆ IsHLASM

bool llvm::MCAsmInfo::IsHLASM = false
protected

Definition at line 124 of file MCAsmInfo.h.

Referenced by isHLASM(), and llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF().

◆ IsLittleEndian

◆ LabelSuffix

const char* llvm::MCAsmInfo::LabelSuffix = ":"
protected

This is appended to emitted labels. Defaults to ":".

Definition at line 155 of file MCAsmInfo.h.

Referenced by getLabelSuffix().

◆ LCOMMDirectiveAlignmentType

LCOMM::LCOMMType llvm::MCAsmInfo::LCOMMDirectiveAlignmentType = LCOMM::NoAlignment
protected

Describes if the .lcomm directive for the target supports an alignment argument and how it is interpreted.

Defaults to NoAlignment.

Definition at line 311 of file MCAsmInfo.h.

Referenced by getLCOMMDirectiveAlignmentType(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().

◆ LinkerPrivateGlobalPrefix

StringRef llvm::MCAsmInfo::LinkerPrivateGlobalPrefix = ""
protected

This prefix is used for symbols that should be passed through the assembler but be removed by the linker.

This is 'l' on Darwin, currently used for some ObjC metadata. The default of "" meast that for this system a plain private symbol should be used. Defaults to "".

Definition at line 175 of file MCAsmInfo.h.

Referenced by getLinkerPrivateGlobalPrefix(), hasLinkerPrivateGlobalPrefix(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().

◆ MaxInstLength

◆ MinInstAlignment

unsigned llvm::MCAsmInfo::MinInstAlignment = 1
protected

◆ NameToAtSpecifier

llvm::StringMap<AtSpecifierKind> llvm::MCAsmInfo::NameToAtSpecifier
protected

Definition at line 463 of file MCAsmInfo.h.

Referenced by getSpecifierForName(), and initializeAtSpecifiers().

◆ NeedsDwarfSectionOffsetDirective

bool llvm::MCAsmInfo::NeedsDwarfSectionOffsetDirective = false
protected

◆ NeedsLocalForSize

bool llvm::MCAsmInfo::NeedsLocalForSize = false
protected

Definition at line 164 of file MCAsmInfo.h.

Referenced by needsLocalForSize(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().

◆ ParseInlineAsmUsingAsmParser

bool llvm::MCAsmInfo::ParseInlineAsmUsingAsmParser = false
protected

Use AsmParser to parse inlineAsm when UseIntegratedAssembler is not set.

Definition at line 445 of file MCAsmInfo.h.

Referenced by llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), parseInlineAsmUsingAsmParser(), and setParseInlineAsmUsingAsmParser().

◆ PPCUseFullRegisterNames

bool llvm::MCAsmInfo::PPCUseFullRegisterNames = false
protected

True if full register names are printed.

Definition at line 223 of file MCAsmInfo.h.

Referenced by setFullRegisterNames(), and useFullRegisterNames().

◆ PreserveAsmComments

bool llvm::MCAsmInfo::PreserveAsmComments = true
protected

Preserve Comments in assembly.

Definition at line 448 of file MCAsmInfo.h.

Referenced by preserveAsmComments(), and setPreserveAsmComments().

◆ PrintSwitchToSectionFn

◆ ProtectedVisibilityAttr

MCSymbolAttr llvm::MCAsmInfo::ProtectedVisibilityAttr = MCSA_Protected
protected

This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.

Defaults to MCSA_Protected

Definition at line 366 of file MCAsmInfo.h.

Referenced by llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getProtectedVisibilityAttr(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().

◆ ReservedIdentifiers

llvm::DenseSet<llvm::CachedHashStringRef> llvm::MCAsmInfo::ReservedIdentifiers
protected

Definition at line 468 of file MCAsmInfo.h.

Referenced by getReservedIdentifiers(), and getReservedIdentifiers().

◆ SectionDirectives

◆ SeparatorString

const char* llvm::MCAsmInfo::SeparatorString = ";"
protected

◆ SetDirectiveSuppressesReloc

bool llvm::MCAsmInfo::SetDirectiveSuppressesReloc = false
protected

True if the expression .long f - g uses a relocation but it can be suppressed by writing a = f - g .long a.

Definition at line 303 of file MCAsmInfo.h.

Referenced by doesSetDirectiveSuppressReloc(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().

◆ SpecifierExprEvaluateFn

◆ SpecifierExprPrintFn

◆ StackGrowsUp

bool llvm::MCAsmInfo::StackGrowsUp = false
protected

True if target stack grow up. Default is false.

Definition at line 102 of file MCAsmInfo.h.

Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), and isStackGrowthDirectionUp().

◆ SunStyleELFSectionSwitchSyntax

bool llvm::MCAsmInfo::SunStyleELFSectionSwitchSyntax = false
protected

This is true if this target uses "Sun Style" syntax for section switching ("#alloc,#write" etc) instead of the normal ELF syntax (,"a,w") in .section directives.

Defaults to false.

Definition at line 272 of file MCAsmInfo.h.

Referenced by usesSunStyleELFSectionSwitchSyntax().

◆ SupportsDebugInformation

bool llvm::MCAsmInfo::SupportsDebugInformation = false
protected

True if target supports emission of debugging information.

Defaults to false.

Definition at line 372 of file MCAsmInfo.h.

Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), doesSupportDebugInformation(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::XCoreMCAsmInfo::XCoreMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().

◆ SupportsExtendedDwarfLocDirective

bool llvm::MCAsmInfo::SupportsExtendedDwarfLocDirective = true
protected

True if the target supports flags in ".loc" directive, false if only location is allowed.

Definition at line 419 of file MCAsmInfo.h.

Referenced by MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and supportsExtendedDwarfLocDirective().

◆ SupportsQuotedNames

bool llvm::MCAsmInfo::SupportsQuotedNames = true
protected

If this is true, symbol names with invalid characters will be printed in quotes.

Definition at line 212 of file MCAsmInfo.h.

Referenced by llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and supportsNameQuoting().

◆ SupportsSignedData

bool llvm::MCAsmInfo::SupportsSignedData = true
protected

True if data directives support signed values.

Definition at line 267 of file MCAsmInfo.h.

Referenced by llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and supportsSignedData().

◆ TargetOptions

const MCTargetOptions& llvm::MCAsmInfo::TargetOptions
protected

◆ TextAlignFillValue

unsigned llvm::MCAsmInfo::TextAlignFillValue = 0
protected

If non-zero, this is used to fill the executable space created as the result of a alignment directive.

Defaults to 0

Definition at line 290 of file MCAsmInfo.h.

Referenced by getTextAlignFillValue().

◆ UseAssignmentForEHBegin

bool llvm::MCAsmInfo::UseAssignmentForEHBegin = false
protected

◆ UseAtForSpecifier

bool llvm::MCAsmInfo::UseAtForSpecifier = false
protected

◆ UseDataRegionDirectives

bool llvm::MCAsmInfo::UseDataRegionDirectives = false
protected

◆ UseIntegratedAssembler

bool llvm::MCAsmInfo::UseIntegratedAssembler = true
protected

Should we use the integrated assembler?

The integrated assembler should be enabled by default (by the constructors) when failing to parse a valid piece of assembly (inline or otherwise) is considered a bug. It may then be overridden after construction (see CodeGenTargetMachineImpl::initAsmInfo()).

Definition at line 442 of file MCAsmInfo.h.

Referenced by llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), setUseIntegratedAssembler(), useIntegratedAssembler(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().

◆ UseLogicalShr

bool llvm::MCAsmInfo::UseLogicalShr = true
protected

True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather than arithmetic.

Definition at line 455 of file MCAsmInfo.h.

Referenced by llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and shouldUseLogicalShr().

◆ UseMotorolaIntegers

bool llvm::MCAsmInfo::UseMotorolaIntegers = false
protected

◆ UseParensForSpecifier

bool llvm::MCAsmInfo::UseParensForSpecifier = false
protected

(ARM-specific) Uses parens for relocation specifier in data directives, e.g.

.word foo(got).

Definition at line 415 of file MCAsmInfo.h.

Referenced by llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), and useParensForSpecifier().

◆ UsesCFIWithoutEH

bool llvm::MCAsmInfo::UsesCFIWithoutEH = false
protected

True if target uses CFI unwind information for other purposes than EH (debugging / sanitizers) when the exception model is ExceptionHandling::None.

Definition at line 377 of file MCAsmInfo.h.

Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), and usesCFIWithoutEH().

◆ UsesSetToEquateSymbol

bool llvm::MCAsmInfo::UsesSetToEquateSymbol = false
protected

◆ WeakDirective

const char* llvm::MCAsmInfo::WeakDirective = "\t.weak\t"
protected

Used to declare a global as being a weak symbol. Defaults to ".weak".

Definition at line 337 of file MCAsmInfo.h.

Referenced by getWeakDirective(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().

◆ WeakRefDirective

const char* llvm::MCAsmInfo::WeakRefDirective = nullptr
protected

◆ WinEHEncodingType

◆ ZeroDirective


The documentation for this class was generated from the following files: