|
LLVM
3.7.0
|
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringExtras.h"#include "llvm/ADT/Triple.h"#include "llvm/CodeGen/MachineModuleInfoImpls.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Function.h"#include "llvm/IR/GlobalVariable.h"#include "llvm/IR/Mangler.h"#include "llvm/IR/Module.h"#include "llvm/MC/MCContext.h"#include "llvm/MC/MCExpr.h"#include "llvm/MC/MCSectionCOFF.h"#include "llvm/MC/MCSectionELF.h"#include "llvm/MC/MCSectionMachO.h"#include "llvm/MC/MCStreamer.h"#include "llvm/MC/MCSymbolELF.h"#include "llvm/MC/MCValue.h"#include "llvm/Support/Dwarf.h"#include "llvm/Support/ELF.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Target/TargetLowering.h"#include "llvm/Target/TargetMachine.h"#include "llvm/Target/TargetSubtargetInfo.h"Go to the source code of this file.
|
static |
Definition at line 519 of file TargetLoweringObjectFileImpl.cpp.
References llvm::GlobalValue::getComdat(), llvm::Comdat::getName(), and llvm::report_fatal_error().
Referenced by llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), and llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal().
|
static |
Definition at line 771 of file TargetLoweringObjectFileImpl.cpp.
References llvm::COFF::IMAGE_SCN_CNT_CODE, llvm::COFF::IMAGE_SCN_CNT_INITIALIZED_DATA, llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA, llvm::COFF::IMAGE_SCN_MEM_DISCARDABLE, llvm::COFF::IMAGE_SCN_MEM_EXECUTE, llvm::COFF::IMAGE_SCN_MEM_READ, llvm::COFF::IMAGE_SCN_MEM_WRITE, llvm::SectionKind::isBSS(), llvm::SectionKind::isMetadata(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), and llvm::SectionKind::isWriteable().
Referenced by llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), llvm::TargetLoweringObjectFileCOFF::getSectionForJumpTable(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
static |
Definition at line 877 of file TargetLoweringObjectFileImpl.cpp.
References llvm::SectionKind::isBSS(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isText(), and llvm::SectionKind::isThreadLocal().
Referenced by llvm::TargetLoweringObjectFileCOFF::getSectionForJumpTable(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
static |
Definition at line 805 of file TargetLoweringObjectFileImpl.cpp.
References llvm::GlobalValue::getComdat(), llvm::Comdat::getName(), llvm::Module::getNamedValue(), llvm::GlobalValue::getParent(), and llvm::report_fatal_error().
Referenced by llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), getSelectionForCOFF(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
static |
Definition at line 191 of file TargetLoweringObjectFileImpl.cpp.
References llvm::Comdat::Any, llvm::GlobalValue::getComdat(), llvm::Comdat::getName(), llvm::Comdat::getSelectionKind(), and llvm::report_fatal_error().
Referenced by llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), and selectELFSectionForGlobal().
|
static |
Definition at line 114 of file TargetLoweringObjectFileImpl.cpp.
References llvm::StringRef::empty(), llvm::SectionKind::getBSS(), llvm::SectionKind::getThreadBSS(), llvm::SectionKind::getThreadData(), and llvm::StringRef::startswith().
Referenced by llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal().
|
static |
Definition at line 167 of file TargetLoweringObjectFileImpl.cpp.
References llvm::SectionKind::isMergeableConst(), llvm::SectionKind::isMergeableCString(), llvm::SectionKind::isMetadata(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), llvm::SectionKind::isWriteable(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_EXECINSTR, llvm::ELF::SHF_MERGE, llvm::ELF::SHF_STRINGS, llvm::ELF::SHF_TLS, and llvm::ELF::SHF_WRITE.
Referenced by llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), and llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal().
|
static |
Definition at line 150 of file TargetLoweringObjectFileImpl.cpp.
References llvm::SectionKind::isBSS(), llvm::SectionKind::isThreadBSS(), llvm::ELF::SHT_FINI_ARRAY, llvm::ELF::SHT_INIT_ARRAY, llvm::ELF::SHT_NOBITS, llvm::ELF::SHT_PREINIT_ARRAY, and llvm::ELF::SHT_PROGBITS.
Referenced by llvm::TargetLoweringObjectFileELF::getExplicitSectionGlobal(), and selectELFSectionForGlobal().
|
static |
Return the section prefix name used by options FunctionsSections and DataSections.
Definition at line 224 of file TargetLoweringObjectFileImpl.cpp.
References llvm::SectionKind::isBSS(), llvm::SectionKind::isDataNoRel(), llvm::SectionKind::isDataRel(), llvm::SectionKind::isDataRelLocal(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isReadOnlyWithRel(), llvm::SectionKind::isReadOnlyWithRelLocal(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadBSS(), and llvm::SectionKind::isThreadData().
Referenced by selectELFSectionForGlobal().
|
static |
Definition at line 822 of file TargetLoweringObjectFileImpl.cpp.
References llvm::Comdat::Any, llvm::Comdat::ExactMatch, llvm::GlobalValue::getComdat(), getComdatGVForCOFF(), llvm::COFF::IMAGE_COMDAT_SELECT_ANY, llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE, llvm::COFF::IMAGE_COMDAT_SELECT_EXACT_MATCH, llvm::COFF::IMAGE_COMDAT_SELECT_LARGEST, llvm::COFF::IMAGE_COMDAT_SELECT_NODUPLICATES, llvm::COFF::IMAGE_COMDAT_SELECT_SAME_SIZE, llvm::Comdat::Largest, llvm::Comdat::NoDuplicates, and llvm::Comdat::SameSize.
Referenced by llvm::TargetLoweringObjectFileCOFF::getExplicitSectionGlobal(), and llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal().
|
static |
Definition at line 370 of file TargetLoweringObjectFileImpl.cpp.
References llvm::MCContext::getELFSection(), llvm::MCSymbol::getName(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_GROUP, llvm::ELF::SHF_WRITE, llvm::ELF::SHT_FINI_ARRAY, llvm::ELF::SHT_INIT_ARRAY, llvm::ELF::SHT_PROGBITS, and llvm::utostr().
Referenced by llvm::TargetLoweringObjectFileELF::getStaticCtorSection(), and llvm::TargetLoweringObjectFileELF::getStaticDtorSection().
|
static |
Definition at line 248 of file TargetLoweringObjectFileImpl.cpp.
References Align(), llvm::TargetMachine::getDataLayout(), getELFComdat(), llvm::MCContext::getELFSection(), getELFSectionType(), llvm::TargetMachine::getNameWithPrefix(), llvm::DataLayout::getPreferredAlignment(), getSectionPrefixForGlobal(), llvm::TargetMachine::getUniqueSectionNames(), llvm::SectionKind::isMergeable1ByteCString(), llvm::SectionKind::isMergeable2ByteCString(), llvm::SectionKind::isMergeable4ByteCString(), llvm::SectionKind::isMergeableConst(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst4(), llvm::SectionKind::isMergeableConst8(), llvm::SectionKind::isMergeableCString(), llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::ELF::SHF_GROUP, UniqueSectionNames(), and llvm::utostr().
Referenced by llvm::TargetLoweringObjectFileELF::getSectionForJumpTable(), and llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal().
1.8.6