|
LLVM 24.0.0git
|
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"
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. | |
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 |
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.
Type for at specifiers. Currently, 16 bits is enough.
Definition at line 80 of file MCAsmInfo.h.
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.
|
explicit |
Definition at line 28 of file MCAsmInfo.cpp.
References BinutilsVersion, llvm::getMCCLOptions(), HasLEB128Directives, Options, SupportsExtendedDwarfLocDirective, TargetOptions, and llvm::valueOr().
Referenced by MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), llvm::MCAsmInfoWasm::MCAsmInfoWasm(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), operator=(), llvm::MCAsmInfoDarwin::printSwitchToSectionImpl(), and llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo().
|
default |
References MCAsmInfo().
| void MCAsmInfo::addInitialFrameState | ( | const MCCFIInstruction & | Inst | ) |
Definition at line 50 of file MCAsmInfo.cpp.
References InitialFrameState.
Referenced by createAArch64MCAsmInfo(), createARCMCAsmInfo(), createARMMCAsmInfo(), createCSKYMCAsmInfo(), createHexagonMCAsmInfo(), createLoongArchMCAsmInfo(), createM68kMCAsmInfo(), createMipsMCAsmInfo(), createMSP430MCAsmInfo(), createPPCMCAsmInfo(), createRISCVMCAsmInfo(), createSparcMCAsmInfo(), createSparcV9MCAsmInfo(), createSystemZMCAsmInfo(), createVEMCAsmInfo(), createX86MCAsmInfo(), and createXCoreMCAsmInfo().
|
inline |
Definition at line 673 of file MCAsmInfo.h.
References AvoidWeakIfComdat.
|
inline |
Definition at line 761 of file MCAsmInfo.h.
References BinutilsVersion.
Referenced by llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo().
|
inline |
Definition at line 641 of file MCAsmInfo.h.
References CharacterLiteralSyntax.
|
inline |
Definition at line 731 of file MCAsmInfo.h.
References DwarfFDESymbolsUseAbsDiff.
Referenced by emitFDESymbol().
|
inline |
Definition at line 619 of file MCAsmInfo.h.
References AllowAtAtStartOfIdentifier.
|
inline |
Definition at line 614 of file MCAsmInfo.h.
References AllowAtInName.
Referenced by isAcceptableChar().
|
inline |
Definition at line 622 of file MCAsmInfo.h.
References AllowDollarAtStartOfIdentifier.
|
inline |
Definition at line 616 of file MCAsmInfo.h.
References AllowQuestionAtStartOfIdentifier.
|
inline |
Definition at line 727 of file MCAsmInfo.h.
References DwarfUsesRelocationsAcrossSections.
Referenced by llvm::MCGenDwarfInfo::Emit().
|
inline |
Definition at line 648 of file MCAsmInfo.h.
References SetDirectiveSuppressesReloc.
Referenced by llvm::MCStreamer::emitAbsoluteSymbolDiff().
|
inline |
Definition at line 627 of file MCAsmInfo.h.
References UseDataRegionDirectives.
|
inline |
Definition at line 687 of file MCAsmInfo.h.
References SupportsDebugInformation.
|
inline |
Definition at line 512 of file MCAsmInfo.h.
References EmitELFStackSection.
|
inline |
Definition at line 739 of file MCAsmInfo.h.
References EnableDwarfFileDirectoryDefault.
| bool MCAsmInfo::evaluateAsRelocatableImpl | ( | const MCSpecifierExpr & | E, |
| MCValue & | Res, | ||
| const MCAssembler * | Asm ) const |
Definition at line 180 of file MCAsmInfo.cpp.
References llvm::MCValue::getSubSym(), llvm::MCValue::setSpecifier(), and SpecifierExprEvaluateFn.
|
inline |
Definition at line 644 of file MCAsmInfo.h.
References AlignmentIsInBytes.
Definition at line 639 of file MCAsmInfo.h.
References AsciiDirective.
Definition at line 640 of file MCAsmInfo.h.
References AscizDirective.
| unsigned MCAsmInfo::getAsmMacroMaxNestingDepth | ( | ) | const |
Definition at line 46 of file MCAsmInfo.cpp.
References llvm::getMCCLOptions(), and TargetOptions.
|
inline |
Definition at line 608 of file MCAsmInfo.h.
References AssemblerDialect.
Referenced by LLVMSetDisasmOptions(), llvm::logicalview::LVBinaryReader::loadGenericTargetInfo(), printFormattedRegName(), and llvm::X86MCExpr::printImpl().
|
inline |
Get the callee-saved register stack slot size in bytes.
Definition at line 496 of file MCAsmInfo.h.
References CalleeSaveStackSlotSize.
Referenced by getDataAlignmentFactor().
|
inline |
Get the code pointer size in bytes.
Definition at line 492 of file MCAsmInfo.h.
References CodePointerSize.
Referenced by llvm::MCDwarfLineTableHeader::Emit(), llvm::MCDwarfFrameEmitter::emit(), llvm::DwarfDebug::emitDebugLocValue(), llvm::MCObjectStreamer::emitDwarfLineEndEntry(), EmitGenDwarfAranges(), EmitGenDwarfInfo(), emitGenDwarfRanges(), llvm::mcdwarf::emitListsTableHeaderStart(), llvm::MCDwarfLineTable::emitOne(), getSizeForEncoding(), and llvm::RISCVAsmBackend::relaxDwarfLineAddr().
|
inline |
Definition at line 652 of file MCAsmInfo.h.
References COMMDirectiveAlignmentIsInBytes.
|
inline |
|
inline |
Definition at line 587 of file MCAsmInfo.h.
References CommentString.
Referenced by emitComments(), getGNUBinOpPrecedence(), llvm::HexagonInstrInfo::getInlineAsmLength(), isAsmComment(), printSwitchToSection(), and printSwitchToSection().
Definition at line 519 of file MCAsmInfo.h.
References Data16bitsDirective.
Definition at line 520 of file MCAsmInfo.h.
References Data32bitsDirective.
Definition at line 521 of file MCAsmInfo.h.
References Data64bitsDirective.
Definition at line 518 of file MCAsmInfo.h.
References Data8bitsDirective.
Referenced by llvm::MCTargetStreamer::emitRawBytes(), and llvm::NVPTXTargetStreamer::emitRawBytes().
|
inline |
Definition at line 581 of file MCAsmInfo.h.
References DollarIsPC.
| 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().
|
inline |
Definition at line 677 of file MCAsmInfo.h.
References ExportedVisibilityAttr.
| const MCExpr * MCAsmInfo::getExprForFDESymbol | ( | const MCSymbol * | Sym, |
| unsigned | Encoding, | ||
| MCStreamer & | Streamer ) const |
Definition at line 76 of file MCAsmInfo.cpp.
References assert(), llvm::Context, llvm::MCSpecifierExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::dwarf::DW_EH_PE_pcrel, llvm::dwarf::DW_EH_PE_sdata4, DwarfFDERelSymbolSpec, and Streamer.
Referenced by emitFDESymbol(), and getExprForPersonalitySymbol().
| const MCExpr * MCAsmInfo::getExprForPersonalitySymbol | ( | const MCSymbol * | Sym, |
| unsigned | Encoding, | ||
| MCStreamer & | Streamer ) const |
Definition at line 55 of file MCAsmInfo.cpp.
References llvm::Context, llvm::MCConstantExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MCBinaryExpr::createSub(), DwarfPersonalitySymbolsAbsOff, DwarfPersonalitySymbolSpec, getExprForFDESymbol(), llvm::Off, and Streamer.
Referenced by EmitPersonality().
Definition at line 646 of file MCAsmInfo.h.
References GlobalDirective.
|
inline |
Definition at line 679 of file MCAsmInfo.h.
References HiddenDeclarationVisibilityAttr.
|
inline |
Definition at line 675 of file MCAsmInfo.h.
References HiddenVisibilityAttr.
|
inline |
Definition at line 745 of file MCAsmInfo.h.
References InitialFrameState.
Referenced by llvm::MCStreamer::emitCFIStartProc().
Definition at line 607 of file MCAsmInfo.h.
References InlineAsmEnd.
Definition at line 606 of file MCAsmInfo.h.
References InlineAsmStart.
|
inline |
Definition at line 594 of file MCAsmInfo.h.
References InternalSymbolPrefix.
Referenced by getLinkerPrivateGlobalPrefix(), and llvm::MCResourceInfo::getSymbol().
Definition at line 589 of file MCAsmInfo.h.
References LabelSuffix.
|
inline |
Definition at line 656 of file MCAsmInfo.h.
References LCOMMDirectiveAlignmentType.
|
inline |
Definition at line 600 of file MCAsmInfo.h.
References getInternalSymbolPrefix(), hasLinkerPrivateGlobalPrefix(), and LinkerPrivateGlobalPrefix.
|
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().
|
inline |
Definition at line 580 of file MCAsmInfo.h.
References MinInstAlignment.
Referenced by llvm::MCDwarfLineTableHeader::Emit().
|
inline |
Definition at line 611 of file MCAsmInfo.h.
References AssemblerDialect, and TargetOptions.
Referenced by llvm::CodeGenTargetMachineImpl::createMCStreamer(), and createX86MCAsmInfo().
|
inline |
Definition at line 683 of file MCAsmInfo.h.
References ProtectedVisibilityAttr.
|
inline |
Definition at line 543 of file MCAsmInfo.h.
References ReservedIdentifiers.
Referenced by isValidUnquotedName(), and populateReservedIdentifiers().
|
inline |
Definition at line 547 of file MCAsmInfo.h.
References ReservedIdentifiers.
Definition at line 582 of file MCAsmInfo.h.
References SeparatorString.
Referenced by llvm::HexagonInstrInfo::getInlineAsmLength(), and llvm::TargetInstrInfo::getInlineAsmLength().
Definition at line 163 of file MCAsmInfo.cpp.
References NameToAtSpecifier.
Definition at line 156 of file MCAsmInfo.cpp.
References assert(), and AtSpecifierToName.
Referenced by llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().
|
inline |
Definition at line 487 of file MCAsmInfo.h.
References TargetOptions.
|
inline |
Definition at line 645 of file MCAsmInfo.h.
References TextAlignFillValue.
Definition at line 666 of file MCAsmInfo.h.
References WeakDirective.
Definition at line 667 of file MCAsmInfo.h.
References WeakRefDirective.
|
inline |
Definition at line 689 of file MCAsmInfo.h.
References WinEHEncodingType.
Definition at line 638 of file MCAsmInfo.h.
References ZeroDirective.
|
inline |
Definition at line 636 of file MCAsmInfo.h.
References HasAddrsigDirective.
|
inline |
Definition at line 574 of file MCAsmInfo.h.
References HasCOFFAssociativeComdats.
|
inline |
Definition at line 575 of file MCAsmInfo.h.
References HasCOFFComdatConstants.
|
inline |
Definition at line 662 of file MCAsmInfo.h.
References HasDotTypeDotSizeDirective.
|
inline |
Definition at line 660 of file MCAsmInfo.h.
References HasFunctionAlignment.
|
inline |
Definition at line 664 of file MCAsmInfo.h.
References HasIdentDirective.
|
inline |
Definition at line 631 of file MCAsmInfo.h.
References HasLEB128Directives.
|
inline |
Definition at line 596 of file MCAsmInfo.h.
References LinkerPrivateGlobalPrefix.
Referenced by getLinkerPrivateGlobalPrefix().
|
inline |
Definition at line 665 of file MCAsmInfo.h.
References HasNoDeadStrip.
|
inline |
Definition at line 661 of file MCAsmInfo.h.
References HasPreferredAlignment.
|
inline |
Definition at line 663 of file MCAsmInfo.h.
References HasSingleParameterDotFile.
|
inline |
Definition at line 514 of file MCAsmInfo.h.
References HasSubsectionsViaSymbols.
|
inline |
Definition at line 669 of file MCAsmInfo.h.
References HasWeakDefCanBeHiddenDirective.
Referenced by canBeHidden().
|
protected |
Definition at line 143 of file MCAsmInfo.cpp.
References assert(), AtSpecifierToName, NameToAtSpecifier, and UseAtForSpecifier.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
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().
|
inline |
|
inline |
Definition at line 572 of file MCAsmInfo.h.
References IsHLASM.
Referenced by EmitInlineAsmStr(), and isAcceptableChar().
|
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().
|
inline |
Definition at line 573 of file MCAsmInfo.h.
References HasSubsectionsViaSymbols.
Definition at line 551 of file MCAsmInfo.h.
References SectionDirectives.
Referenced by printSwitchToSection(), printSwitchToSection(), and printSwitchToSection().
|
inline |
True if target stack grow up.
Definition at line 510 of file MCAsmInfo.h.
References StackGrowsUp.
Referenced by getDataAlignmentFactor().
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().
|
inline |
Definition at line 565 of file MCAsmInfo.h.
References NeedsDwarfSectionOffsetDirective.
Referenced by llvm::MCStreamer::emitDwarfSectionOffset().
|
inline |
Definition at line 593 of file MCAsmInfo.h.
References NeedsLocalForSize.
References MCAsmInfo().
|
inline |
Return true if target want to use AsmParser to parse inlineasm.
Definition at line 757 of file MCAsmInfo.h.
References ParseInlineAsmUsingAsmParser.
|
inline |
Return true if assembly (inline or otherwise) should be parsed.
Definition at line 774 of file MCAsmInfo.h.
References PreserveAsmComments.
| 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().
|
inline |
Definition at line 555 of file MCAsmInfo.h.
References PrintSwitchToSectionFn, and T.
Referenced by llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MCAsmInfoWasm::MCAsmInfoWasm(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().
|
inline |
Definition at line 615 of file MCAsmInfo.h.
References AllowAtInName, and V.
|
inline |
Definition at line 749 of file MCAsmInfo.h.
References BinutilsVersion.
|
inline |
Definition at line 585 of file MCAsmInfo.h.
References CommentColumn.
|
inline |
Definition at line 634 of file MCAsmInfo.h.
References PPCUseFullRegisterNames, and V.
Referenced by llvm::CodeGenTargetMachineImpl::initAsmInfo().
|
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().
|
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().
|
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().
|
inline |
Definition at line 588 of file MCAsmInfo.h.
References AllowAdditionalComments.
|
inline |
Definition at line 779 of file MCAsmInfo.h.
References UseLogicalShr.
|
inline |
Definition at line 781 of file MCAsmInfo.h.
References UseMotorolaIntegers.
|
inline |
Definition at line 735 of file MCAsmInfo.h.
References SupportsExtendedDwarfLocDirective.
|
inline |
Definition at line 625 of file MCAsmInfo.h.
References SupportsQuotedNames.
Referenced by llvm::MCSymbol::print().
|
inline |
Definition at line 522 of file MCAsmInfo.h.
References SupportsSignedData.
|
inline |
Definition at line 592 of file MCAsmInfo.h.
References UseAssignmentForEHBegin.
|
inline |
Definition at line 733 of file MCAsmInfo.h.
References UseAtForSpecifier.
|
inline |
Definition at line 732 of file MCAsmInfo.h.
References DwarfRegNumForCFI.
|
inline |
Definition at line 633 of file MCAsmInfo.h.
References PPCUseFullRegisterNames.
|
inline |
Return true if assembly (inline or otherwise) should be parsed.
Definition at line 754 of file MCAsmInfo.h.
References UseIntegratedAssembler.
|
inline |
Definition at line 734 of file MCAsmInfo.h.
References UseParensForSpecifier.
|
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().
|
inline |
Definition at line 691 of file MCAsmInfo.h.
References llvm::None, and UsesCFIWithoutEH.
| 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().
|
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().
|
inline |
Definition at line 591 of file MCAsmInfo.h.
References UsesSetToEquateSymbol.
|
inline |
Definition at line 561 of file MCAsmInfo.h.
References SunStyleELFSectionSwitchSyntax.
Referenced by printSwitchToSection().
|
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().
|
protected |
If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number of bytes to align to.
Otherwise, it emits ".align log2(N)", e.g. 3 to align to an 8 byte boundary. Defaults to true.
Definition at line 286 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), getAlignmentIsInBytes(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
|
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().
|
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().
|
protected |
This is true if the assembler allows @ characters in symbol names.
Defaults to false.
Definition at line 187 of file MCAsmInfo.h.
Referenced by llvm::ARCMCAsmInfo::ARCMCAsmInfo(), doesAllowAtInName(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), setAllowAtInName(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
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().
|
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().
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().
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().
|
protected |
Which dialect of an assembler variant to use. Defaults to 0.
Definition at line 183 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), getAssemblerDialect(), getOutputAssemblerDialect(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
Definition at line 462 of file MCAsmInfo.h.
Referenced by getSpecifierName(), and initializeAtSpecifiers().
|
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().
|
protected |
Definition at line 435 of file MCAsmInfo.h.
Referenced by binutilsIsAtLeast(), MCAsmInfo(), and setBinutilsVersion().
|
protected |
Size of the stack slot reserved for callee-saved registers, in bytes.
Default is same as pointer size.
Definition at line 92 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), getCalleeSaveStackSlotSize(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
|
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().
|
protected |
Code pointer size in bytes. Default is 4.
Definition at line 88 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getCodePointerSize(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
|
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().
|
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().
|
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().
|
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().
Definition at line 262 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getData16bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
Definition at line 263 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getData32bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
Definition at line 264 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getData64bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::VEELFMCAsmInfo::VEELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::XCoreMCAsmInfo::XCoreMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
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().
|
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().
|
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().
|
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().
|
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().
|
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().
|
protected |
True if dwarf register numbers are printed instead of symbolic register names in .cfi_* directives.
Defaults to false.
Definition at line 408 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARCMCAsmInfo::ARCMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), useDwarfRegNumForCFI(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
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().
|
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().
|
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().
|
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().
|
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().
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().
|
protected |
True if the target supports the .addrsig directive.
Definition at line 226 of file MCAsmInfo.h.
Referenced by hasAddrsigDirective(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
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().
|
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().
|
protected |
True if the target has .type and .size directives, this is true for most ELF targets.
Defaults to true.
Definition at line 322 of file MCAsmInfo.h.
Referenced by llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasDotTypeDotSizeDirective(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo().
|
protected |
Definition at line 315 of file MCAsmInfo.h.
Referenced by hasFunctionAlignment(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo().
|
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().
|
protected |
True if the target supports LEB128 directives.
Definition at line 220 of file MCAsmInfo.h.
Referenced by hasLEB128Directives(), MCAsmInfo(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().
|
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().
|
protected |
Definition at line 318 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), hasPreferredAlignment(), and llvm::MCAsmInfoELF::MCAsmInfoELF().
|
protected |
True if the target has a single parameter .file directive, this is true for ELF targets.
Defaults to true.
Definition at line 326 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasSingleParameterDotFile(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo().
|
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().
|
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().
|
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().
|
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().
|
protected |
Definition at line 427 of file MCAsmInfo.h.
Referenced by addInitialFrameState(), and getInitialFrameState().
Definition at line 180 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getInlineAsmEnd(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
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().
|
protected |
For internal use by compiler and assembler, not meant to be visible externally.
They are usually not emitted to the symbol table in the object file. This is also used for labels for basic blocks.
Definition at line 169 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getInternalSymbolPrefix(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), llvm::MCAsmInfoWasm::MCAsmInfoWasm(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().
|
protected |
Definition at line 121 of file MCAsmInfo.h.
Referenced by isAIX(), and llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF().
|
protected |
Definition at line 124 of file MCAsmInfo.h.
Referenced by isHLASM(), and llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF().
|
protected |
True if target is little endian. Default is true.
Definition at line 95 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), isLittleEndian(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), and llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF().
This is appended to emitted labels. Defaults to ":".
Definition at line 155 of file MCAsmInfo.h.
Referenced by getLabelSuffix().
|
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().
|
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().
|
protected |
This is the maximum possible length of an instruction, which is needed to compute the size of an inline asm.
Defaults to 4.
Definition at line 128 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getMaxInstLength(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().
|
protected |
Every possible instruction length is a multiple of this value.
Factored out in .debug_frame and .debug_line. Defaults to 1.
Definition at line 132 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getMinInstAlignment(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::SPIRVMCAsmInfo::SPIRVMCAsmInfo(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().
|
protected |
Definition at line 463 of file MCAsmInfo.h.
Referenced by getSpecifierForName(), and initializeAtSpecifiers().
|
protected |
Definition at line 274 of file MCAsmInfo.h.
Referenced by llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and needsDwarfSectionOffsetDirective().
|
protected |
Definition at line 164 of file MCAsmInfo.h.
Referenced by needsLocalForSize(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
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().
|
protected |
True if full register names are printed.
Definition at line 223 of file MCAsmInfo.h.
Referenced by setFullRegisterNames(), and useFullRegisterNames().
|
protected |
Preserve Comments in assembly.
Definition at line 448 of file MCAsmInfo.h.
Referenced by preserveAsmComments(), and setPreserveAsmComments().
|
protected |
Definition at line 276 of file MCAsmInfo.h.
Referenced by llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), llvm::MCAsmInfoWasm::MCAsmInfoWasm(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), and printSwitchToSection().
|
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().
|
protected |
Definition at line 468 of file MCAsmInfo.h.
Referenced by getReservedIdentifiers(), and getReservedIdentifiers().
|
protected |
Sections whose name also is supported as a directive without an explicit ".section" directive.
not contained => .section .text,#alloc,#execinstr contained => .text
Definition at line 475 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), isSectionDirective(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
This string, if specified, is used to separate instructions from each other when on the same line.
Defaults to ';'
Definition at line 140 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), getSeparatorString(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), and llvm::X86MCAsmInfoMicrosoftMASM::X86MCAsmInfoMicrosoftMASM().
|
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().
|
protected |
Definition at line 231 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), evaluateAsRelocatableImpl(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().
|
protected |
Definition at line 228 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::CSKYMCAsmInfo::CSKYMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), printExpr(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and llvm::VEELFMCAsmInfo::VEELFMCAsmInfo().
|
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().
|
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().
|
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().
|
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().
|
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().
|
protected |
True if data directives support signed values.
Definition at line 267 of file MCAsmInfo.h.
Referenced by llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and supportsSignedData().
|
protected |
Definition at line 477 of file MCAsmInfo.h.
Referenced by getAsmMacroMaxNestingDepth(), getOutputAssemblerDialect(), getTargetOptions(), and MCAsmInfo().
|
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().
|
protected |
Definition at line 161 of file MCAsmInfo.h.
Referenced by llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), and useAssignmentForEHBegin().
|
protected |
True if target uses @ (expr@specifier) for relocation specifiers.
Definition at line 411 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), initializeAtSpecifiers(), and useAtForSpecifier().
|
protected |
This is true if data region markers should be printed as ".data_region/.end_data_region" directives.
If false, use "$d/$a" labels instead.
Definition at line 217 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), doesSupportDataRegionDirectives(), llvm::RISCVMCAsmInfoDarwin::RISCVMCAsmInfoDarwin(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().
|
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().
|
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().
|
protected |
Definition at line 458 of file MCAsmInfo.h.
Referenced by llvm::M68kELFMCAsmInfo::M68kELFMCAsmInfo(), and shouldUseMotorolaIntegers().
|
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().
|
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().
|
protected |
Use .set instead of = to equate a symbol to an expression.
Definition at line 158 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::PPCXCOFFMCAsmInfo::PPCXCOFFMCAsmInfo(), llvm::SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(), and usesSetToEquateSymbol().
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().
This directive, if non-null, is used to declare a global as being a weak undefined symbol.
Defaults to nullptr.
Definition at line 341 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getWeakRefDirective(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), and llvm::MCAsmInfoWasm::MCAsmInfoWasm().
|
protected |
Windows exception handling data (.pdata) encoding. Defaults to Invalid.
Definition at line 380 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoGNUCOFF::AArch64MCAsmInfoGNUCOFF(), llvm::AArch64MCAsmInfoMicrosoftCOFF::AArch64MCAsmInfoMicrosoftCOFF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), getWinEHEncodingType(), llvm::MipsCOFFMCAsmInfo::MipsCOFFMCAsmInfo(), usesPerInvokeEHLabels(), usesWindowsCFI(), and llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF().
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.
Common cases are "\t.zero\t" and "\t.space\t". Defaults to "\t.zero\t"
Definition at line 240 of file MCAsmInfo.h.
Referenced by llvm::ARCMCAsmInfo::ARCMCAsmInfo(), getZeroDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LoongArchMCAsmInfo::LoongArchMCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MCAsmInfoGOFF::MCAsmInfoGOFF(), llvm::MCAsmInfoXCOFF::MCAsmInfoXCOFF(), llvm::MipsELFMCAsmInfo::MipsELFMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::XCoreMCAsmInfo::XCoreMCAsmInfo(), and llvm::XtensaMCAsmInfo::XtensaMCAsmInfo().