LLVM 20.0.0git
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
Protected Attributes | |
MCSymbolRefExpr::VariantKind | PLTRelativeVariantKind |
Protected Attributes inherited from llvm::TargetLoweringObjectFile | |
bool | SupportIndirectSymViaGOTPCRel = false |
bool | SupportGOTPCRelWithOffset = true |
bool | SupportDebugThreadLocalLocation = true |
bool | SupportDSOLocalEquivalentLowering = false |
unsigned | PersonalityEncoding = 0 |
PersonalityEncoding, LSDAEncoding, TTypeEncoding - Some encoding values for EH. | |
unsigned | LSDAEncoding = 0 |
unsigned | TTypeEncoding = 0 |
unsigned | CallSiteEncoding = 0 |
MCSection * | StaticCtorSection = nullptr |
This section contains the static constructor pointer list. | |
MCSection * | StaticDtorSection = nullptr |
This section contains the static destructor pointer list. | |
const TargetMachine * | TM = nullptr |
Protected Attributes inherited from llvm::MCObjectFileInfo | |
bool | SupportsWeakOmittedEHFrame = false |
True if target object file supports a weak_definition of constant 0 for an omitted EH frame. | |
bool | SupportsCompactUnwindWithoutEHFrame = false |
True if the target object file supports emitting a compact unwind section without an associated EH frame section. | |
bool | OmitDwarfIfHaveCompactUnwind = false |
OmitDwarfIfHaveCompactUnwind - True if the target object file supports having some functions with compact unwind and other with dwarf unwind. | |
unsigned | FDECFIEncoding = 0 |
FDE CFI encoding. | |
unsigned | CompactUnwindDwarfEHFrameOnly = 0 |
Compact unwind encoding indicating that we should emit only an EH frame. | |
MCSection * | TextSection = nullptr |
Section directive for standard text. | |
MCSection * | DataSection = nullptr |
Section directive for standard data. | |
MCSection * | BSSSection = nullptr |
Section that is default initialized to zero. | |
MCSection * | ReadOnlySection = nullptr |
Section that is readonly and can contain arbitrary initialized data. | |
MCSection * | LSDASection = nullptr |
If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to. | |
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. | |
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 * | DwarfMacroSection = nullptr |
MCSection * | DwarfPubNamesSection = nullptr |
MCSection * | DwarfDebugNamesSection = nullptr |
Accelerator table sections. | |
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 * | DwarfMacroDWOSection = nullptr |
MCSection * | DwarfStrOffSection = nullptr |
The DWARF v5 string offset and address table sections. | |
MCSection * | DwarfAddrSection = nullptr |
MCSection * | DwarfRnglistsSection = nullptr |
The DWARF v5 range list section. | |
MCSection * | DwarfLoclistsSection = nullptr |
The DWARF v5 locations list section. | |
MCSection * | DwarfRnglistsDWOSection = nullptr |
The DWARF v5 range and location list sections for fission. | |
MCSection * | DwarfLoclistsDWOSection = nullptr |
MCSection * | DwarfCUIndexSection = nullptr |
MCSection * | DwarfTUIndexSection = nullptr |
MCSection * | DwarfGnuPubNamesSection = nullptr |
Section for newer gnu pubnames. | |
MCSection * | DwarfGnuPubTypesSection = nullptr |
Section for newer gnu pubtypes. | |
MCSection * | DwarfSwiftASTSection = nullptr |
MCSection * | COFFDebugSymbolsSection = nullptr |
MCSection * | COFFDebugTypesSection = nullptr |
MCSection * | COFFGlobalTypeHashesSection = nullptr |
MCSection * | TLSExtraDataSection = nullptr |
Extra TLS Variable Data section. | |
MCSection * | TLSDataSection = nullptr |
Section directive for Thread Local data. ELF, MachO, COFF, and Wasm. | |
MCSection * | TLSBSSSection = nullptr |
Section directive for Thread Local uninitialized data. | |
MCSection * | StackMapSection = nullptr |
StackMap section. | |
MCSection * | FaultMapSection = nullptr |
FaultMap section. | |
MCSection * | RemarksSection = nullptr |
Remarks section. | |
MCSection * | EHFrameSection = nullptr |
EH frame section. | |
MCSection * | StackSizesSection = nullptr |
Section containing metadata on function stack sizes. | |
MCSection * | PseudoProbeSection = nullptr |
Section for pseudo probe information used by AutoFDO. | |
MCSection * | PseudoProbeDescSection = nullptr |
MCSection * | LLVMStatsSection = nullptr |
MCSection * | DataRelROSection = nullptr |
MCSection * | MergeableConst4Section = nullptr |
MCSection * | MergeableConst8Section = nullptr |
MCSection * | MergeableConst16Section = nullptr |
MCSection * | MergeableConst32Section = nullptr |
MCSection * | TLSTLVSection = nullptr |
Section for thread local structure information. | |
const MCSection * | TLSThreadInitSection = nullptr |
Section for thread local data initialization functions. | |
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 * | AddrSigSection = nullptr |
MCSection * | DrectveSection = nullptr |
COFF specific sections. | |
MCSection * | PDataSection = nullptr |
MCSection * | XDataSection = nullptr |
MCSection * | SXDataSection = nullptr |
MCSection * | GEHContSection = nullptr |
MCSection * | GFIDsSection = nullptr |
MCSection * | GIATsSection = nullptr |
MCSection * | GLJMPSection = nullptr |
MCSection * | PPA1Section = nullptr |
MCSection * | PPA2Section = nullptr |
MCSection * | PPA2ListSection = nullptr |
MCSection * | ADASection = nullptr |
MCSection * | IDRLSection = nullptr |
MCSection * | TOCBaseSection = nullptr |
MCSection * | ReadOnly8Section = nullptr |
MCSection * | ReadOnly16Section = nullptr |
std::array< MCSection *, binaryformat::Swift5ReflectionSectionKind::last > | Swift5ReflectionSections = {} |
Additional Inherited Members | |
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. | |
virtual MCSection * | SelectSectionForGlobal (const GlobalObject *GO, SectionKind Kind, const TargetMachine &TM) const =0 |
Definition at line 34 of file TargetLoweringObjectFileImpl.h.
TargetLoweringObjectFileELF::TargetLoweringObjectFileELF | ( | ) |
Definition at line 117 of file TargetLoweringObjectFileImpl.cpp.
References llvm::TargetLoweringObjectFile::SupportDSOLocalEquivalentLowering.
|
overridedefault |
|
overridevirtual |
Emit Obj-C garbage collection and linker options.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 305 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCStreamer::addBlankLine(), assert(), llvm::CallingConv::C, llvm::MCStreamer::emitBytes(), llvm::TargetLoweringObjectFile::emitCGProfileMetadata(), llvm::MCStreamer::emitInt32(), llvm::MCStreamer::emitInt64(), llvm::MCStreamer::emitInt8(), llvm::MCStreamer::emitLabel(), llvm::MCStreamer::emitULEB128IntValue(), llvm::encodeBase64(), llvm::MCObjectFileInfo::getContext(), llvm::TargetMachine::getFunctionSections(), GetObjCImageInfo(), I, Name, llvm::PseudoProbeDescMetadataName, llvm::report_fatal_error(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_EXCLUDE, llvm::ELF::SHF_MERGE, llvm::ELF::SHF_STRINGS, llvm::ELF::SHT_LLVM_DEPENDENT_LIBRARIES, llvm::ELF::SHT_LLVM_LINKER_OPTIONS, llvm::ELF::SHT_PROGBITS, llvm::Twine::str(), llvm::MCStreamer::switchSection(), llvm::TargetLoweringObjectFile::TM, and llvm::Version.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 415 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCConstantExpr::create(), DL, llvm::MCStreamer::emitELFSize(), llvm::MCStreamer::emitLabel(), emitPersonalityValueImpl(), llvm::MCStreamer::emitSymbolAttribute(), llvm::MCStreamer::emitValueToAlignment(), llvm::MCObjectFileInfo::getContext(), llvm::MCContext::getELFNamedSection(), llvm::MCSA_ELF_TypeObject, llvm::MCSA_Hidden, llvm::MCSA_Weak, llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_GROUP, llvm::ELF::SHF_WRITE, llvm::ELF::SHT_PROGBITS, Size, llvm::MCStreamer::switchSection(), and Sym.
|
virtual |
Reimplemented in llvm::AArch64_ELFTargetObjectFile.
Definition at line 438 of file TargetLoweringObjectFileImpl.cpp.
References DL, llvm::MCStreamer::emitSymbolValue(), and Sym.
Referenced by emitPersonalityValue(), and llvm::AArch64_ELFTargetObjectFile::emitPersonalityValueImpl().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 403 of file TargetLoweringObjectFileImpl.cpp.
References llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_indirect, llvm::MCObjectFileInfo::getContext(), llvm::MCSymbol::getName(), llvm::MCContext::getOrCreateSymbol(), llvm::TargetLoweringObjectFile::getPersonalityEncoding(), llvm::TargetMachine::getSymbol(), llvm::report_fatal_error(), and llvm::TargetLoweringObjectFile::TM.
|
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.
Reimplemented in llvm::AMDGPUTargetObjectFile, llvm::ARMElfTargetObjectFile, llvm::HexagonTargetObjectFile, and llvm::XCoreTargetObjectFile.
Definition at line 855 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), llvm::TargetLoweringObjectFile::getMangler(), selectExplicitSectionGlobal(), and llvm::TargetLoweringObjectFile::TM.
Referenced by llvm::AMDGPUTargetObjectFile::getExplicitSectionGlobal(), llvm::ARMElfTargetObjectFile::getExplicitSectionGlobal(), and llvm::HexagonTargetObjectFile::getExplicitSectionGlobal().
|
overridevirtual |
Get the module-level metadata that the platform cares about.
Reimplemented from llvm::TargetLoweringObjectFile.
Reimplemented in llvm::RISCVELFTargetObjectFile.
Definition at line 297 of file TargetLoweringObjectFileImpl.cpp.
References llvm::collectUsedGlobalVariables().
Referenced by llvm::RISCVELFTargetObjectFile::getModuleMetadata().
|
overridevirtual |
If supported, return the section to use for the llvm.commandline metadata.
Otherwise, return nullptr.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1169 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), llvm::MCContext::getELFSection(), llvm::ELF::SHF_MERGE, llvm::ELF::SHF_STRINGS, and llvm::ELF::SHT_PROGBITS.
|
overridevirtual |
Given a constant with the SectionKind, return a section that it should be placed in.
Given a mergeable constant with the specified size and relocation information, return a section that it should be placed in.
Reimplemented from llvm::TargetLoweringObjectFile.
Reimplemented in llvm::LanaiTargetObjectFile, llvm::MipsTargetObjectFile, llvm::RISCVELFTargetObjectFile, and llvm::XCoreTargetObjectFile.
Definition at line 1015 of file TargetLoweringObjectFileImpl.cpp.
References assert(), llvm::MCObjectFileInfo::DataRelROSection, llvm::MCObjectFileInfo::MergeableConst16Section, llvm::MCObjectFileInfo::MergeableConst32Section, llvm::MCObjectFileInfo::MergeableConst4Section, llvm::MCObjectFileInfo::MergeableConst8Section, and llvm::MCObjectFileInfo::ReadOnlySection.
Referenced by llvm::LanaiTargetObjectFile::getSectionForConstant(), llvm::MipsTargetObjectFile::getSectionForConstant(), and llvm::RISCVELFTargetObjectFile::getSectionForConstant().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 956 of file TargetLoweringObjectFileImpl.cpp.
References llvm::CallingConv::C, F, llvm::MCObjectFileInfo::getContext(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::SectionKind::getReadOnly(), llvm::MCObjectFileInfo::ReadOnlySection, selectELFSectionForGlobal(), llvm::ELF::SHF_ALLOC, and llvm::TargetLoweringObjectFile::TM.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 971 of file TargetLoweringObjectFileImpl.cpp.
References llvm::Comdat::Any, llvm::CallingConv::C, F, llvm::MCObjectFileInfo::getContext(), getELFComdat(), llvm::MCContext::getELFSection(), llvm::TargetMachine::getFunctionSections(), llvm::TargetMachine::getUniqueSectionNames(), llvm::MCObjectFileInfo::LSDASection, llvm::MCSection::NonUniqueID, llvm::ELF::SHF_GROUP, llvm::ELF::SHF_LINK_ORDER, and llvm::TargetLoweringObjectFile::TM.
|
overridevirtual |
Returns a unique section for the given machine basic block.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1034 of file TargetLoweringObjectFileImpl.cpp.
References assert(), llvm::BBSectionsColdTextPrefix, llvm::MBBSectionID::ColdSectionID, llvm::MBBSectionID::ExceptionSectionID, F, llvm::MCContext::GenericSectionID, llvm::MCObjectFileInfo::getContext(), llvm::MCContext::getELFSection(), llvm::MachineFunction::getName(), llvm::MCSection::getName(), llvm::MCSymbol::getName(), llvm::MachineBasicBlock::getParent(), llvm::MachineFunction::getSection(), llvm::MachineBasicBlock::getSectionID(), llvm::MachineBasicBlock::getSymbol(), llvm::TargetMachine::getUniqueBasicBlockSectionNames(), llvm::MachineBasicBlock::isBeginSection(), MBB, Name, llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_EXECINSTR, llvm::ELF::SHF_GROUP, llvm::ELF::SHT_PROGBITS, llvm::StringRef::starts_with(), and llvm::TargetLoweringObjectFile::TM.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1123 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), and getStaticStructorSection().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1129 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), and getStaticStructorSection().
|
overridevirtual |
Return an MCExpr to use for a reference to the specified type info global variable from exception handling information.
Reimplemented from llvm::TargetLoweringObjectFile.
Reimplemented in llvm::ARMElfTargetObjectFile, and llvm::SparcELFTargetObjectFile.
Definition at line 444 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::dwarf::DW_EH_PE_indirect, llvm::MCObjectFileInfo::getContext(), llvm::MachineModuleInfoELF::getGVStubEntry(), llvm::MachineModuleInfo::getObjFileInfo(), llvm::PointerIntPair< PointerTy, IntBits, IntType, PtrTraits, Info >::getPointer(), llvm::TargetMachine::getSymbol(), llvm::TargetLoweringObjectFile::getSymbolWithGlobalValueBase(), llvm::TargetLoweringObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFile::getTTypeReference(), llvm::GlobalValue::hasLocalLinkage(), Sym, and llvm::TargetLoweringObjectFile::TM.
Referenced by llvm::ARMElfTargetObjectFile::getTTypeGlobalReference(), and llvm::SparcELFTargetObjectFile::getTTypeGlobalReference().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 940 of file TargetLoweringObjectFileImpl.cpp.
References F, llvm::MCObjectFileInfo::getContext(), getELFSectionFlags(), llvm::TargetLoweringObjectFile::getMangler(), llvm::SectionKind::getText(), selectELFSectionForGlobal(), selectExplicitSectionGlobal(), and llvm::TargetLoweringObjectFile::TM.
|
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.
Reimplemented in llvm::ARMElfTargetObjectFile, llvm::AVRTargetObjectFile, llvm::CSKYELFTargetObjectFile, llvm::HexagonTargetObjectFile, llvm::LanaiTargetObjectFile, llvm::M68kELFTargetObjectFile, llvm::MipsTargetObjectFile, llvm::RISCVELFTargetObjectFile, llvm::SparcELFTargetObjectFile, and llvm::XCoreTargetObjectFile.
Definition at line 121 of file TargetLoweringObjectFileImpl.cpp.
References llvm::Triple::aarch64, llvm::Triple::aarch64_32, llvm::Triple::aarch64_be, llvm::ARM, llvm::Triple::arm, llvm::Triple::armeb, llvm::TargetLoweringObjectFile::CallSiteEncoding, llvm::dwarf::DW_EH_PE_absptr, llvm::dwarf::DW_EH_PE_indirect, llvm::dwarf::DW_EH_PE_pcrel, llvm::dwarf::DW_EH_PE_sdata4, llvm::dwarf::DW_EH_PE_sdata8, llvm::dwarf::DW_EH_PE_udata4, llvm::dwarf::DW_EH_PE_udata8, llvm::Triple::getArch(), llvm::MCContext::getAsmInfo(), llvm::TargetMachine::getCodeModel(), llvm::Triple::getEnvironment(), llvm::MCAsmInfo::getExceptionHandlingType(), llvm::TargetMachine::getTargetTriple(), llvm::Triple::GNUILP32, llvm::Triple::hexagon, llvm::TargetLoweringObjectFile::Initialize(), InitializeELF(), llvm::Triple::isOSFreeBSD(), llvm::MCObjectFileInfo::isPositionIndependent(), llvm::Triple::lanai, llvm::Triple::loongarch32, llvm::Triple::loongarch64, llvm::TargetLoweringObjectFile::LSDAEncoding, llvm::CodeModel::Medium, llvm::Triple::mips, llvm::Triple::mips64, llvm::Triple::mips64el, llvm::Triple::mipsel, llvm::TargetMachine::Options, llvm::TargetLoweringObjectFile::PersonalityEncoding, llvm::Triple::ppc, llvm::Triple::ppc64, llvm::Triple::ppc64le, llvm::Triple::ppcle, llvm::Triple::riscv32, llvm::Triple::riscv64, llvm::CodeModel::Small, llvm::Triple::sparc, llvm::Triple::sparcel, llvm::Triple::sparcv9, llvm::Triple::systemz, llvm::Triple::thumb, llvm::Triple::thumbeb, llvm::TargetLoweringObjectFile::TTypeEncoding, llvm::TargetOptions::UseInitArray, llvm::Triple::x86, and llvm::Triple::x86_64.
Referenced by llvm::ARMElfTargetObjectFile::Initialize(), llvm::AVRTargetObjectFile::Initialize(), llvm::CSKYELFTargetObjectFile::Initialize(), llvm::HexagonTargetObjectFile::Initialize(), llvm::LanaiTargetObjectFile::Initialize(), llvm::M68kELFTargetObjectFile::Initialize(), llvm::MipsTargetObjectFile::Initialize(), llvm::RISCVELFTargetObjectFile::Initialize(), llvm::SparcELFTargetObjectFile::Initialize(), and llvm::XCoreTargetObjectFile::Initialize().
void TargetLoweringObjectFileELF::InitializeELF | ( | bool | UseInitArray_ | ) |
Definition at line 1178 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), llvm::MCContext::getELFSection(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_WRITE, llvm::ELF::SHT_FINI_ARRAY, llvm::ELF::SHT_INIT_ARRAY, llvm::ELF::SHT_PROGBITS, llvm::TargetLoweringObjectFile::StaticCtorSection, and llvm::TargetLoweringObjectFile::StaticDtorSection.
Referenced by Initialize(), llvm::ARMElfTargetObjectFile::Initialize(), and llvm::M68kELFTargetObjectFile::Initialize().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1155 of file TargetLoweringObjectFileImpl.cpp.
References assert(), llvm::MCSymbolRefExpr::create(), llvm::MCObjectFileInfo::getContext(), llvm::DSOLocalEquivalent::getGlobalValue(), llvm::TargetMachine::getSymbol(), PLTRelativeVariantKind, llvm::TargetLoweringObjectFile::supportDSOLocalEquivalentLowering(), and llvm::TargetLoweringObjectFile::TM.
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 1135 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createSub(), llvm::MCObjectFileInfo::getContext(), llvm::Type::getPointerAddressSpace(), llvm::TargetMachine::getSymbol(), llvm::Value::getType(), LHS, PLTRelativeVariantKind, RHS, and llvm::TargetLoweringObjectFile::TM.
|
overridevirtual |
Implements llvm::TargetLoweringObjectFile.
Reimplemented in llvm::AMDGPUTargetObjectFile, llvm::ARMElfTargetObjectFile, llvm::AVRTargetObjectFile, llvm::HexagonTargetObjectFile, llvm::LanaiTargetObjectFile, llvm::MipsTargetObjectFile, llvm::RISCVELFTargetObjectFile, and llvm::XCoreTargetObjectFile.
Definition at line 921 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCObjectFileInfo::getContext(), llvm::TargetMachine::getDataSections(), getELFSectionFlags(), llvm::TargetMachine::getFunctionSections(), llvm::TargetLoweringObjectFile::getMangler(), llvm::GlobalObject::hasComdat(), selectELFSectionForGlobal(), llvm::ELF::SHF_MERGE, and llvm::TargetLoweringObjectFile::TM.
Referenced by llvm::AMDGPUTargetObjectFile::SelectSectionForGlobal(), llvm::ARMElfTargetObjectFile::SelectSectionForGlobal(), llvm::AVRTargetObjectFile::SelectSectionForGlobal(), llvm::HexagonTargetObjectFile::SelectSectionForGlobal(), llvm::LanaiTargetObjectFile::SelectSectionForGlobal(), llvm::MipsTargetObjectFile::SelectSectionForGlobal(), and llvm::RISCVELFTargetObjectFile::SelectSectionForGlobal().
|
overridevirtual |
Reimplemented from llvm::TargetLoweringObjectFile.
Reimplemented in llvm::HexagonTargetObjectFile.
Definition at line 1006 of file TargetLoweringObjectFileImpl.cpp.
|
protected |
Definition at line 40 of file TargetLoweringObjectFileImpl.h.
Referenced by llvm::AArch64_ELFTargetObjectFile::AArch64_ELFTargetObjectFile(), llvm::ARMElfTargetObjectFile::ARMElfTargetObjectFile(), llvm::RISCVELFTargetObjectFile::Initialize(), lowerDSOLocalEquivalent(), lowerRelativeReference(), and llvm::X86ELFTargetObjectFile::X86ELFTargetObjectFile().