|
LLVM
10.0.0
|
#include "llvm/Target/TargetLoweringObjectFile.h"
Static Public Member Functions | |
| 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 Member Functions | |
| virtual MCSection * | SelectSectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const =0 |
Protected Attributes | |
| 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 |
Additional Inherited Members | |
Public Types inherited from llvm::MCObjectFileInfo | |
| enum | Environment { IsMachO, IsELF, IsCOFF, IsWasm, IsXCOFF } |
Definition at line 38 of file TargetLoweringObjectFile.h.
|
default |
|
delete |
|
virtual |
Definition at line 53 of file TargetLoweringObjectFile.cpp.
|
inlinevirtual |
Reimplemented in llvm::TargetLoweringObjectFileCOFF.
Definition at line 203 of file TargetLoweringObjectFile.h.
Referenced by llvm::AsmPrinter::doFinalization().
|
inlinevirtual |
Reimplemented in llvm::TargetLoweringObjectFileCOFF.
Definition at line 206 of file TargetLoweringObjectFile.h.
Referenced by llvm::AsmPrinter::doFinalization().
|
inlinevirtual |
Emit the module-level metadata that the platform cares about.
Reimplemented in llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, and llvm::TargetLoweringObjectFileELF.
Definition at line 81 of file TargetLoweringObjectFile.h.
Referenced by llvm::AsmPrinter::doFinalization().
|
virtual |
Reimplemented in llvm::TargetLoweringObjectFileELF.
Definition at line 133 of file TargetLoweringObjectFile.cpp.
Referenced by llvm::DwarfCFIException::endModule(), and getMangler().
|
inline |
Definition at line 151 of file TargetLoweringObjectFile.h.
References CallSiteEncoding, and getTTypeReference().
Referenced by llvm::EHStreamer::emitExceptionTable().
|
virtual |
Reimplemented in llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::AArch64_MachoTargetObjectFile, and llvm::X86_64MachoTargetObjectFile.
Definition at line 127 of file TargetLoweringObjectFile.cpp.
References llvm::TargetMachine::getSymbol().
Referenced by llvm::DwarfCFIException::beginFragment(), llvm::WinException::beginFunclet(), and SectionForGlobal().
|
inline |
Definition at line 69 of file TargetLoweringObjectFile.h.
Referenced by llvm::TargetLoweringObjectFileMachO::emitModuleMetadata(), llvm::TargetLoweringObjectFileCOFF::emitModuleMetadata(), llvm::MipsTargetObjectFile::getDebugThreadLocalSymbol(), llvm::HexagonTargetObjectFile::getExplicitSectionGlobal(), llvm::XCoreTargetObjectFile::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileWasm::getExplicitSectionGlobal(), llvm::AArch64_MachoTargetObjectFile::getIndirectSymViaGOTPCRel(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), llvm::TargetLoweringObjectFileCOFF::getSectionForJumpTable(), llvm::TargetLoweringObjectFileCOFF::getStaticCtorSection(), llvm::TargetLoweringObjectFileWasm::getStaticCtorSection(), llvm::TargetLoweringObjectFileCOFF::getStaticDtorSection(), llvm::TargetMachine::getSymbol(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), llvm::AArch64_MachoTargetObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), getTTypeGlobalReference(), getTTypeReference(), llvm::HexagonTargetObjectFile::Initialize(), llvm::RISCVELFTargetObjectFile::Initialize(), llvm::LanaiTargetObjectFile::Initialize(), llvm::MipsTargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileWasm::InitializeWasm(), llvm::TargetLoweringObjectFileCOFF::lowerRelativeReference(), llvm::TargetLoweringObjectFileWasm::lowerRelativeReference(), llvm::R600AsmPrinter::runOnMachineFunction(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileWasm::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileXCOFF::SelectSectionForGlobal(), and llvm::HexagonTargetObjectFile::shouldPutJumpTableInFunctionSection().
|
virtual |
Create a symbol reference to describe the given TLS variable when emitting the address in debug info.
Reimplemented in llvm::X86ELFTargetObjectFile, llvm::MipsTargetObjectFile, and llvm::ARMElfTargetObjectFile.
Definition at line 337 of file TargetLoweringObjectFile.cpp.
References llvm::MCSymbolRefExpr::create().
Referenced by llvm::DwarfCompileUnit::addLocationAttribute(), llvm::AddressPool::emit(), getStaticDtorSection(), and llvm::X86ELFTargetObjectFile::X86ELFTargetObjectFile().
|
pure virtual |
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.
Implemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::ARMElfTargetObjectFile, llvm::NVPTXTargetObjectFile, llvm::AMDGPUTargetObjectFile, llvm::XCoreTargetObjectFile, and llvm::HexagonTargetObjectFile.
Referenced by SectionForGlobal().
|
inlinevirtual |
Get the target specific PC relative GOT entry relocation.
Reimplemented in llvm::TargetLoweringObjectFileMachO, llvm::AArch64_MachoTargetObjectFile, and llvm::X86_64MachoTargetObjectFile.
Definition at line 194 of file TargetLoweringObjectFile.h.
Referenced by handleIndirectSymViaGOTPCRel().
|
static |
Classify the specified global variable into a set of target independent categories embodied in SectionKind.
getKindForGlobal - This is a top-level target-independent classifier for a global object.
Given a global variable and information from the TM, this function classifies the global in a target independent manner. This function may be overridden by the target implementation.
Definition at line 143 of file TargetLoweringObjectFile.cpp.
References assert(), C, llvm::SectionKind::getBSS(), llvm::SectionKind::getBSSExtern(), llvm::SectionKind::getBSSLocal(), llvm::SectionKind::getCommon(), llvm::SectionKind::getData(), llvm::SectionKind::getMergeable1ByteCString(), llvm::SectionKind::getMergeable2ByteCString(), llvm::SectionKind::getMergeable4ByteCString(), llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst32(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getReadOnlyWithRel(), llvm::TargetMachine::getRelocationModel(), llvm::SectionKind::getText(), llvm::SectionKind::getThreadBSS(), llvm::SectionKind::getThreadData(), llvm::Value::getType(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalValue::isDeclaration(), IsNullTerminatedString(), isSuitableForBSS(), llvm::Constant::needsRelocation(), llvm::TargetOptions::NoZerosInBSS, llvm::TargetMachine::Options, llvm::Reloc::ROPI, llvm::Reloc::ROPI_RWPI, llvm::Reloc::RWPI, and llvm::Reloc::Static.
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), getModuleMetadata(), llvm::TargetLoweringObjectFileMachO::getNameWithPrefix(), llvm::LanaiTargetObjectFile::isGlobalInSmallSection(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), and SectionForGlobal().
|
inline |
Definition at line 149 of file TargetLoweringObjectFile.h.
References LSDAEncoding.
Referenced by llvm::DwarfCFIException::beginFragment(), llvm::DwarfCFIException::beginFunction(), and llvm::WinException::beginFunction().
|
inline |
Definition at line 70 of file TargetLoweringObjectFile.h.
References emitPersonalityValue(), Initialize(), and llvm::SystemZISD::TM.
Referenced by llvm::TargetLoweringObjectFileCOFF::emitLinkerFlagsForGlobal(), llvm::TargetLoweringObjectFileCOFF::emitLinkerFlagsForUsed(), llvm::AArch64MCInstLower::GetGlobalAddressSymbol(), llvm::AArch64_MachoTargetObjectFile::getNameWithPrefix(), llvm::TargetLoweringObjectFileMachO::getNameWithPrefix(), llvm::TargetLoweringObjectFileCOFF::getNameWithPrefix(), llvm::TargetMachine::getSymbol(), GetSymbolFromOperand(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), and llvm::TargetLoweringObjectFileWasm::SelectSectionForGlobal().
|
inlinevirtual |
Get the module-level metadata that the platform cares about.
Reimplemented in llvm::RISCVELFTargetObjectFile.
Definition at line 84 of file TargetLoweringObjectFile.h.
References C, getKindForGlobal(), getSectionForConstant(), and SectionForGlobal().
|
virtual |
Reimplemented in llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, and llvm::AArch64_MachoTargetObjectFile.
Definition at line 343 of file TargetLoweringObjectFile.cpp.
References llvm::Mangler::getNameWithPrefix().
Referenced by llvm::TargetMachine::getNameWithPrefix(), and SectionForGlobal().
|
inline |
Definition at line 148 of file TargetLoweringObjectFile.h.
References PersonalityEncoding.
Referenced by llvm::DwarfCFIException::beginFragment(), llvm::DwarfCFIException::beginFunction(), llvm::WinException::beginFunction(), and llvm::DwarfCFIException::endModule().
|
inlinevirtual |
If supported, return the section to use for the llvm.commandline metadata.
Otherwise, return nullptr.
Reimplemented in llvm::TargetLoweringObjectFileELF.
Definition at line 211 of file TargetLoweringObjectFile.h.
References SelectSectionForGlobal().
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
|
virtual |
Given a constant with the SectionKind, return a section that it should be placed in.
Given a mergable constant with the specified size and relocation information, return a section that it should be placed in.
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::MipsTargetObjectFile, llvm::LanaiTargetObjectFile, llvm::RISCVELFTargetObjectFile, llvm::XCoreTargetObjectFile, and llvm::NVPTXTargetObjectFile.
Definition at line 296 of file TargetLoweringObjectFile.cpp.
References llvm::MCObjectFileInfo::DataSection, llvm::SectionKind::isReadOnly(), and llvm::MCObjectFileInfo::ReadOnlySection.
Referenced by llvm::AsmPrinter::doFinalization(), llvm::AsmPrinter::EmitConstantPool(), getModuleMetadata(), llvm::TargetLoweringObjectFileCOFF::getSectionForConstant(), and getSectionForJumpTable().
|
virtual |
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileCOFF, and llvm::TargetLoweringObjectFileELF.
Definition at line 271 of file TargetLoweringObjectFile.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Arg::Key::Align, llvm::Module::getDataLayout(), llvm::GlobalValue::getParent(), llvm::SectionKind::getReadOnly(), and getSectionForConstant().
Referenced by llvm::AsmPrinter::EmitJumpTableInfo(), and SectionForGlobal().
|
inlinevirtual |
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileCOFF, and llvm::TargetLoweringObjectFileELF.
Definition at line 156 of file TargetLoweringObjectFile.h.
References StaticCtorSection.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
|
inlinevirtual |
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileCOFF, and llvm::TargetLoweringObjectFileELF.
Definition at line 161 of file TargetLoweringObjectFile.h.
References getDebugThreadLocalSymbol(), and StaticDtorSection.
Referenced by llvm::AsmPrinter::EmitSpecialLLVMGlobal().
| MCSymbol * TargetLoweringObjectFile::getSymbolWithGlobalValueBase | ( | const GlobalValue * | GV, |
| StringRef | Suffix, | ||
| const TargetMachine & | TM | ||
| ) | const |
Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix.
Definition at line 116 of file TargetLoweringObjectFile.cpp.
References assert(), llvm::StringRef::begin(), llvm::StringRef::empty(), llvm::StringRef::end(), llvm::Module::getDataLayout(), llvm::TargetMachine::getNameWithPrefix(), llvm::MCContext::getOrCreateSymbol(), llvm::GlobalValue::getParent(), and llvm::DataLayout::getPrivateGlobalPrefix().
Referenced by llvm::TargetLoweringObjectFileMachO::getCFIPersonalitySymbol(), llvm::AsmPrinter::getSymbolWithGlobalValueBase(), llvm::SparcELFTargetObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), and SectionForGlobal().
|
inline |
Definition at line 150 of file TargetLoweringObjectFile.h.
References TTypeEncoding.
Referenced by llvm::EHStreamer::emitExceptionTable().
|
virtual |
Return an MCExpr to use for a reference to the specified global variable from exception handling information.
getTTypeGlobalReference - Return an MCExpr to use for a reference to the specified global variable from exception handling information.
Reimplemented in llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::AArch64_MachoTargetObjectFile, llvm::SparcELFTargetObjectFile, llvm::ARMElfTargetObjectFile, and llvm::X86_64MachoTargetObjectFile.
Definition at line 308 of file TargetLoweringObjectFile.cpp.
References llvm::MCSymbolRefExpr::create(), getContext(), llvm::TargetMachine::getSymbol(), getTTypeReference(), and llvm::Ref.
Referenced by llvm::AsmPrinter::EmitTTypeReference(), llvm::TargetLoweringObjectFileELF::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), and SectionForGlobal().
| const MCExpr * TargetLoweringObjectFile::getTTypeReference | ( | const MCSymbolRefExpr * | Sym, |
| unsigned | Encoding, | ||
| MCStreamer & | Streamer | ||
| ) | const |
Definition at line 318 of file TargetLoweringObjectFile.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::MCContext::createTempSymbol(), llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_pcrel, llvm::MCStreamer::EmitLabel(), getContext(), and llvm::report_fatal_error().
Referenced by getCallSiteEncoding(), llvm::TargetLoweringObjectFileELF::getTTypeGlobalReference(), llvm::TargetLoweringObjectFileMachO::getTTypeGlobalReference(), and getTTypeGlobalReference().
|
virtual |
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 in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::MipsTargetObjectFile, llvm::LanaiTargetObjectFile, llvm::SparcELFTargetObjectFile, llvm::XCoreTargetObjectFile, llvm::ARMElfTargetObjectFile, llvm::NVPTXTargetObjectFile, llvm::RISCVELFTargetObjectFile, llvm::WebAssemblyTargetObjectFile, llvm::AVRTargetObjectFile, and llvm::HexagonTargetObjectFile.
Definition at line 39 of file TargetLoweringObjectFile.cpp.
References CallSiteEncoding, llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_uleb128, llvm::TargetMachine::getCodeModel(), llvm::TargetMachine::getTargetTriple(), llvm::MCObjectFileInfo::InitMCObjectFileInfo(), llvm::TargetMachine::isPositionIndependent(), llvm::CodeModel::Large, LSDAEncoding, PersonalityEncoding, and TTypeEncoding.
Referenced by getMangler(), llvm::WebAssemblyTargetObjectFile::Initialize(), llvm::NVPTXTargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and llvm::TargetLoweringObjectFileXCOFF::Initialize().
|
inlinevirtual |
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileCOFF, and llvm::TargetLoweringObjectFileELF.
Definition at line 170 of file TargetLoweringObjectFile.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
delete |
| MCSection * TargetLoweringObjectFile::SectionForGlobal | ( | const GlobalObject * | GO, |
| SectionKind | Kind, | ||
| const TargetMachine & | TM | ||
| ) | const |
This method computes the appropriate section to emit the specified global variable or function definition.
This should not be passed external (or available externally) globals.
Definition at line 246 of file TargetLoweringObjectFile.cpp.
References llvm::AMDGPU::HSAMD::Kernel::Key::Attrs, F(), getExplicitSectionGlobal(), llvm::GlobalObject::hasSection(), llvm::SectionKind::isBSS(), llvm::SectionKind::isData(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), and SelectSectionForGlobal().
Referenced by llvm::AsmPrinter::EmitGlobalVariable(), llvm::AsmPrinter::emitPatchableFunctionEntries(), getModuleMetadata(), llvm::TargetLoweringObjectFileMachO::getNameWithPrefix(), SectionForGlobal(), and llvm::AsmPrinter::SetupMachineFunction().
|
inline |
This method computes the appropriate section to emit the specified global variable or function definition.
This should not be passed external (or available externally) globals.
Definition at line 107 of file TargetLoweringObjectFile.h.
References F(), getCFIPersonalitySymbol(), getExplicitSectionGlobal(), getKindForGlobal(), getNameWithPrefix(), getSectionForJumpTable(), getSymbolWithGlobalValueBase(), getTTypeGlobalReference(), SectionForGlobal(), and shouldPutJumpTableInFunctionSection().
|
protectedpure virtual |
Implemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileCOFF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileELF, llvm::NVPTXTargetObjectFile, llvm::ARMElfTargetObjectFile, llvm::MipsTargetObjectFile, llvm::LanaiTargetObjectFile, llvm::RISCVELFTargetObjectFile, llvm::XCoreTargetObjectFile, llvm::AMDGPUTargetObjectFile, llvm::AVRTargetObjectFile, and llvm::HexagonTargetObjectFile.
Referenced by getSectionForCommandLines(), and SectionForGlobal().
|
virtual |
Reimplemented in llvm::TargetLoweringObjectFileXCOFF, llvm::TargetLoweringObjectFileWasm, llvm::TargetLoweringObjectFileELF, and llvm::HexagonTargetObjectFile.
Definition at line 279 of file TargetLoweringObjectFile.cpp.
References llvm::GlobalValue::isWeakForLinker().
Referenced by llvm::AsmPrinter::EmitJumpTableInfo(), and SectionForGlobal().
|
inline |
Target supports TLS offset relocation in debug section?
Definition at line 189 of file TargetLoweringObjectFile.h.
References SupportDebugThreadLocalLocation.
Referenced by llvm::DwarfCompileUnit::addLocationAttribute().
|
inline |
Target GOT "PC"-relative relocation supports encoding an additional binary expression with an offset?
Definition at line 184 of file TargetLoweringObjectFile.h.
References SupportGOTPCRelWithOffset.
Referenced by handleIndirectSymViaGOTPCRel().
|
inline |
Target supports replacing a data "PC"-relative access to a symbol through another symbol, by accessing the later via a GOT entry instead?
Definition at line 178 of file TargetLoweringObjectFile.h.
References SupportIndirectSymViaGOTPCRel.
Referenced by emitGlobalConstantImpl().
|
protected |
Definition at line 54 of file TargetLoweringObjectFile.h.
Referenced by getCallSiteEncoding(), and Initialize().
|
protected |
Definition at line 52 of file TargetLoweringObjectFile.h.
Referenced by getLSDAEncoding(), Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), and llvm::TargetLoweringObjectFileXCOFF::Initialize().
|
protected |
PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH.
Definition at line 51 of file TargetLoweringObjectFile.h.
Referenced by getPersonalityEncoding(), Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), and llvm::TargetLoweringObjectFileXCOFF::Initialize().
|
protected |
This section contains the static constructor pointer list.
Definition at line 57 of file TargetLoweringObjectFile.h.
Referenced by getStaticCtorSection(), llvm::TargetLoweringObjectFileCOFF::getStaticCtorSection(), llvm::TargetLoweringObjectFileWasm::getStaticCtorSection(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and llvm::TargetLoweringObjectFileWasm::InitializeWasm().
|
protected |
This section contains the static destructor pointer list.
Definition at line 60 of file TargetLoweringObjectFile.h.
Referenced by getStaticDtorSection(), llvm::TargetLoweringObjectFileCOFF::getStaticDtorSection(), llvm::TargetLoweringObjectFileMachO::Initialize(), and llvm::TargetLoweringObjectFileCOFF::Initialize().
Definition at line 47 of file TargetLoweringObjectFile.h.
Referenced by supportDebugThreadLocalLocation().
Definition at line 46 of file TargetLoweringObjectFile.h.
Referenced by llvm::AArch64_MachoTargetObjectFile::AArch64_MachoTargetObjectFile(), and supportGOTPCRelWithOffset().
Definition at line 45 of file TargetLoweringObjectFile.h.
Referenced by supportIndirectSymViaGOTPCRel(), and llvm::TargetLoweringObjectFileMachO::TargetLoweringObjectFileMachO().
|
protected |
Definition at line 53 of file TargetLoweringObjectFile.h.
Referenced by getTTypeEncoding(), Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileXCOFF::Initialize(), and llvm::TargetLoweringObjectFileWasm::InitializeWasm().
1.8.13