|
LLVM
10.0.0
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Additional Inherited Members | |
Public Types inherited from llvm::MCObjectFileInfo | |
| enum | Environment { IsMachO, IsELF, IsCOFF, IsWasm, IsXCOFF } |
Static Public Member Functions inherited from llvm::TargetLoweringObjectFile | |
| static SectionKind | getKindForGlobal (const GlobalObject *GO, const TargetMachine &TM) |
| Classify the specified global variable into a set of target independent categories embodied in SectionKind. More... | |
Protected Attributes inherited from llvm::TargetLoweringObjectFile | |
| bool | SupportIndirectSymViaGOTPCRel = false |
| bool | SupportGOTPCRelWithOffset = true |
| bool | SupportDebugThreadLocalLocation = true |
| unsigned | PersonalityEncoding = 0 |
| PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH. More... | |
| unsigned | LSDAEncoding = 0 |
| unsigned | TTypeEncoding = 0 |
| unsigned | CallSiteEncoding = 0 |
| MCSection * | StaticCtorSection = nullptr |
| This section contains the static constructor pointer list. More... | |
| MCSection * | StaticDtorSection = nullptr |
| This section contains the static destructor pointer list. More... | |
Protected Attributes inherited from llvm::MCObjectFileInfo | |
| bool | CommDirectiveSupportsAlignment = false |
| True if .comm supports alignment. More... | |
| bool | SupportsWeakOmittedEHFrame = false |
| True if target object file supports a weak_definition of constant 0 for an omitted EH frame. More... | |
| bool | SupportsCompactUnwindWithoutEHFrame = false |
| True if the target object file supports emitting a compact unwind section without an associated EH frame section. More... | |
| bool | OmitDwarfIfHaveCompactUnwind = false |
| OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with compact unwind and other with dwarf unwind. More... | |
| unsigned | FDECFIEncoding = 0 |
| FDE CFI encoding. More... | |
| unsigned | CompactUnwindDwarfEHFrameOnly = 0 |
| Compact unwind encoding indicating that we should emit only an EH frame. More... | |
| MCSection * | TextSection = nullptr |
| Section directive for standard text. More... | |
| MCSection * | DataSection = nullptr |
| Section directive for standard data. More... | |
| MCSection * | BSSSection = nullptr |
| Section that is default initialized to zero. More... | |
| MCSection * | ReadOnlySection = nullptr |
| Section that is readonly and can contain arbitrary initialized data. More... | |
| MCSection * | LSDASection = nullptr |
| If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to. More... | |
| MCSection * | CompactUnwindSection = nullptr |
| If exception handling is supported by the target and the target can support a compact representation of the CIE and FDE, this is the section to emit them into. More... | |
| MCSection * | DwarfAbbrevSection = nullptr |
| MCSection * | DwarfInfoSection = nullptr |
| MCSection * | DwarfLineSection = nullptr |
| MCSection * | DwarfLineStrSection = nullptr |
| MCSection * | DwarfFrameSection = nullptr |
| MCSection * | DwarfPubTypesSection = nullptr |
| const MCSection * | DwarfDebugInlineSection = nullptr |
| MCSection * | DwarfStrSection = nullptr |
| MCSection * | DwarfLocSection = nullptr |
| MCSection * | DwarfARangesSection = nullptr |
| MCSection * | DwarfRangesSection = nullptr |
| MCSection * | DwarfMacinfoSection = nullptr |
| MCSection * | DwarfPubNamesSection = nullptr |
| MCSection * | DwarfDebugNamesSection = nullptr |
| Accelerator table sections. More... | |
| MCSection * | DwarfAccelNamesSection = nullptr |
| MCSection * | DwarfAccelObjCSection = nullptr |
| MCSection * | DwarfAccelNamespaceSection = nullptr |
| MCSection * | DwarfAccelTypesSection = nullptr |
| MCSection * | DwarfInfoDWOSection = nullptr |
| MCSection * | DwarfTypesDWOSection = nullptr |
| MCSection * | DwarfAbbrevDWOSection = nullptr |
| MCSection * | DwarfStrDWOSection = nullptr |
| MCSection * | DwarfLineDWOSection = nullptr |
| MCSection * | DwarfLocDWOSection = nullptr |
| MCSection * | DwarfStrOffDWOSection = nullptr |
| MCSection * | DwarfMacinfoDWOSection = nullptr |
| MCSection * | DwarfStrOffSection = nullptr |
| The DWARF v5 string offset and address table sections. More... | |
| MCSection * | DwarfAddrSection = nullptr |
| MCSection * | DwarfRnglistsSection = nullptr |
| The DWARF v5 range list section. More... | |
| MCSection * | DwarfLoclistsSection = nullptr |
| The DWARF v5 locations list section. More... | |
| MCSection * | DwarfRnglistsDWOSection = nullptr |
| The DWARF v5 range and location list sections for fission. More... | |
| MCSection * | DwarfLoclistsDWOSection = nullptr |
| MCSection * | DwarfCUIndexSection = nullptr |
| MCSection * | DwarfTUIndexSection = nullptr |
| MCSection * | DwarfGnuPubNamesSection = nullptr |
| Section for newer gnu pubnames. More... | |
| MCSection * | DwarfGnuPubTypesSection = nullptr |
| Section for newer gnu pubtypes. More... | |
| MCSection * | DwarfSwiftASTSection = nullptr |
| MCSection * | COFFDebugSymbolsSection = nullptr |
| MCSection * | COFFDebugTypesSection = nullptr |
| MCSection * | COFFGlobalTypeHashesSection = nullptr |
| MCSection * | TLSExtraDataSection = nullptr |
| Extra TLS Variable Data section. More... | |
| MCSection * | TLSDataSection = nullptr |
| Section directive for Thread Local data. ELF, MachO, COFF, and Wasm. More... | |
| MCSection * | TLSBSSSection = nullptr |
| Section directive for Thread Local uninitialized data. More... | |
| MCSection * | StackMapSection = nullptr |
| StackMap section. More... | |
| MCSection * | FaultMapSection = nullptr |
| FaultMap section. More... | |
| MCSection * | RemarksSection = nullptr |
| Remarks section. More... | |
| MCSection * | EHFrameSection = nullptr |
| EH frame section. More... | |
| MCSection * | StackSizesSection = nullptr |
| Section containing metadata on function stack sizes. More... | |
| DenseMap< const MCSymbol *, unsigned > | StackSizesUniquing |
| MCSection * | DataRelROSection = nullptr |
| MCSection * | MergeableConst4Section = nullptr |
| MCSection * | MergeableConst8Section = nullptr |
| MCSection * | MergeableConst16Section = nullptr |
| MCSection * | MergeableConst32Section = nullptr |
| MCSection * | TLSTLVSection = nullptr |
| Section for thread local structure information. More... | |
| const MCSection * | TLSThreadInitSection = nullptr |
| Section for thread local data initialization functions. More... | |
| MCSection * | CStringSection = nullptr |
| MCSection * | UStringSection = nullptr |
| MCSection * | TextCoalSection = nullptr |
| MCSection * | ConstTextCoalSection = nullptr |
| MCSection * | ConstDataSection = nullptr |
| MCSection * | DataCoalSection = nullptr |
| MCSection * | ConstDataCoalSection = nullptr |
| MCSection * | DataCommonSection = nullptr |
| MCSection * | DataBSSSection = nullptr |
| MCSection * | FourByteConstantSection = nullptr |
| MCSection * | EightByteConstantSection = nullptr |
| MCSection * | SixteenByteConstantSection = nullptr |
| MCSection * | LazySymbolPointerSection = nullptr |
| MCSection * | NonLazySymbolPointerSection = nullptr |
| MCSection * | ThreadLocalPointerSection = nullptr |
| MCSection * | DrectveSection = nullptr |
| COFF specific sections. More... | |
| MCSection * | PDataSection = nullptr |
| MCSection * | XDataSection = nullptr |
| MCSection * | SXDataSection = nullptr |
| MCSection * | GFIDsSection = nullptr |
| MCSection * | GLJMPSection = nullptr |
Definition at line 140 of file TargetLoweringObjectFileImpl.h.
|
overridedefault |
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1558 of file TargetLoweringObjectFileImpl.cpp.
References llvm::emitLinkerFlagsForGlobalCOFF(), llvm::TargetLoweringObjectFile::getMangler(), and llvm::MCObjectFileInfo::getTargetTriple().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1563 of file TargetLoweringObjectFileImpl.cpp.
References llvm::emitLinkerFlagsForUsedCOFF(), llvm::TargetLoweringObjectFile::getMangler(), and llvm::MCObjectFileInfo::getTargetTriple().
|
overridevirtual |
Emit Obj-C garbage collection and linker options.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1444 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCStreamer::AddBlankLine(), C, llvm::MCStreamer::EmitBytes(), llvm::MCStreamer::EmitIntValue(), llvm::MCStreamer::EmitLabel(), llvm::StringRef::empty(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getDrectveSection(), llvm::Module::getNamedMetadata(), GetObjCImageInfo(), llvm::SectionKind::getReadOnly(), llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::ARMBuildAttrs::Section, llvm::MCStreamer::SwitchSection(), and llvm::IndexedInstrProf::Version.
|
overridevirtual |
Targets should implement this method to assign a section to globals with an explicit section specfied.
The implementation of this method can assume that GO->hasSection() is true.
Implements llvm::TargetLoweringObjectFile.
Definition at line 1299 of file TargetLoweringObjectFileImpl.cpp.
References Characteristics, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCSymbol::getName(), llvm::GlobalObject::getSection(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::GlobalObject::hasComdat(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_SCN_LNK_COMDAT, Name, and Selection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1405 of file TargetLoweringObjectFileImpl.cpp.
References llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::Mangler::getNameWithPrefix(), and llvm::GlobalValue::hasPrivateLinkage().
|
overridevirtual |
Given a mergeable constant with the specified size and relocation information, return a section that it should be placed in.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1631 of file TargetLoweringObjectFileImpl.cpp.
References Characteristics, llvm::MCContext::getAsmInfo(), llvm::MCContext::getCOFFSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetLoweringObjectFile::getSectionForConstant(), llvm::MCAsmInfo::hasCOFFComdatConstants(), llvm::COFF::IMAGE_COMDAT_SELECT_ANY, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::SectionKind::isMergeableConst(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst32(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), and scalarConstantToHexString().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1417 of file TargetLoweringObjectFileImpl.cpp.
References C, Characteristics, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), llvm::GlobalObject::getComdat(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetMachine::getFunctionSections(), llvm::MCSymbol::getName(), llvm::SectionKind::getReadOnly(), llvm::TargetMachine::getSymbol(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_SCN_LNK_COMDAT, and llvm::MCObjectFileInfo::ReadOnlySection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1544 of file TargetLoweringObjectFileImpl.cpp.
References getCOFFStaticStructorSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getTargetTriple(), and llvm::TargetLoweringObjectFile::StaticCtorSection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1551 of file TargetLoweringObjectFileImpl.cpp.
References getCOFFStaticStructorSection(), llvm::TargetLoweringObjectFile::getContext(), llvm::MCObjectFileInfo::getTargetTriple(), and llvm::TargetLoweringObjectFile::StaticDtorSection.
|
overridevirtual |
This method must be called before any actual lowering is done.
Initialize - this method must be called before any actual lowering is done.
This specifies the current context for codegen, and gives the lowering implementations a chance to set up their default sections.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1481 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCContext::getCOFFSection(), llvm::SectionKind::getData(), llvm::SectionKind::getReadOnly(), llvm::TargetMachine::getTargetTriple(), llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_WRITE, llvm::TargetLoweringObjectFile::Initialize(), llvm::Triple::isWindowsItaniumEnvironment(), llvm::Triple::isWindowsMSVCEnvironment(), llvm::TargetLoweringObjectFile::StaticCtorSection, and llvm::TargetLoweringObjectFile::StaticDtorSection.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1568 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::TargetLoweringObjectFile::getContext(), llvm::Value::getName(), llvm::Type::getPointerAddressSpace(), llvm::TargetMachine::getSymbol(), llvm::TargetMachine::getTargetTriple(), llvm::GlobalValue::getType(), llvm::GlobalValue::hasExternalLinkage(), llvm::GlobalValue::hasSection(), llvm::Triple::isOSCygMing(), llvm::GlobalValue::isThreadLocal(), and llvm::MCSymbolRefExpr::VK_COFF_IMGREL32.
|
overridevirtual |
Implements llvm::TargetLoweringObjectFile.
Definition at line 1338 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::BSSSection, Characteristics, llvm::MCObjectFileInfo::DataSection, llvm::MCContext::GenericSectionID, llvm::MCContext::getCOFFSection(), getCOFFSectionFlags(), getCOFFSectionNameForUniqueGlobal(), getComdatGVForCOFF(), llvm::TargetLoweringObjectFile::getContext(), llvm::TargetMachine::getDataSections(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::MCSymbol::getName(), llvm::Value::getName(), llvm::Mangler::getNameWithPrefix(), getSelectionForCOFF(), llvm::TargetMachine::getSymbol(), llvm::MCObjectFileInfo::getTargetTriple(), llvm::GlobalObject::hasComdat(), llvm::GlobalValue::hasPrivateLinkage(), llvm::COFF::IMAGE_COMDAT_SELECT_NODUPLICATES, llvm::COFF::IMAGE_SCN_LNK_COMDAT, llvm::SectionKind::isBSS(), llvm::SectionKind::isCommon(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), Name, llvm::MCObjectFileInfo::ReadOnlySection, Selection, llvm::MCObjectFileInfo::TextSection, and llvm::MCObjectFileInfo::TLSDataSection.
1.8.13