LLVM API Documentation
#include <TargetLoweringObjectFile.h>
Definition at line 232 of file TargetLoweringObjectFile.h.
| llvm::TargetLoweringObjectFileMachO::TargetLoweringObjectFileMachO | ( | ) | [inline] |
Definition at line 249 of file TargetLoweringObjectFile.h.
| TargetLoweringObjectFileMachO::~TargetLoweringObjectFileMachO | ( | ) |
Definition at line 641 of file TargetLoweringObjectFile.cpp.
| void TargetLoweringObjectFileMachO::Initialize | ( | MCContext & | ctx, | |
| const TargetMachine & | TM | |||
| ) | [virtual] |
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 676 of file TargetLoweringObjectFile.cpp.
References llvm::TargetLoweringObjectFile::DataSection, llvm::TargetLoweringObjectFile::DwarfAbbrevSection, llvm::TargetLoweringObjectFile::DwarfARangesSection, llvm::TargetLoweringObjectFile::DwarfDebugInlineSection, llvm::TargetLoweringObjectFile::DwarfFrameSection, llvm::TargetLoweringObjectFile::DwarfInfoSection, llvm::TargetLoweringObjectFile::DwarfLineSection, llvm::TargetLoweringObjectFile::DwarfLocSection, llvm::TargetLoweringObjectFile::DwarfMacroInfoSection, llvm::TargetLoweringObjectFile::DwarfPubNamesSection, llvm::TargetLoweringObjectFile::DwarfPubTypesSection, llvm::TargetLoweringObjectFile::DwarfRangesSection, llvm::TargetLoweringObjectFile::DwarfStrSection, llvm::TargetLoweringObjectFile::EHFrameSection, llvm::SectionKind::getDataRel(), getMachOSection(), llvm::SectionKind::getMergeable1ByteCString(), llvm::SectionKind::getMergeable2ByteCString(), llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), llvm::SectionKind::getMetadata(), llvm::TargetData::getPointerSize(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getReadOnlyWithRel(), llvm::TargetMachine::getRelocationModel(), llvm::TargetMachine::getTargetData(), llvm::SectionKind::getText(), llvm::TargetLoweringObjectFile::Initialize(), llvm::TargetLoweringObjectFile::LSDASection, llvm::TargetLoweringObjectFile::ReadOnlySection, llvm::MCSectionMachO::S_16BYTE_LITERALS, llvm::MCSectionMachO::S_4BYTE_LITERALS, llvm::MCSectionMachO::S_8BYTE_LITERALS, llvm::MCSectionMachO::S_ATTR_DEBUG, llvm::MCSectionMachO::S_ATTR_LIVE_SUPPORT, llvm::MCSectionMachO::S_ATTR_NO_TOC, llvm::MCSectionMachO::S_ATTR_PURE_INSTRUCTIONS, llvm::MCSectionMachO::S_ATTR_STRIP_STATIC_SYMS, llvm::MCSectionMachO::S_COALESCED, llvm::MCSectionMachO::S_CSTRING_LITERALS, llvm::MCSectionMachO::S_LAZY_SYMBOL_POINTERS, llvm::MCSectionMachO::S_MOD_INIT_FUNC_POINTERS, llvm::MCSectionMachO::S_MOD_TERM_FUNC_POINTERS, llvm::MCSectionMachO::S_NON_LAZY_SYMBOL_POINTERS, llvm::Reloc::Static, llvm::TargetLoweringObjectFile::StaticCtorSection, llvm::TargetLoweringObjectFile::StaticDtorSection, and llvm::TargetLoweringObjectFile::TextSection.
| const MCSection * TargetLoweringObjectFileMachO::SelectSectionForGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [virtual] |
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 844 of file TargetLoweringObjectFile.cpp.
References llvm::TargetLoweringObjectFile::DataSection, llvm::TargetData::getPreferredAlignment(), llvm::TargetMachine::getTargetData(), llvm::SectionKind::isMergeable1ByteCString(), llvm::SectionKind::isMergeable2ByteCString(), llvm::SectionKind::isMergeableConst(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), llvm::GlobalValue::isWeakForLinker(), llvm::TargetLoweringObjectFile::ReadOnlySection, and llvm::TargetLoweringObjectFile::TextSection.
| const MCSection * TargetLoweringObjectFileMachO::getExplicitSectionGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [virtual] |
getExplicitSectionGlobal - Targets should implement this method to assign a section to globals with an explicit section specfied. The implementation of this method can assume that GV->hasSection() is true.
Implements llvm::TargetLoweringObjectFile.
Definition at line 809 of file TargetLoweringObjectFile.cpp.
References llvm::TargetLoweringObjectFile::DataSection, getMachOSection(), llvm::Value::getNameStr(), llvm::GlobalValue::getSection(), llvm::MCSectionMachO::getStubSize(), llvm::MCSectionMachO::getTypeAndAttributes(), llvm::llvm_report_error(), llvm::MCSectionMachO::ParseSectionSpecifier(), S, ARMBuildAttrs::Section, and Segment.
| const MCSection * TargetLoweringObjectFileMachO::getSectionForConstant | ( | SectionKind | Kind | ) | const [virtual] |
getSectionForConstant - Given a constant with the SectionKind, return a section that it should be placed in.
getSectionForConstant - Given a mergable constant with the specified size and relocation information, return a section that it should be placed in.
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 895 of file TargetLoweringObjectFile.cpp.
References llvm::SectionKind::isDataRel(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), and llvm::TargetLoweringObjectFile::ReadOnlySection.
| bool TargetLoweringObjectFileMachO::shouldEmitUsedDirectiveFor | ( | const GlobalValue * | GV, | |
| Mangler * | Mang | |||
| ) | const [virtual] |
shouldEmitUsedDirectiveFor - This hook allows targets to selectively decide not to emit the UsedDirective for some symbols in llvm.used. FIXME: REMOVE this (rdar://7071300)
shouldEmitUsedDirectiveFor - This hook allows targets to selectively decide not to emit the UsedDirective for some symbols in llvm.used.
On Darwin, internally linked data beginning with "L" or "l" does not have the directive emitted (this occurs in ObjC metadata).
Reimplemented from llvm::TargetLoweringObjectFile.
Definition at line 914 of file TargetLoweringObjectFile.cpp.
References llvm::Mangler::getMangledName(), llvm::GlobalValue::hasLocalLinkage(), and Name.
| const MCSectionMachO* llvm::TargetLoweringObjectFileMachO::getMachOSection | ( | const StringRef & | Segment, | |
| const StringRef & | Section, | |||
| unsigned | TypeAndAttributes, | |||
| SectionKind | K | |||
| ) | const [inline] |
getMachOSection - Return the MCSection for the specified mach-o section. This requires the operands to be valid.
Definition at line 272 of file TargetLoweringObjectFile.h.
Referenced by llvm::X86ATTAsmPrinter::doFinalization(), getExplicitSectionGlobal(), and Initialize().
| const MCSectionMachO * TargetLoweringObjectFileMachO::getMachOSection | ( | const StringRef & | Segment, | |
| const StringRef & | Section, | |||
| unsigned | TypeAndAttributes, | |||
| unsigned | Reserved2, | |||
| SectionKind | K | |||
| ) | const |
Definition at line 648 of file TargetLoweringObjectFile.cpp.
References llvm::SmallVectorImpl< char >::append(), llvm::StringRef::begin(), llvm::MCSectionMachO::Create(), llvm::SmallVectorImpl< char >::data(), llvm::StringRef::end(), Entry, llvm::TargetLoweringObjectFile::getContext(), Name, llvm::SmallVectorImpl< char >::push_back(), and llvm::SmallVectorImpl< char >::size().
| const MCSection* llvm::TargetLoweringObjectFileMachO::getTextCoalSection | ( | ) | const [inline] |
getTextCoalSection - Return the "__TEXT,__textcoal_nt" section we put weak symbols into.
Definition at line 286 of file TargetLoweringObjectFile.h.
| const MCSection* llvm::TargetLoweringObjectFileMachO::getLazySymbolPointerSection | ( | ) | const [inline] |
getLazySymbolPointerSection - Return the section corresponding to the .lazy_symbol_pointer directive.
Definition at line 292 of file TargetLoweringObjectFile.h.
| const MCSection* llvm::TargetLoweringObjectFileMachO::getNonLazySymbolPointerSection | ( | ) | const [inline] |
getNonLazySymbolPointerSection - Return the section corresponding to the .non_lazy_symbol_pointer directive.
Definition at line 298 of file TargetLoweringObjectFile.h.