|
LLVM
4.0.0
|
This class is intended to be used as a base class for asm properties and features specific to the target. More...
#include <MCAsmInfo.h>
Protected Attributes | |
| unsigned | PointerSize |
| Pointer size in bytes. Default is 4. More... | |
| unsigned | CalleeSaveStackSlotSize |
| Size of the stack slot reserved for callee-saved registers, in bytes. More... | |
| bool | IsLittleEndian |
| True if target is little endian. Default is true. More... | |
| bool | StackGrowsUp |
| True if target stack grow up. Default is false. More... | |
| bool | HasSubsectionsViaSymbols |
| True if this target has the MachO .subsections_via_symbols directive. More... | |
| bool | HasMachoZeroFillDirective |
| True if this is a MachO target that supports the macho-specific .zerofill directive for emitting BSS Symbols. More... | |
| bool | HasMachoTBSSDirective |
| True if this is a MachO target that supports the macho-specific .tbss directive for emitting thread local BSS Symbols. More... | |
| unsigned | MaxInstLength |
| This is the maximum possible length of an instruction, which is needed to compute the size of an inline asm. More... | |
| unsigned | MinInstAlignment |
| Every possible instruction length is a multiple of this value. More... | |
| bool | DollarIsPC |
| The '$' token, when not referencing an identifier or constant, refers to the current PC. More... | |
| const char * | SeparatorString |
| This string, if specified, is used to separate instructions from each other when on the same line. More... | |
| StringRef | CommentString |
| This indicates the comment character used by the assembler. More... | |
| const char * | LabelSuffix |
| This is appended to emitted labels. Defaults to ":". More... | |
| bool | UseAssignmentForEHBegin |
| bool | NeedsLocalForSize |
| StringRef | PrivateGlobalPrefix |
| This prefix is used for globals like constant pool entries that are completely private to the .s file and should not have names in the .o file. More... | |
| StringRef | PrivateLabelPrefix |
| This prefix is used for labels for basic blocks. More... | |
| StringRef | LinkerPrivateGlobalPrefix |
| This prefix is used for symbols that should be passed through the assembler but be removed by the linker. More... | |
| const char * | InlineAsmStart |
| If these are nonempty, they contain a directive to emit before and after an inline assembly statement. More... | |
| const char * | InlineAsmEnd |
| const char * | Code16Directive |
| These are assembly directives that tells the assembler to interpret the following instructions differently. More... | |
| const char * | Code32Directive |
| const char * | Code64Directive |
| unsigned | AssemblerDialect |
| Which dialect of an assembler variant to use. Defaults to 0. More... | |
| bool | AllowAtInName |
| This is true if the assembler allows @ characters in symbol names. More... | |
| bool | SupportsQuotedNames |
| If this is true, symbol names with invalid characters will be printed in quotes. More... | |
| bool | UseDataRegionDirectives |
| This is true if data region markers should be printed as ".data_region/.end_data_region" directives. More... | |
| const char * | ZeroDirective |
| This should be set to the directive used to get some number of zero bytes emitted to the current section. More... | |
| const char * | AsciiDirective |
| This directive allows emission of an ascii string with the standard C escape characters embedded into it. More... | |
| const char * | AscizDirective |
| If not null, this allows for special handling of zero terminated strings on this target. More... | |
| const char * | Data8bitsDirective |
| These directives are used to output some unit of integer data to the current section. More... | |
| const char * | Data16bitsDirective |
| const char * | Data32bitsDirective |
| const char * | Data64bitsDirective |
| const char * | GPRel64Directive |
| If non-null, a directive that is used to emit a word which should be relocated as a 64-bit GP-relative offset, e.g. More... | |
| const char * | GPRel32Directive |
| If non-null, a directive that is used to emit a word which should be relocated as a 32-bit GP-relative offset, e.g. More... | |
| const char * | DTPRel32Directive = nullptr |
| If non-null, directives that are used to emit a word/dword which should be relocated as a 32/64-bit DTP/TP-relative offset, e.g. More... | |
| const char * | DTPRel64Directive = nullptr |
| const char * | TPRel32Directive = nullptr |
| const char * | TPRel64Directive = nullptr |
| bool | SunStyleELFSectionSwitchSyntax |
| 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. More... | |
| bool | UsesELFSectionDirectiveForBSS |
| This is true if this target uses ELF '.section' directive before the '.bss' one. More... | |
| bool | NeedsDwarfSectionOffsetDirective |
| bool | AlignmentIsInBytes |
| If this is true (the default) then the asmprinter emits ".align N" directives, where N is the number of bytes to align to. More... | |
| unsigned | TextAlignFillValue |
| If non-zero, this is used to fill the executable space created as the result of a alignment directive. More... | |
| const char * | GlobalDirective |
| This is the directive used to declare a global entity. More... | |
| bool | SetDirectiveSuppressesReloc |
| True if the expression .long f - g uses a relocation but it can be suppressed by writing a = f - g .long a. More... | |
| bool | HasAggressiveSymbolFolding |
| False if the assembler requires that we use. More... | |
| bool | COMMDirectiveAlignmentIsInBytes |
| True is .comm's and .lcomms optional alignment is to be specified in bytes instead of log2(n). More... | |
| LCOMM::LCOMMType | LCOMMDirectiveAlignmentType |
| Describes if the .lcomm directive for the target supports an alignment argument and how it is interpreted. More... | |
| bool | HasFunctionAlignment |
| bool | HasDotTypeDotSizeDirective |
| True if the target has .type and .size directives, this is true for most ELF targets. More... | |
| bool | HasSingleParameterDotFile |
| True if the target has a single parameter .file directive, this is true for ELF targets. More... | |
| bool | HasIdentDirective |
| True if the target has a .ident directive, this is true for ELF targets. More... | |
| bool | HasNoDeadStrip |
| True if this target supports the MachO .no_dead_strip directive. More... | |
| bool | HasAltEntry |
| True if this target supports the MachO .alt_entry directive. More... | |
| const char * | WeakDirective |
| Used to declare a global as being a weak symbol. Defaults to ".weak". More... | |
| const char * | WeakRefDirective |
| This directive, if non-null, is used to declare a global as being a weak undefined symbol. More... | |
| bool | HasWeakDefDirective |
| True if we have a directive to declare a global as being a weak defined symbol. More... | |
| bool | HasWeakDefCanBeHiddenDirective |
| True if we have a directive to declare a global as being a weak defined symbol that can be hidden (unexported). More... | |
| bool | HasLinkOnceDirective |
| True if we have a .linkonce directive. More... | |
| MCSymbolAttr | HiddenVisibilityAttr |
| This attribute, if not MCSA_Invalid, is used to declare a symbol as having hidden visibility. More... | |
| MCSymbolAttr | HiddenDeclarationVisibilityAttr |
| This attribute, if not MCSA_Invalid, is used to declare an undefined symbol as having hidden visibility. More... | |
| MCSymbolAttr | ProtectedVisibilityAttr |
| This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility. More... | |
| bool | SupportsDebugInformation |
| True if target supports emission of debugging information. More... | |
| ExceptionHandling | ExceptionsType |
| Exception handling format for the target. Defaults to None. More... | |
| WinEH::EncodingType | WinEHEncodingType |
| Windows exception handling data (.pdata) encoding. Defaults to Invalid. More... | |
| bool | DwarfUsesRelocationsAcrossSections |
| True if Dwarf2 output generally uses relocations for references to other .debug_* sections. More... | |
| bool | DwarfFDESymbolsUseAbsDiff |
| True if DWARF FDE symbol reference relocations should be replaced by an absolute difference. More... | |
| bool | DwarfRegNumForCFI |
| True if dwarf register numbers are printed instead of symbolic register names in .cfi_* directives. More... | |
| bool | UseParensForSymbolVariant |
| True if target uses parens to indicate the symbol variant instead of More... | |
| std::vector< MCCFIInstruction > | InitialFrameState |
| bool | UseIntegratedAssembler |
| 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. More... | |
| bool | PreserveAsmComments |
| Preserve Comments in assembly. More... | |
| DebugCompressionType | CompressDebugSections |
| Compress DWARF debug sections. Defaults to no compression. More... | |
| bool | UseLogicalShr |
| True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather than arithmetic. More... | |
| bool | RelaxELFRelocations = true |
| bool | HasMipsExpressions = false |
This class is intended to be used as a base class for asm properties and features specific to the target.
Definition at line 57 of file MCAsmInfo.h.
|
explicit |
Definition at line 25 of file MCAsmInfo.cpp.
References AlignmentIsInBytes, AllowAtInName, AsciiDirective, AscizDirective, AssemblerDialect, CalleeSaveStackSlotSize, Code16Directive, Code32Directive, Code64Directive, COMMDirectiveAlignmentIsInBytes, CommentString, CompressDebugSections, Data16bitsDirective, Data32bitsDirective, Data64bitsDirective, Data8bitsDirective, llvm::DCT_None, DollarIsPC, DwarfFDESymbolsUseAbsDiff, DwarfRegNumForCFI, DwarfUsesRelocationsAcrossSections, ExceptionsType, GlobalDirective, GPRel32Directive, GPRel64Directive, HasAggressiveSymbolFolding, HasAltEntry, HasDotTypeDotSizeDirective, HasFunctionAlignment, HasIdentDirective, HasLinkOnceDirective, HasMachoTBSSDirective, HasMachoZeroFillDirective, HasNoDeadStrip, HasSingleParameterDotFile, HasSubsectionsViaSymbols, HasWeakDefCanBeHiddenDirective, HasWeakDefDirective, HiddenDeclarationVisibilityAttr, HiddenVisibilityAttr, InlineAsmEnd, InlineAsmStart, llvm::WinEH::Invalid, IsLittleEndian, LabelSuffix, LCOMMDirectiveAlignmentType, LinkerPrivateGlobalPrefix, MaxInstLength, llvm::MCSA_Hidden, llvm::MCSA_Protected, MinInstAlignment, NeedsDwarfSectionOffsetDirective, NeedsLocalForSize, llvm::LCOMM::NoAlignment, llvm::None, PointerSize, PreserveAsmComments, PrivateGlobalPrefix, PrivateLabelPrefix, ProtectedVisibilityAttr, SeparatorString, SetDirectiveSuppressesReloc, StackGrowsUp, SunStyleELFSectionSwitchSyntax, SupportsDebugInformation, SupportsQuotedNames, TextAlignFillValue, UseAssignmentForEHBegin, UseDataRegionDirectives, UseIntegratedAssembler, UseLogicalShr, UseParensForSymbolVariant, UsesELFSectionDirectiveForBSS, WeakDirective, WeakRefDirective, WinEHEncodingType, and ZeroDirective.
|
virtual |
Definition at line 114 of file MCAsmInfo.cpp.
|
inline |
Definition at line 565 of file MCAsmInfo.h.
References InitialFrameState.
Referenced by createAArch64MCAsmInfo(), createARMMCAsmInfo(), createHexagonMCAsmInfo(), createMipsMCAsmInfo(), createPPCMCAsmInfo(), createSparcMCAsmInfo(), createSparcV9MCAsmInfo(), createSystemZMCAsmInfo(), createX86MCAsmInfo(), and createXCoreMCAsmInfo().
|
inline |
Definition at line 599 of file MCAsmInfo.h.
References RelaxELFRelocations.
Referenced by getRelocType32(), and getRelocType64().
|
inline |
Definition at line 589 of file MCAsmInfo.h.
References CompressDebugSections.
|
inline |
Definition at line 561 of file MCAsmInfo.h.
References DwarfFDESymbolsUseAbsDiff.
Referenced by emitFDESymbol().
|
inline |
Definition at line 492 of file MCAsmInfo.h.
References AllowAtInName.
|
inline |
Definition at line 558 of file MCAsmInfo.h.
References DwarfUsesRelocationsAcrossSections.
Referenced by llvm::DwarfCompileUnit::addSectionLabel(), llvm::MCGenDwarfInfo::Emit(), llvm::AsmPrinter::emitDwarfStringOffset(), llvm::AsmPrinter::emitDwarfSymbolReference(), llvm::DIEString::EmitValue(), llvm::DIEEntry::EmitValue(), and llvm::DIEString::SizeOf().
|
inline |
Definition at line 503 of file MCAsmInfo.h.
References SetDirectiveSuppressesReloc.
Referenced by llvm::MCStreamer::emitAbsoluteSymbolDiff(), and llvm::AsmPrinter::EmitJumpTableInfo().
|
inline |
Definition at line 494 of file MCAsmInfo.h.
References UseDataRegionDirectives.
|
inline |
Definition at line 534 of file MCAsmInfo.h.
References SupportsDebugInformation.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 535 of file MCAsmInfo.h.
References ExceptionsType, and llvm::None.
|
inline |
Definition at line 500 of file MCAsmInfo.h.
References AlignmentIsInBytes.
|
inline |
Definition at line 498 of file MCAsmInfo.h.
References AsciiDirective.
|
inline |
Definition at line 499 of file MCAsmInfo.h.
References AscizDirective.
|
inline |
Definition at line 491 of file MCAsmInfo.h.
References AssemblerDialect.
Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), LLVMCreateDisasmCPUFeatures(), and LLVMSetDisasmOptions().
|
inline |
Get the callee-saved register stack slot size in bytes.
Definition at line 387 of file MCAsmInfo.h.
References CalleeSaveStackSlotSize.
Referenced by getDataAlignmentFactor().
|
inline |
Definition at line 488 of file MCAsmInfo.h.
References Code16Directive.
|
inline |
Definition at line 489 of file MCAsmInfo.h.
References Code32Directive.
|
inline |
Definition at line 490 of file MCAsmInfo.h.
References Code64Directive.
|
inline |
Definition at line 507 of file MCAsmInfo.h.
References COMMDirectiveAlignmentIsInBytes.
|
inline |
This indicates the column (zero-based) at which asm comments should be printed.
Definition at line 469 of file MCAsmInfo.h.
Referenced by emitComments().
|
inline |
Definition at line 471 of file MCAsmInfo.h.
References CommentString.
Referenced by llvm::AsmLexer::AsmLexer(), emitComments(), llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::HexagonInstrInfo::getInlineAsmLength(), llvm::TargetInstrInfo::getInlineAsmLength(), llvm::MCInstPrinter::printAnnotation(), llvm::AsmPrinter::PrintSpecial(), and llvm::MCSectionELF::PrintSwitchToSection().
|
inline |
Definition at line 402 of file MCAsmInfo.h.
References Data16bitsDirective.
|
inline |
Definition at line 403 of file MCAsmInfo.h.
References Data32bitsDirective.
|
inline |
Definition at line 404 of file MCAsmInfo.h.
References Data64bitsDirective.
|
inline |
Definition at line 401 of file MCAsmInfo.h.
References Data8bitsDirective.
|
inline |
Definition at line 464 of file MCAsmInfo.h.
References DollarIsPC.
|
inline |
Definition at line 408 of file MCAsmInfo.h.
References DTPRel32Directive.
|
inline |
Definition at line 407 of file MCAsmInfo.h.
References DTPRel64Directive.
|
inline |
Definition at line 538 of file MCAsmInfo.h.
References ExceptionsType.
Referenced by llvm::TargetPassConfig::addPassesToHandleExceptions(), llvm::ARMException::beginFunction(), llvm::EHStreamer::computeCallSiteTable(), llvm::AsmPrinter::doInitialization(), llvm::AsmPrinter::emitCFIInstruction(), llvm::EHStreamer::emitExceptionTable(), llvm::ARMException::endFunction(), llvm::ARMElfTargetObjectFile::getTTypeGlobalReference(), and llvm::AsmPrinter::needsCFIMoves().
|
virtual |
Reimplemented in llvm::SparcELFMCAsmInfo.
Definition at line 129 of file MCAsmInfo.cpp.
References Context, llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::dwarf::DW_EH_PE_pcrel, llvm::MCStreamer::EmitLabel(), llvm::MCStreamer::getContext(), and PC.
Referenced by emitFDESymbol(), llvm::SparcELFMCAsmInfo::getExprForFDESymbol(), and getExprForPersonalitySymbol().
|
virtual |
Reimplemented in llvm::X86_64MCAsmInfoDarwin, llvm::AArch64MCAsmInfoDarwin, and llvm::SparcELFMCAsmInfo.
Definition at line 122 of file MCAsmInfo.cpp.
References getExprForFDESymbol().
Referenced by EmitPersonality(), and llvm::SparcELFMCAsmInfo::getExprForPersonalitySymbol().
|
inline |
Definition at line 502 of file MCAsmInfo.h.
References GlobalDirective.
|
inline |
Definition at line 406 of file MCAsmInfo.h.
References GPRel32Directive.
|
inline |
Definition at line 405 of file MCAsmInfo.h.
References GPRel64Directive.
|
inline |
Definition at line 528 of file MCAsmInfo.h.
References HiddenDeclarationVisibilityAttr.
|
inline |
Definition at line 527 of file MCAsmInfo.h.
References HiddenVisibilityAttr.
|
inline |
Definition at line 569 of file MCAsmInfo.h.
References InitialFrameState.
Referenced by llvm::MCStreamer::EmitCFIStartProc().
|
inline |
Definition at line 487 of file MCAsmInfo.h.
References InlineAsmEnd.
|
inline |
Definition at line 486 of file MCAsmInfo.h.
References InlineAsmStart.
|
inline |
Definition at line 472 of file MCAsmInfo.h.
References LabelSuffix.
|
inline |
Definition at line 510 of file MCAsmInfo.h.
References LCOMMDirectiveAlignmentType.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 481 of file MCAsmInfo.h.
References getPrivateGlobalPrefix(), hasLinkerPrivateGlobalPrefix(), and LinkerPrivateGlobalPrefix.
Referenced by llvm::MCContext::createLinkerPrivateTempSymbol().
|
inline |
Definition at line 462 of file MCAsmInfo.h.
References MaxInstLength.
Referenced by llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::HexagonInstrInfo::getInlineAsmLength(), and llvm::TargetInstrInfo::getInlineAsmLength().
|
inline |
Definition at line 463 of file MCAsmInfo.h.
References MinInstAlignment.
Referenced by llvm::MCDwarfLineTableHeader::Emit(), and ScaleAddrDelta().
|
inlinevirtual |
Targets can implement this method to specify a section to switch to if the translation unit doesn't have any trampolines that require an executable stack.
Definition at line 415 of file MCAsmInfo.h.
Referenced by llvm::AsmPrinter::doFinalization(), and llvm::MCELFStreamer::InitSections().
|
inline |
Get the pointer size in bytes.
Definition at line 383 of file MCAsmInfo.h.
References PointerSize.
Referenced by llvm::MCDwarfFrameEmitter::Emit(), EmitDwarfLineTable(), EmitGenDwarfAranges(), EmitGenDwarfInfo(), EmitGenDwarfRanges(), and getSizeForEncoding().
|
inline |
Definition at line 476 of file MCAsmInfo.h.
References PrivateGlobalPrefix.
Referenced by llvm::MCContext::createTempSymbol(), llvm::LanaiMCInstLower::GetConstantPoolIndexSymbol(), llvm::LanaiMCInstLower::GetJumpTableSymbol(), getLinkerPrivateGlobalPrefix(), llvm::MCContext::getOrCreateFrameAllocSymbol(), llvm::MCContext::getOrCreateLSDASymbol(), and llvm::MCContext::getOrCreateParentFrameOffsetSymbol().
|
inline |
Definition at line 477 of file MCAsmInfo.h.
References PrivateLabelPrefix.
Referenced by llvm::MachineBasicBlock::getSymbol().
|
inline |
Definition at line 531 of file MCAsmInfo.h.
References ProtectedVisibilityAttr.
|
inline |
Definition at line 465 of file MCAsmInfo.h.
References SeparatorString.
Referenced by llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::HexagonInstrInfo::getInlineAsmLength(), llvm::TargetInstrInfo::getInlineAsmLength(), and llvm::AsmLexer::LexToken().
|
inline |
Definition at line 501 of file MCAsmInfo.h.
References TextAlignFillValue.
|
inline |
Definition at line 410 of file MCAsmInfo.h.
References TPRel32Directive.
|
inline |
Definition at line 409 of file MCAsmInfo.h.
References TPRel64Directive.
|
inline |
Definition at line 519 of file MCAsmInfo.h.
References WeakDirective.
|
inline |
Definition at line 520 of file MCAsmInfo.h.
References WeakRefDirective.
Referenced by llvm::AsmPrinter::doFinalization().
|
inline |
Definition at line 539 of file MCAsmInfo.h.
References WinEHEncodingType.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 497 of file MCAsmInfo.h.
References ZeroDirective.
|
inline |
Definition at line 506 of file MCAsmInfo.h.
References HasAggressiveSymbolFolding.
Referenced by forceExpAbs().
|
inline |
Definition at line 518 of file MCAsmInfo.h.
References HasAltEntry.
|
inline |
Definition at line 514 of file MCAsmInfo.h.
References HasDotTypeDotSizeDirective.
Referenced by llvm::AsmPrinter::EmitFunctionBody(), and llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 513 of file MCAsmInfo.h.
References HasFunctionAlignment.
|
inline |
Definition at line 516 of file MCAsmInfo.h.
References HasIdentDirective.
|
inline |
Definition at line 478 of file MCAsmInfo.h.
References LinkerPrivateGlobalPrefix.
Referenced by getLinkerPrivateGlobalPrefix().
|
inline |
Definition at line 525 of file MCAsmInfo.h.
References HasLinkOnceDirective.
|
inline |
Definition at line 461 of file MCAsmInfo.h.
References HasMachoTBSSDirective.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 460 of file MCAsmInfo.h.
References HasMachoZeroFillDirective.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 601 of file MCAsmInfo.h.
References HasMipsExpressions.
Referenced by llvm::AsmLexer::LexToken().
|
inline |
Definition at line 517 of file MCAsmInfo.h.
References HasNoDeadStrip.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
|
inline |
Definition at line 515 of file MCAsmInfo.h.
References HasSingleParameterDotFile.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 397 of file MCAsmInfo.h.
References HasSubsectionsViaSymbols.
Referenced by llvm::AsmPrinter::EmitFunctionBody(), and llvm::AsmPrinter::EmitGlobalConstant().
|
inline |
Definition at line 522 of file MCAsmInfo.h.
References HasWeakDefCanBeHiddenDirective.
Referenced by canBeHidden().
|
inline |
Definition at line 521 of file MCAsmInfo.h.
References HasWeakDefDirective.
|
inline |
True if the target is little endian.
Definition at line 392 of file MCAsmInfo.h.
References IsLittleEndian.
Referenced by llvm::MCDwarfFrameEmitter::EncodeAdvanceLoc().
True if the section is atomized using the symbols in it.
This is false if the section is not atomized at all (most ELF sections) or if it is atomized based on its contents (MachO' __TEXT,__cstring for example).
Reimplemented in llvm::MCAsmInfoDarwin.
Definition at line 117 of file MCAsmInfo.cpp.
Referenced by canUsePrivateLabel(), and llvm::MCAssembler::getAtom().
|
inline |
True if target stack grow up.
Definition at line 395 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 148 of file MCAsmInfo.cpp.
References C, llvm::StringRef::empty(), and isAcceptableChar().
Referenced by llvm::MCSymbol::print().
|
inline |
Definition at line 454 of file MCAsmInfo.h.
References NeedsDwarfSectionOffsetDirective.
Referenced by llvm::AsmPrinter::emitDwarfSymbolReference(), EmitGenDwarfAranges(), EmitGenDwarfInfo(), and llvm::AsmPrinter::EmitLabelPlusOffset().
|
inline |
Definition at line 475 of file MCAsmInfo.h.
References NeedsLocalForSize.
Referenced by llvm::AsmPrinter::SetupMachineFunction().
|
inline |
Return true if assembly (inline or otherwise) should be parsed.
Definition at line 582 of file MCAsmInfo.h.
References PreserveAsmComments.
|
inline |
Definition at line 593 of file MCAsmInfo.h.
References CompressDebugSections.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inline |
Definition at line 541 of file MCAsmInfo.h.
References ExceptionsType.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inlinevirtual |
Set whether assembly (inline or otherwise) should be parsed.
Definition at line 585 of file MCAsmInfo.h.
References PreserveAsmComments.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inline |
Definition at line 600 of file MCAsmInfo.h.
References RelaxELFRelocations.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inlinevirtual |
Set whether assembly (inline or otherwise) should be parsed.
Reimplemented in llvm::ARMELFMCAsmInfo.
Definition at line 577 of file MCAsmInfo.h.
References UseIntegratedAssembler.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
Return true if the .section directive should be omitted when emitting SectionName.
For example:
shouldOmitSectionDirective(".text")
returns false => .section .text,#alloc,#execinstr returns true => .text
Reimplemented in llvm::AMDGPUMCAsmInfo.
Definition at line 162 of file MCAsmInfo.cpp.
References usesELFSectionDirectiveForBSS().
Referenced by llvm::AMDGPUMCAsmInfo::shouldOmitSectionDirective(), and llvm::MCSectionELF::ShouldOmitSectionDirective().
|
inline |
Definition at line 597 of file MCAsmInfo.h.
References UseLogicalShr.
|
inline |
Definition at line 493 of file MCAsmInfo.h.
References SupportsQuotedNames.
Referenced by llvm::MCSymbol::print().
|
inline |
Definition at line 474 of file MCAsmInfo.h.
References UseAssignmentForEHBegin.
|
inline |
Definition at line 562 of file MCAsmInfo.h.
References DwarfRegNumForCFI.
|
inline |
Return true if assembly (inline or otherwise) should be parsed.
Definition at line 574 of file MCAsmInfo.h.
References UseIntegratedAssembler.
|
inline |
Definition at line 563 of file MCAsmInfo.h.
References UseParensForSymbolVariant.
|
inline |
Returns true if the exception handling method for the platform uses call frame information to unwind.
Definition at line 547 of file MCAsmInfo.h.
References llvm::ARM, llvm::DwarfCFI, ExceptionsType, and usesWindowsCFI().
Referenced by llvm::DwarfCFIException::beginFunction(), llvm::EHStreamer::computeCallSiteTable(), and llvm::DwarfCFIException::endModule().
|
inline |
Definition at line 450 of file MCAsmInfo.h.
References UsesELFSectionDirectiveForBSS.
Referenced by shouldOmitSectionDirective().
|
inline |
Definition at line 446 of file MCAsmInfo.h.
References SunStyleELFSectionSwitchSyntax.
Referenced by llvm::MCSectionELF::PrintSwitchToSection().
|
inline |
Definition at line 552 of file MCAsmInfo.h.
References ExceptionsType, llvm::WinEH::Invalid, llvm::WinEH, WinEHEncodingType, and llvm::WinEH::X86.
Referenced by llvm::WinException::beginFunction(), llvm::X86FrameLowering::canUseLEAForSPInEpilogue(), llvm::X86FrameLowering::eliminateCallFramePseudoInstr(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), llvm::MCStreamer::EmitWinCFIStartProc(), ExpandMOVImmSExti8(), llvm::X86FrameLowering::getFrameIndexReference(), LowerINTRINSIC_W_CHAIN(), llvm::AsmPrinter::needsSEHMoves(), and usesCFIForEH().
|
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 222 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), getAlignmentIsInBytes(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().
|
protected |
This is true if the assembler allows @ characters in symbol names.
Defaults to false.
Definition at line 149 of file MCAsmInfo.h.
Referenced by doesAllowAtInName(), MCAsmInfo(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
This directive allows emission of an ascii string with the standard C escape characters embedded into it.
Defaults to "\t.ascii\t"
Definition at line 170 of file MCAsmInfo.h.
Referenced by getAsciiDirective(), MCAsmInfo(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
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 175 of file MCAsmInfo.h.
Referenced by getAscizDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Which dialect of an assembler variant to use. Defaults to 0.
Definition at line 145 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), getAssemblerDialect(), MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
Size of the stack slot reserved for callee-saved registers, in bytes.
Default is same as pointer size.
Definition at line 68 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), getCalleeSaveStackSlotSize(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().
|
protected |
These are assembly directives that tells the assembler to interpret the following instructions differently.
Defaults to ".code16", ".code32", ".code64".
Definition at line 140 of file MCAsmInfo.h.
Referenced by llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getCode16Directive(), and MCAsmInfo().
|
protected |
Definition at line 141 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getCode32Directive(), and MCAsmInfo().
|
protected |
Definition at line 142 of file MCAsmInfo.h.
Referenced by getCode64Directive(), and MCAsmInfo().
|
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 258 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getCOMMDirectiveAlignmentIsInBytes(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().
|
protected |
This indicates the comment character used by the assembler.
Defaults to "#"
Definition at line 106 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), getCommentString(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Compress DWARF debug sections. Defaults to no compression.
Definition at line 364 of file MCAsmInfo.h.
Referenced by compressDebugSections(), MCAsmInfo(), and setCompressDebugSections().
|
protected |
Definition at line 182 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), getData16bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Definition at line 183 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), getData32bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Definition at line 184 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getData64bitsDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
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 181 of file MCAsmInfo.h.
Referenced by getData8bitsDirective(), MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), 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 98 of file MCAsmInfo.h.
Referenced by getDollarIsPC(), MCAsmInfo(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
If non-null, directives that are used to emit a word/dword which should be relocated as a 32/64-bit DTP/TP-relative offset, e.g.
.dtprelword/ .dtpreldword/.tprelword/.tpreldword on Mips.
Definition at line 199 of file MCAsmInfo.h.
Referenced by getDTPRel32Directive(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
Definition at line 200 of file MCAsmInfo.h.
Referenced by getDTPRel64Directive(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
True if DWARF FDE symbol reference relocations should be replaced by an absolute difference.
Definition at line 337 of file MCAsmInfo.h.
Referenced by doDwarfFDESymbolsUseAbsDiff(), MCAsmInfo(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().
|
protected |
True if dwarf register numbers are printed instead of symbolic register names in .cfi_* directives.
Defaults to false.
Definition at line 341 of file MCAsmInfo.h.
Referenced by llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::ARMELFMCAsmInfo::setUseIntegratedAssembler(), useDwarfRegNumForCFI(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
True if Dwarf2 output generally uses relocations for references to other .debug_* sections.
Definition at line 333 of file MCAsmInfo.h.
Referenced by doesDwarfUseRelocationsAcrossSections(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
Exception handling format for the target. Defaults to None.
Definition at line 326 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), doesSupportExceptionHandling(), getExceptionHandlingType(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), setExceptionsType(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), usesCFIForEH(), usesWindowsCFI(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
This is the directive used to declare a global entity.
Defaults to ".globl".
Definition at line 232 of file MCAsmInfo.h.
Referenced by getGlobalDirective(), MCAsmInfo(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
If non-null, a directive that is used to emit a word which should be relocated as a 32-bit GP-relative offset, e.g.
.gpword on Mips or .gprel32 on Alpha. Defaults to NULL.
Definition at line 194 of file MCAsmInfo.h.
Referenced by getGPRel32Directive(), MCAsmInfo(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
If non-null, a directive that is used to emit a word which should be relocated as a 64-bit GP-relative offset, e.g.
.gpdword on Mips. Defaults to NULL.
Definition at line 189 of file MCAsmInfo.h.
Referenced by getGPRel64Directive(), MCAsmInfo(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
False if the assembler requires that we use.
instead of
Defaults to true.
Definition at line 254 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), hasAggressiveSymbolFolding(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if this target supports the MachO .alt_entry directive.
Defaults to false.
Definition at line 286 of file MCAsmInfo.h.
Referenced by hasAltEntry(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if the target has .type and .size directives, this is true for most ELF targets.
Defaults to true.
Definition at line 270 of file MCAsmInfo.h.
Referenced by llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasDotTypeDotSizeDirective(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
Definition at line 266 of file MCAsmInfo.h.
Referenced by hasFunctionAlignment(), MCAsmInfo(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
True if the target has a .ident directive, this is true for ELF targets.
Defaults to false.
Definition at line 278 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), hasIdentDirective(), MCAsmInfo(), and llvm::MCAsmInfoELF::MCAsmInfoELF().
|
protected |
True if we have a .linkonce directive.
This is used on cygwin/mingw. Defaults to false.
Definition at line 305 of file MCAsmInfo.h.
Referenced by hasLinkOnceDirective(), MCAsmInfo(), and llvm::MCAsmInfoCOFF::MCAsmInfoCOFF().
|
protected |
True if this is a MachO target that supports the macho-specific .tbss directive for emitting thread local BSS Symbols.
Default is false.
Definition at line 86 of file MCAsmInfo.h.
Referenced by hasMachoTBSSDirective(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if this is a MachO target that supports the macho-specific .zerofill directive for emitting BSS Symbols.
Default is false.
Definition at line 82 of file MCAsmInfo.h.
Referenced by hasMachoZeroFillDirective(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
Definition at line 376 of file MCAsmInfo.h.
Referenced by hasMipsExpressions(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
True if this target supports the MachO .no_dead_strip directive.
Defaults to false.
Definition at line 282 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), hasNoDeadStrip(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if the target has a single parameter .file directive, this is true for ELF targets.
Defaults to true.
Definition at line 274 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasSingleParameterDotFile(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
True if this target has the MachO .subsections_via_symbols directive.
Default is false.
Definition at line 78 of file MCAsmInfo.h.
Referenced by hasSubsectionsViaSymbols(), MCAsmInfo(), 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 301 of file MCAsmInfo.h.
Referenced by hasWeakDefCanBeHiddenDirective(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), and llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin().
|
protected |
True if we have a directive to declare a global as being a weak defined symbol.
Defaults to false.
Definition at line 297 of file MCAsmInfo.h.
Referenced by hasWeakDefDirective(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
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 313 of file MCAsmInfo.h.
Referenced by getHiddenDeclarationVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), 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 309 of file MCAsmInfo.h.
Referenced by getHiddenVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Definition at line 349 of file MCAsmInfo.h.
Referenced by addInitialFrameState(), and getInitialFrameState().
|
protected |
Definition at line 135 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getInlineAsmEnd(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
If these are nonempty, they contain a directive to emit before and after an inline assembly statement.
Defaults to "#APP\n", "#NO_APP\n"
Definition at line 134 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getInlineAsmStart(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
True if target is little endian. Default is true.
Definition at line 71 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), isLittleEndian(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), and llvm::SystemZMCAsmInfo::SystemZMCAsmInfo().
|
protected |
This is appended to emitted labels. Defaults to ":".
Definition at line 109 of file MCAsmInfo.h.
Referenced by getLabelSuffix(), and MCAsmInfo().
|
protected |
Describes if the .lcomm directive for the target supports an alignment argument and how it is interpreted.
Defaults to NoAlignment.
Definition at line 262 of file MCAsmInfo.h.
Referenced by getLCOMMDirectiveAlignmentType(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), 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 130 of file MCAsmInfo.h.
Referenced by getLinkerPrivateGlobalPrefix(), hasLinkerPrivateGlobalPrefix(), MCAsmInfo(), 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 90 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getMaxInstLength(), and MCAsmInfo().
|
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 94 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getMinInstAlignment(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
Definition at line 214 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and needsDwarfSectionOffsetDirective().
|
protected |
Definition at line 115 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), needsLocalForSize(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
Pointer size in bytes. Default is 4.
Definition at line 64 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getPointerSize(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
Preserve Comments in assembly.
Definition at line 361 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), preserveAsmComments(), and setPreserveAsmComments().
|
protected |
This prefix is used for globals like constant pool entries that are completely private to the .s file and should not have names in the .o file.
Defaults to "L"
Definition at line 120 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getPrivateGlobalPrefix(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
This prefix is used for labels for basic blocks.
Defaults to the same as PrivateGlobalPrefix.
Definition at line 124 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), getPrivateLabelPrefix(), MCAsmInfo(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
This attribute, if not MCSA_Invalid, is used to declare a symbol as having protected visibility.
Defaults to MCSA_Protected
Definition at line 317 of file MCAsmInfo.h.
Referenced by getProtectedVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
Definition at line 372 of file MCAsmInfo.h.
Referenced by canRelaxRelocations(), and setRelaxELFRelocations().
|
protected |
This string, if specified, is used to separate instructions from each other when on the same line.
Defaults to ';'
Definition at line 102 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getSeparatorString(), and MCAsmInfo().
|
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 239 of file MCAsmInfo.h.
Referenced by doesSetDirectiveSuppressReloc(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if target stack grow up. Default is false.
Definition at line 74 of file MCAsmInfo.h.
Referenced by isStackGrowthDirectionUp(), and MCAsmInfo().
|
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 207 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), MCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), and usesSunStyleELFSectionSwitchSyntax().
|
protected |
True if target supports emission of debugging information.
Defaults to false.
Definition at line 323 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), doesSupportDebugInformation(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::RISCVMCAsmInfo::RISCVMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
If this is true, symbol names with invalid characters will be printed in quotes.
Definition at line 153 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), and supportsNameQuoting().
|
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 226 of file MCAsmInfo.h.
Referenced by getTextAlignFillValue(), MCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
Definition at line 201 of file MCAsmInfo.h.
Referenced by getTPRel32Directive(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
Definition at line 202 of file MCAsmInfo.h.
Referenced by getTPRel64Directive(), and llvm::MipsMCAsmInfo::MipsMCAsmInfo().
|
protected |
Definition at line 112 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), and useAssignmentForEHBegin().
|
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 158 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), doesSupportDataRegionDirectives(), MCAsmInfo(), 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 LLVMTargetMachine::initAsmInfo()).
Definition at line 358 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::ARMELFMCAsmInfo::setUseIntegratedAssembler(), setUseIntegratedAssembler(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), useIntegratedAssembler(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather than arithmetic.
Definition at line 368 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and shouldUseLogicalShr().
|
protected |
True if target uses parens to indicate the symbol variant instead of
For example, foo(plt) instead of foo. Defaults to false.
Definition at line 345 of file MCAsmInfo.h.
Referenced by llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), MCAsmInfo(), and useParensForSymbolVariant().
|
protected |
This is true if this target uses ELF '.section' directive before the '.bss' one.
It's used for PPC/Linux which doesn't support the '.bss' directive only. Defaults to false.
Definition at line 212 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::AVRMCAsmInfo::AVRMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), and usesELFSectionDirectiveForBSS().
|
protected |
Used to declare a global as being a weak symbol. Defaults to ".weak".
Definition at line 289 of file MCAsmInfo.h.
Referenced by getWeakDirective(), MCAsmInfo(), and llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo().
|
protected |
This directive, if non-null, is used to declare a global as being a weak undefined symbol.
Defaults to NULL.
Definition at line 293 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getWeakRefDirective(), llvm::LanaiMCAsmInfo::LanaiMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::MCAsmInfoELF::MCAsmInfoELF().
|
protected |
Windows exception handling data (.pdata) encoding. Defaults to Invalid.
Definition at line 329 of file MCAsmInfo.h.
Referenced by getWinEHEncodingType(), MCAsmInfo(), usesWindowsCFI(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
protected |
This should be set to the directive used to get some number of zero bytes emitted to the current section.
Common cases are "\t.zero\t" and "\t.space\t". If this is set to null, the Data*bitsDirective's will be used to emit zero bytes. Defaults to "\t.zero\t"
Definition at line 166 of file MCAsmInfo.h.
Referenced by getZeroDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
1.8.6