LLVM API Documentation
#include <TargetLoweringObjectFile.h>
Definition at line 30 of file TargetLoweringObjectFile.h.
| TargetLoweringObjectFile::TargetLoweringObjectFile | ( | ) | [protected] |
Definition at line 35 of file TargetLoweringObjectFile.cpp.
References BSSSection, DataSection, DwarfAbbrevSection, DwarfARangesSection, DwarfDebugInlineSection, DwarfFrameSection, DwarfInfoSection, DwarfLineSection, DwarfLocSection, DwarfMacroInfoSection, DwarfPubNamesSection, DwarfPubTypesSection, DwarfRangesSection, DwarfStrSection, EHFrameSection, LSDASection, ReadOnlySection, StaticCtorSection, StaticDtorSection, and TextSection.
| TargetLoweringObjectFile::~TargetLoweringObjectFile | ( | ) | [virtual] |
Definition at line 59 of file TargetLoweringObjectFile.cpp.
| MCContext& llvm::TargetLoweringObjectFile::getContext | ( | ) | const [inline] |
| virtual void llvm::TargetLoweringObjectFile::Initialize | ( | MCContext & | ctx, | |
| const TargetMachine & | TM | |||
| ) | [inline, 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 in llvm::TargetLoweringObjectFileELF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileCOFF, llvm::ARMElfTargetObjectFile, llvm::MipsTargetObjectFile, llvm::PIC16TargetObjectFile, and llvm::XCoreTargetObjectFile.
Definition at line 97 of file TargetLoweringObjectFile.h.
Referenced by llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and llvm::PIC16TargetObjectFile::Initialize().
| const MCSection* llvm::TargetLoweringObjectFile::getTextSection | ( | ) | const [inline] |
Definition at line 102 of file TargetLoweringObjectFile.h.
References TextSection.
Referenced by llvm::DwarfDebug::BeginModule(), llvm::DwarfDebug::EndModule(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), and SelectSectionForGlobal().
| const MCSection* llvm::TargetLoweringObjectFile::getDataSection | ( | ) | const [inline] |
Definition at line 103 of file TargetLoweringObjectFile.h.
References DataSection.
Referenced by llvm::DwarfDebug::EndModule(), llvm::TargetLoweringObjectFileCOFF::SelectSectionForGlobal(), and SelectSectionForGlobal().
| const MCSection* llvm::TargetLoweringObjectFile::getBSSSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getStaticCtorSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getStaticDtorSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getLSDASection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getEHFrameSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfAbbrevSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfInfoSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfLineSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfFrameSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfPubNamesSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfPubTypesSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfDebugInlineSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfStrSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfLocSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfARangesSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfRangesSection | ( | ) | const [inline] |
| const MCSection* llvm::TargetLoweringObjectFile::getDwarfMacroInfoSection | ( | ) | const [inline] |
| virtual bool llvm::TargetLoweringObjectFile::shouldEmitUsedDirectiveFor | ( | const GlobalValue * | GV, | |
| Mangler * | ||||
| ) | const [inline, 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)
Reimplemented in llvm::TargetLoweringObjectFileMachO.
Definition at line 129 of file TargetLoweringObjectFile.h.
| const MCSection * TargetLoweringObjectFile::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 in llvm::TargetLoweringObjectFileELF, and llvm::TargetLoweringObjectFileMachO.
Definition at line 271 of file TargetLoweringObjectFile.cpp.
References DataSection, llvm::SectionKind::isReadOnly(), and ReadOnlySection.
Referenced by llvm::AsmPrinter::EmitConstantPool(), and llvm::AsmPrinter::EmitJumpTableInfo().
| SectionKind TargetLoweringObjectFile::getKindForGlobal | ( | const GlobalValue * | GV, | |
| const TargetMachine & | TM | |||
| ) | [static] |
getKindForGlobal - 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 variable. Given an global variable and information from TM, it classifies the global in a variety of ways that make various target implementations simpler. The target implementation is free to ignore this extra info of course.
Definition at line 121 of file TargetLoweringObjectFile.cpp.
References llvm::CallingConv::C, llvm::dyn_cast(), llvm::SectionKind::getBSS(), llvm::SectionKind::getDataNoRel(), llvm::SectionKind::getDataRel(), llvm::SectionKind::getDataRelLocal(), llvm::GlobalVariable::getInitializer(), llvm::SectionKind::getMergeable1ByteCString(), llvm::SectionKind::getMergeable2ByteCString(), llvm::SectionKind::getMergeable4ByteCString(), llvm::SectionKind::getMergeableConst(), llvm::SectionKind::getMergeableConst16(), llvm::SectionKind::getMergeableConst4(), llvm::SectionKind::getMergeableConst8(), llvm::SectionKind::getReadOnly(), llvm::SectionKind::getReadOnlyWithRel(), llvm::SectionKind::getReadOnlyWithRelLocal(), llvm::Constant::getRelocationInfo(), llvm::TargetMachine::getRelocationModel(), llvm::TargetMachine::getTargetData(), llvm::SectionKind::getText(), llvm::SectionKind::getThreadBSS(), llvm::SectionKind::getThreadData(), llvm::Value::getType(), llvm::TargetData::getTypeAllocSize(), llvm::Constant::GlobalRelocations, llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalVariable::isConstant(), llvm::GlobalValue::isDeclaration(), IsNullTerminatedString(), isSuitableForBSS(), llvm::GlobalVariable::isThreadLocal(), llvm_unreachable, llvm::Constant::LocalRelocation, llvm::Constant::NoRelocation, and llvm::Reloc::Static.
Referenced by llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), and SectionForGlobal().
| const MCSection * TargetLoweringObjectFile::SectionForGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const |
SectionForGlobal - 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.
SectionForGlobal - 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 235 of file TargetLoweringObjectFile.cpp.
References getExplicitSectionGlobal(), llvm::GlobalValue::hasSection(), and SelectSectionForGlobal().
Referenced by llvm::PIC16AsmPrinter::doInitialization(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), and SectionForGlobal().
| const MCSection* llvm::TargetLoweringObjectFile::SectionForGlobal | ( | const GlobalValue * | GV, | |
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [inline] |
SectionForGlobal - 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 153 of file TargetLoweringObjectFile.h.
References getKindForGlobal(), and SectionForGlobal().
| virtual const MCSection* llvm::TargetLoweringObjectFile::getExplicitSectionGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [pure 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.
Implemented in llvm::TargetLoweringObjectFileELF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileCOFF, and llvm::PIC16TargetObjectFile.
Referenced by SectionForGlobal().
| virtual const MCSection* llvm::TargetLoweringObjectFile::getSpecialCasedSectionGlobals | ( | const GlobalValue * | GV, | |
| Mangler * | Mang, | |||
| SectionKind | Kind | |||
| ) | const [inline, virtual] |
getSpecialCasedSectionGlobals - Allow the target to completely override section assignment of a global.
Definition at line 171 of file TargetLoweringObjectFile.h.
| const MCSection * TargetLoweringObjectFile::SelectSectionForGlobal | ( | const GlobalValue * | GV, | |
| SectionKind | Kind, | |||
| Mangler * | Mang, | |||
| const TargetMachine & | TM | |||
| ) | const [protected, virtual] |
Reimplemented in llvm::TargetLoweringObjectFileELF, llvm::TargetLoweringObjectFileMachO, llvm::TargetLoweringObjectFileCOFF, llvm::MipsTargetObjectFile, and llvm::PIC16TargetObjectFile.
Definition at line 249 of file TargetLoweringObjectFile.cpp.
References BSSSection, getDataSection(), getTextSection(), llvm::SectionKind::isBSS(), llvm::SectionKind::isReadOnly(), llvm::SectionKind::isText(), llvm::SectionKind::isThreadLocal(), and ReadOnlySection.
Referenced by SectionForGlobal(), and llvm::PIC16TargetObjectFile::SelectSectionForGlobal().
const MCSection* llvm::TargetLoweringObjectFile::TextSection [protected] |
TextSection - Section directive for standard text.
Definition at line 41 of file TargetLoweringObjectFile.h.
Referenced by getTextSection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::PIC16TargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DataSection [protected] |
DataSection - Section directive for standard data.
Definition at line 45 of file TargetLoweringObjectFile.h.
Referenced by getDataSection(), llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), getSectionForConstant(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::XCoreTargetObjectFile::Initialize(), llvm::PIC16TargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::BSSSection [protected] |
BSSSection - Section that is default initialized to zero.
Definition at line 48 of file TargetLoweringObjectFile.h.
Referenced by getBSSSection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::XCoreTargetObjectFile::Initialize(), llvm::PIC16TargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), SelectSectionForGlobal(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::ReadOnlySection [protected] |
ReadOnlySection - Section that is readonly and can contain arbitrary initialized data. Targets are not required to have a readonly section. If they don't, various bits of code will fall back to using the data section for constants.
Definition at line 54 of file TargetLoweringObjectFile.h.
Referenced by llvm::TargetLoweringObjectFileMachO::getSectionForConstant(), getSectionForConstant(), llvm::TargetLoweringObjectFileELF::getSectionForConstant(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::XCoreTargetObjectFile::Initialize(), llvm::PIC16TargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), SelectSectionForGlobal(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::StaticCtorSection [protected] |
StaticCtorSection - This section contains the static constructor pointer list.
Definition at line 58 of file TargetLoweringObjectFile.h.
Referenced by getStaticCtorSection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::ARMElfTargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::StaticDtorSection [protected] |
StaticDtorSection - This section contains the static destructor pointer list.
Definition at line 62 of file TargetLoweringObjectFile.h.
Referenced by getStaticDtorSection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::ARMElfTargetObjectFile::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::LSDASection [protected] |
LSDASection - If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to.
Definition at line 66 of file TargetLoweringObjectFile.h.
Referenced by getLSDASection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileCOFF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::EHFrameSection [protected] |
EHFrameSection - If exception handling is supported by the target, this is the section the EH Frame is emitted to.
Definition at line 70 of file TargetLoweringObjectFile.h.
Referenced by getEHFrameSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfAbbrevSection [protected] |
Definition at line 74 of file TargetLoweringObjectFile.h.
Referenced by getDwarfAbbrevSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfInfoSection [protected] |
Definition at line 75 of file TargetLoweringObjectFile.h.
Referenced by getDwarfInfoSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfLineSection [protected] |
Definition at line 76 of file TargetLoweringObjectFile.h.
Referenced by getDwarfLineSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfFrameSection [protected] |
Definition at line 77 of file TargetLoweringObjectFile.h.
Referenced by getDwarfFrameSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfPubNamesSection [protected] |
Definition at line 78 of file TargetLoweringObjectFile.h.
Referenced by getDwarfPubNamesSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfPubTypesSection [protected] |
Definition at line 79 of file TargetLoweringObjectFile.h.
Referenced by getDwarfPubTypesSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfDebugInlineSection [protected] |
Definition at line 80 of file TargetLoweringObjectFile.h.
Referenced by getDwarfDebugInlineSection(), llvm::TargetLoweringObjectFileMachO::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfStrSection [protected] |
Definition at line 81 of file TargetLoweringObjectFile.h.
Referenced by getDwarfStrSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfLocSection [protected] |
Definition at line 82 of file TargetLoweringObjectFile.h.
Referenced by getDwarfLocSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfARangesSection [protected] |
Definition at line 83 of file TargetLoweringObjectFile.h.
Referenced by getDwarfARangesSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfRangesSection [protected] |
Definition at line 84 of file TargetLoweringObjectFile.h.
Referenced by getDwarfRangesSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().
const MCSection* llvm::TargetLoweringObjectFile::DwarfMacroInfoSection [protected] |
Definition at line 85 of file TargetLoweringObjectFile.h.
Referenced by getDwarfMacroInfoSection(), llvm::TargetLoweringObjectFileCOFF::Initialize(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::TargetLoweringObjectFileELF::Initialize(), and TargetLoweringObjectFile().