|
LLVM
3.7.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... | |
| bool | HasStaticCtorDtorReferenceInStaticMode |
| True if the compiler should emit a ".reference .constructors_used" or ".reference .destructors_used" directive after the static ctor/dtor list. 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... | |
| const char * | 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 |
| const char * | 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... | |
| const char * | PrivateLabelPrefix |
| This prefix is used for labels for basic blocks. More... | |
| const char * | 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... | |
| 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... | |
| 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 | CompressDebugSections |
| Compress DWARF debug sections. Defaults to false. More... | |
| bool | UseLogicalShr |
| True if the integrated assembler should interpret 'a >> b' constant expressions as logical rather than arithmetic. More... | |
This class is intended to be used as a base class for asm properties and features specific to the target.
Definition at line 58 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, DollarIsPC, DwarfFDESymbolsUseAbsDiff, DwarfRegNumForCFI, DwarfUsesRelocationsAcrossSections, ExceptionsType, GlobalDirective, GPRel32Directive, GPRel64Directive, HasAggressiveSymbolFolding, HasDotTypeDotSizeDirective, HasFunctionAlignment, HasIdentDirective, HasLinkOnceDirective, HasMachoTBSSDirective, HasMachoZeroFillDirective, HasNoDeadStrip, HasSingleParameterDotFile, HasStaticCtorDtorReferenceInStaticMode, 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, 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 113 of file MCAsmInfo.cpp.
|
inline |
Definition at line 534 of file MCAsmInfo.h.
References InitialFrameState.
Referenced by createAArch64MCAsmInfo(), createARMMCAsmInfo(), createHexagonMCAsmInfo(), createMipsMCAsmInfo(), createPPCMCAsmInfo(), createSparcMCAsmInfo(), createSparcV9MCAsmInfo(), createSystemZMCAsmInfo(), createX86MCAsmInfo(), and createXCoreMCAsmInfo().
|
inline |
Definition at line 550 of file MCAsmInfo.h.
References CompressDebugSections.
|
inline |
Definition at line 530 of file MCAsmInfo.h.
References DwarfFDESymbolsUseAbsDiff.
Referenced by emitFDESymbol().
|
inline |
Definition at line 466 of file MCAsmInfo.h.
References AllowAtInName.
|
inline |
Definition at line 527 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 477 of file MCAsmInfo.h.
References SetDirectiveSuppressesReloc.
Referenced by llvm::MCStreamer::emitAbsoluteSymbolDiff(), and llvm::AsmPrinter::EmitJumpTableInfo().
|
inline |
Definition at line 468 of file MCAsmInfo.h.
References UseDataRegionDirectives.
|
inline |
Definition at line 507 of file MCAsmInfo.h.
References SupportsDebugInformation.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 508 of file MCAsmInfo.h.
References ExceptionsType, and llvm::None.
|
inline |
Definition at line 474 of file MCAsmInfo.h.
References AlignmentIsInBytes.
|
inline |
Definition at line 472 of file MCAsmInfo.h.
References AsciiDirective.
|
inline |
Definition at line 473 of file MCAsmInfo.h.
References AscizDirective.
|
inline |
Definition at line 465 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 371 of file MCAsmInfo.h.
References CalleeSaveStackSlotSize.
Referenced by getDataAlignmentFactor().
|
inline |
Definition at line 462 of file MCAsmInfo.h.
References Code16Directive.
|
inline |
Definition at line 463 of file MCAsmInfo.h.
References Code32Directive.
|
inline |
Definition at line 464 of file MCAsmInfo.h.
References Code64Directive.
|
inline |
Definition at line 481 of file MCAsmInfo.h.
References COMMDirectiveAlignmentIsInBytes.
|
inline |
This indicates the column (zero-based) at which asm comments should be printed.
Definition at line 443 of file MCAsmInfo.h.
Referenced by emitComments().
|
inline |
Definition at line 445 of file MCAsmInfo.h.
References CommentString.
Referenced by llvm::AsmLexer::AsmLexer(), emitComments(), llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::TargetInstrInfo::getInlineAsmLength(), llvm::AsmLexer::isAtStartOfComment(), llvm::MCInstPrinter::printAnnotation(), llvm::AsmPrinter::PrintSpecial(), and llvm::MCSectionELF::PrintSwitchToSection().
|
inline |
Definition at line 386 of file MCAsmInfo.h.
References Data16bitsDirective.
|
inline |
Definition at line 387 of file MCAsmInfo.h.
References Data32bitsDirective.
|
inline |
Definition at line 388 of file MCAsmInfo.h.
References Data64bitsDirective.
|
inline |
Definition at line 385 of file MCAsmInfo.h.
References Data8bitsDirective.
|
inline |
Definition at line 438 of file MCAsmInfo.h.
References DollarIsPC.
|
inline |
Definition at line 511 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 128 of file MCAsmInfo.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::dwarf::DW_EH_PE_pcrel, llvm::MCStreamer::EmitLabel(), and llvm::MCStreamer::getContext().
Referenced by emitFDESymbol(), llvm::SparcELFMCAsmInfo::getExprForFDESymbol(), and getExprForPersonalitySymbol().
|
virtual |
Reimplemented in llvm::X86_64MCAsmInfoDarwin, llvm::AArch64MCAsmInfoDarwin, and llvm::SparcELFMCAsmInfo.
Definition at line 121 of file MCAsmInfo.cpp.
References getExprForFDESymbol().
Referenced by EmitPersonality(), and llvm::SparcELFMCAsmInfo::getExprForPersonalitySymbol().
|
inline |
Definition at line 476 of file MCAsmInfo.h.
References GlobalDirective.
|
inline |
Definition at line 390 of file MCAsmInfo.h.
References GPRel32Directive.
|
inline |
Definition at line 389 of file MCAsmInfo.h.
References GPRel64Directive.
|
inline |
Definition at line 501 of file MCAsmInfo.h.
References HiddenDeclarationVisibilityAttr.
|
inline |
Definition at line 500 of file MCAsmInfo.h.
References HiddenVisibilityAttr.
|
inline |
Definition at line 538 of file MCAsmInfo.h.
References InitialFrameState.
Referenced by llvm::MCStreamer::EmitCFIStartProc().
|
inline |
Definition at line 461 of file MCAsmInfo.h.
References InlineAsmEnd.
|
inline |
Definition at line 460 of file MCAsmInfo.h.
References InlineAsmStart.
|
inline |
Definition at line 446 of file MCAsmInfo.h.
References LabelSuffix.
|
inline |
Definition at line 484 of file MCAsmInfo.h.
References LCOMMDirectiveAlignmentType.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 455 of file MCAsmInfo.h.
References getPrivateGlobalPrefix(), hasLinkerPrivateGlobalPrefix(), and LinkerPrivateGlobalPrefix.
Referenced by llvm::MCContext::createLinkerPrivateTempSymbol().
|
inline |
Definition at line 436 of file MCAsmInfo.h.
References MaxInstLength.
Referenced by llvm::Mips16InstrInfo::getInlineAsmLength(), and llvm::TargetInstrInfo::getInlineAsmLength().
|
inline |
Definition at line 437 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 395 of file MCAsmInfo.h.
Referenced by llvm::AsmPrinter::doFinalization(), and llvm::MCELFStreamer::InitSections().
|
inline |
Get the pointer size in bytes.
Definition at line 367 of file MCAsmInfo.h.
References PointerSize.
Referenced by llvm::MCDwarfFrameEmitter::Emit(), EmitDwarfLineTable(), EmitGenDwarfAranges(), EmitGenDwarfInfo(), EmitGenDwarfRanges(), and getSizeForEncoding().
|
inline |
Definition at line 450 of file MCAsmInfo.h.
References PrivateGlobalPrefix.
Referenced by llvm::MCContext::createTempSymbol(), llvm::MCStreamer::getDwarfLineTableSymbol(), getLinkerPrivateGlobalPrefix(), llvm::MCContext::getOrCreateFrameAllocSymbol(), llvm::MCContext::getOrCreateLSDASymbol(), and llvm::MCContext::getOrCreateParentFrameOffsetSymbol().
|
inline |
Definition at line 451 of file MCAsmInfo.h.
References PrivateLabelPrefix.
Referenced by llvm::MachineBasicBlock::getSymbol().
|
inline |
Definition at line 504 of file MCAsmInfo.h.
References ProtectedVisibilityAttr.
|
inline |
Definition at line 439 of file MCAsmInfo.h.
References SeparatorString.
Referenced by llvm::Mips16InstrInfo::getInlineAsmLength(), llvm::TargetInstrInfo::getInlineAsmLength(), llvm::AsmLexer::isAtStatementSeparator(), and llvm::AsmLexer::LexToken().
|
inline |
Definition at line 475 of file MCAsmInfo.h.
References TextAlignFillValue.
|
inline |
Definition at line 492 of file MCAsmInfo.h.
References WeakDirective.
|
inline |
Definition at line 493 of file MCAsmInfo.h.
References WeakRefDirective.
Referenced by llvm::AsmPrinter::doFinalization().
|
inline |
Definition at line 512 of file MCAsmInfo.h.
References WinEHEncodingType.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 471 of file MCAsmInfo.h.
References ZeroDirective.
|
inline |
Definition at line 480 of file MCAsmInfo.h.
References HasAggressiveSymbolFolding.
Referenced by forceExpAbs().
|
inline |
Definition at line 488 of file MCAsmInfo.h.
References HasDotTypeDotSizeDirective.
Referenced by llvm::AsmPrinter::EmitFunctionBody(), and llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 487 of file MCAsmInfo.h.
References HasFunctionAlignment.
|
inline |
Definition at line 490 of file MCAsmInfo.h.
References HasIdentDirective.
|
inline |
Definition at line 452 of file MCAsmInfo.h.
References LinkerPrivateGlobalPrefix.
Referenced by getLinkerPrivateGlobalPrefix().
|
inline |
Definition at line 498 of file MCAsmInfo.h.
References HasLinkOnceDirective.
|
inline |
Definition at line 432 of file MCAsmInfo.h.
References HasMachoTBSSDirective.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 431 of file MCAsmInfo.h.
References HasMachoZeroFillDirective.
Referenced by llvm::AsmPrinter::EmitGlobalVariable().
|
inline |
Definition at line 491 of file MCAsmInfo.h.
References HasNoDeadStrip.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
|
inline |
Definition at line 489 of file MCAsmInfo.h.
References HasSingleParameterDotFile.
Referenced by llvm::AsmPrinter::doInitialization().
|
inline |
Definition at line 433 of file MCAsmInfo.h.
References HasStaticCtorDtorReferenceInStaticMode.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
|
inline |
Definition at line 381 of file MCAsmInfo.h.
References HasSubsectionsViaSymbols.
Referenced by llvm::AsmPrinter::EmitFunctionBody(), and llvm::AsmPrinter::EmitGlobalConstant().
|
inline |
Definition at line 495 of file MCAsmInfo.h.
References HasWeakDefCanBeHiddenDirective.
Referenced by canBeHidden().
|
inline |
Definition at line 494 of file MCAsmInfo.h.
References HasWeakDefDirective.
|
inline |
True if the target is little endian.
Definition at line 376 of file MCAsmInfo.h.
References IsLittleEndian.
Referenced by llvm::MCStreamer::EmitIntValue(), and 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 116 of file MCAsmInfo.cpp.
Referenced by canUsePrivateLabel(), and llvm::MCAssembler::getAtom().
|
inline |
True if target stack grow up.
Definition at line 379 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 147 of file MCAsmInfo.cpp.
References llvm::C, llvm::StringRef::empty(), and isAcceptableChar().
Referenced by llvm::MCSymbol::print().
|
inline |
Definition at line 425 of file MCAsmInfo.h.
References NeedsDwarfSectionOffsetDirective.
Referenced by llvm::AsmPrinter::emitDwarfSymbolReference(), EmitGenDwarfAranges(), EmitGenDwarfInfo(), and llvm::AsmPrinter::EmitLabelPlusOffset().
|
inline |
Definition at line 449 of file MCAsmInfo.h.
References NeedsLocalForSize.
Referenced by llvm::AsmPrinter::SetupMachineFunction().
|
inline |
Definition at line 552 of file MCAsmInfo.h.
References CompressDebugSections.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inlinevirtual |
Set whether assembly (inline or otherwise) should be parsed.
Reimplemented in llvm::ARMELFMCAsmInfo.
Definition at line 546 of file MCAsmInfo.h.
References UseIntegratedAssembler.
Referenced by llvm::LLVMTargetMachine::initAsmInfo().
|
inline |
Definition at line 556 of file MCAsmInfo.h.
References UseLogicalShr.
|
inline |
Definition at line 467 of file MCAsmInfo.h.
References SupportsQuotedNames.
Referenced by llvm::MCSymbol::print().
|
inline |
Definition at line 448 of file MCAsmInfo.h.
References UseAssignmentForEHBegin.
|
inline |
Definition at line 531 of file MCAsmInfo.h.
References DwarfRegNumForCFI.
|
inline |
Return true if assembly (inline or otherwise) should be parsed.
Definition at line 543 of file MCAsmInfo.h.
References UseIntegratedAssembler.
|
inline |
Definition at line 532 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 516 of file MCAsmInfo.h.
References llvm::ARM, llvm::DwarfCFI, ExceptionsType, and usesWindowsCFI().
Referenced by llvm::EHStreamer::computeCallSiteTable(), and llvm::DwarfCFIException::endModule().
|
inline |
Definition at line 421 of file MCAsmInfo.h.
References UsesELFSectionDirectiveForBSS.
Referenced by llvm::MCSectionELF::ShouldOmitSectionDirective().
|
inline |
Definition at line 417 of file MCAsmInfo.h.
References SunStyleELFSectionSwitchSyntax.
Referenced by llvm::MCSectionELF::PrintSwitchToSection().
|
inline |
Definition at line 521 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::X86RegisterInfo::eliminateFrameIndex(), llvm::X86FrameLowering::emitEpilogue(), llvm::X86FrameLowering::emitPrologue(), llvm::MCStreamer::EmitWinCFIStartProc(), llvm::X86FrameLowering::getFrameIndexOffset(), 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 221 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(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().
|
protected |
This is true if the assembler allows @ characters in symbol names.
Defaults to false.
Definition at line 156 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 177 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 182 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 152 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 69 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), getCalleeSaveStackSlotSize(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), 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 147 of file MCAsmInfo.h.
Referenced by llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getCode16Directive(), and MCAsmInfo().
|
protected |
Definition at line 148 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 149 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 257 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 113 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), getCommentString(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Compress DWARF debug sections. Defaults to false.
Definition at line 356 of file MCAsmInfo.h.
Referenced by compressDebugSections(), MCAsmInfo(), and setCompressDebugSections().
|
protected |
Definition at line 189 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 190 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 191 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 188 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), 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 105 of file MCAsmInfo.h.
Referenced by getDollarIsPC(), MCAsmInfo(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
True if DWARF FDE symbol reference relocations should be replaced by an absolute difference.
Definition at line 332 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 336 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 328 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 321 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), doesSupportExceptionHandling(), getExceptionHandlingType(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), 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 231 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 201 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 196 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 253 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), hasAggressiveSymbolFolding(), 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 269 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasDotTypeDotSizeDirective(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().
|
protected |
Definition at line 265 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 277 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 300 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 87 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 83 of file MCAsmInfo.h.
Referenced by hasMachoZeroFillDirective(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if this target supports the MachO .no_dead_strip directive.
Defaults to false.
Definition at line 281 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 273 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), hasSingleParameterDotFile(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), and llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo().
|
protected |
True if the compiler should emit a ".reference .constructors_used" or ".reference .destructors_used" directive after the static ctor/dtor list.
This directive is only emitted in Static relocation model. Default is false.
Definition at line 93 of file MCAsmInfo.h.
Referenced by hasStaticCtorDtorReferenceInStaticMode(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if this target has the MachO .subsections_via_symbols directive.
Default is false.
Definition at line 79 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 296 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 292 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 308 of file MCAsmInfo.h.
Referenced by getHiddenDeclarationVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), 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 304 of file MCAsmInfo.h.
Referenced by getHiddenVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
Definition at line 344 of file MCAsmInfo.h.
Referenced by addInitialFrameState(), and getInitialFrameState().
|
protected |
Definition at line 142 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 141 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 72 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), isLittleEndian(), 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 116 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 261 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 137 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 97 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 101 of file MCAsmInfo.h.
Referenced by getMinInstAlignment(), MCAsmInfo(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
Definition at line 213 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), and needsDwarfSectionOffsetDirective().
|
protected |
Definition at line 122 of file MCAsmInfo.h.
Referenced by MCAsmInfo(), needsLocalForSize(), and llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo().
|
protected |
Pointer size in bytes. Default is 4.
Definition at line 65 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), getPointerSize(), MCAsmInfo(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::MSP430MCAsmInfo::MSP430MCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), llvm::X86ELFMCAsmInfo::X86ELFMCAsmInfo(), llvm::X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(), llvm::X86MCAsmInfoGNUCOFF::X86MCAsmInfoGNUCOFF(), and llvm::X86MCAsmInfoMicrosoft::X86MCAsmInfoMicrosoft().
|
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 127 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMCOFFMCAsmInfoMicrosoft::ARMCOFFMCAsmInfoMicrosoft(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getPrivateGlobalPrefix(), MCAsmInfo(), llvm::MCAsmInfoELF::MCAsmInfoELF(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), 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 131 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::WebAssemblyMCAsmInfo::WebAssemblyMCAsmInfo(), 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 312 of file MCAsmInfo.h.
Referenced by getProtectedVisibilityAttr(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
|
protected |
This string, if specified, is used to separate instructions from each other when on the same line.
Defaults to ';'
Definition at line 109 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 238 of file MCAsmInfo.h.
Referenced by doesSetDirectiveSuppressesReloc(), MCAsmInfo(), and llvm::MCAsmInfoDarwin::MCAsmInfoDarwin().
|
protected |
True if target stack grow up. Default is false.
Definition at line 75 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 206 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 318 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), doesSupportDebugInformation(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::PPCMCAsmInfoDarwin::PPCMCAsmInfoDarwin(), 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 160 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 225 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 119 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 165 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 353 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::ARMCOFFMCAsmInfoGNU::ARMCOFFMCAsmInfoGNU(), llvm::ARMELFMCAsmInfo::ARMELFMCAsmInfo(), llvm::ARMMCAsmInfoDarwin::ARMMCAsmInfoDarwin(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), 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 360 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), 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 340 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 211 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoDarwin::AArch64MCAsmInfoDarwin(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), 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 284 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 288 of file MCAsmInfo.h.
Referenced by llvm::AArch64MCAsmInfoELF::AArch64MCAsmInfoELF(), llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), llvm::BPFMCAsmInfo::BPFMCAsmInfo(), getWeakRefDirective(), MCAsmInfo(), llvm::MCAsmInfoCOFF::MCAsmInfoCOFF(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), and llvm::MCAsmInfoELF::MCAsmInfoELF().
|
protected |
Windows exception handling data (.pdata) encoding. Defaults to Invalid.
Definition at line 324 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 173 of file MCAsmInfo.h.
Referenced by llvm::AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(), getZeroDirective(), llvm::HexagonMCAsmInfo::HexagonMCAsmInfo(), MCAsmInfo(), llvm::MCAsmInfoDarwin::MCAsmInfoDarwin(), llvm::MipsMCAsmInfo::MipsMCAsmInfo(), llvm::NVPTXMCAsmInfo::NVPTXMCAsmInfo(), llvm::PPCELFMCAsmInfo::PPCELFMCAsmInfo(), llvm::SparcELFMCAsmInfo::SparcELFMCAsmInfo(), llvm::SystemZMCAsmInfo::SystemZMCAsmInfo(), and llvm::XCoreMCAsmInfo::XCoreMCAsmInfo().
1.8.6