LLVM API Documentation
#include <XCoreTargetAsmInfo.h>
Public Member Functions | |
| XCoreTargetAsmInfo (const XCoreTargetMachine &TM) | |
| virtual const Section * | SelectSectionForGlobal (const GlobalValue *GV) const |
| virtual std::string | printSectionFlags (unsigned flags) const |
| const Section * | MergeableConstSection (const GlobalVariable *GV) const |
| const Section * | MergeableConstSection (const Type *Ty) const |
| const Section * | MergeableStringSection (const GlobalVariable *GV) const |
| virtual const Section * | SelectSectionForMachineConst (const Type *Ty) const |
| virtual unsigned | SectionFlagsForGlobal (const GlobalValue *GV=NULL, const char *name=NULL) const |
Definition at line 25 of file XCoreTargetAsmInfo.h.
| XCoreTargetAsmInfo::XCoreTargetAsmInfo | ( | const XCoreTargetMachine & | TM | ) | [explicit] |
Definition at line 24 of file XCoreTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::AbsoluteDebugSectionOffsets, llvm::TargetAsmInfo::AscizDirective, llvm::SectionFlags::BSS, llvm::TargetAsmInfo::BSSSection_, llvm::SectionFlags::Code, llvm::TargetAsmInfo::CommentString, llvm::TargetAsmInfo::ConstantPoolSection, llvm::TargetAsmInfo::Data16bitsDirective, llvm::TargetAsmInfo::Data32bitsDirective, llvm::TargetAsmInfo::Data64bitsDirective, llvm::TargetAsmInfo::DataSection, llvm::TargetAsmInfo::DwarfAbbrevSection, llvm::TargetAsmInfo::DwarfARangesSection, llvm::TargetAsmInfo::DwarfFrameSection, llvm::TargetAsmInfo::DwarfInfoSection, llvm::TargetAsmInfo::DwarfLineSection, llvm::TargetAsmInfo::DwarfLocSection, llvm::TargetAsmInfo::DwarfMacInfoSection, llvm::TargetAsmInfo::DwarfPubNamesSection, llvm::TargetAsmInfo::DwarfPubTypesSection, llvm::TargetAsmInfo::DwarfRangesSection, llvm::TargetAsmInfo::DwarfStrSection, llvm::TargetAsmInfo::getNamedSection(), llvm::TargetAsmInfo::getUnnamedSection(), llvm::TargetAsmInfo::HasLEB128, llvm::XCoreSubtarget::isXS1A(), llvm::TargetAsmInfo::JumpTableDataSection, llvm::SectionFlags::None, llvm::TargetAsmInfo::PrivateGlobalPrefix, llvm::TargetAsmInfo::ReadOnlySection, llvm::TargetAsmInfo::SetDirective, llvm::SectionFlags::Small, llvm::TargetAsmInfo::TextSection, llvm::TargetAsmInfo::WeakDefDirective, llvm::TargetAsmInfo::WeakRefDirective, llvm::SectionFlags::Writeable, and llvm::TargetAsmInfo::ZeroDirective.
| const Section * XCoreTargetAsmInfo::SelectSectionForGlobal | ( | const GlobalValue * | GV | ) | const [virtual] |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 71 of file XCoreTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::DataSection, llvm::TargetAsmInfo::getBSSSection_(), llvm::TargetAsmInfo::getReadOnlySection(), Kind, MergeableStringSection(), llvm::SectionKind::RODataMergeConst, llvm::SectionKind::RODataMergeStr, llvm::TargetAsmInfo::SectionKindForGlobal(), llvm::ELFTargetAsmInfo::SelectSectionForGlobal(), llvm::SectionKind::ThreadBSS, and llvm::SectionKind::ThreadData.
| std::string XCoreTargetAsmInfo::printSectionFlags | ( | unsigned | flags | ) | const [virtual] |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 166 of file XCoreTargetAsmInfo.cpp.
References llvm::SectionFlags::BSS, llvm::SectionFlags::Code, llvm::SectionFlags::Debug, llvm::SectionFlags::getEntitySize(), llvm::SectionFlags::Mergeable, llvm::SectionFlags::Small, llvm::SectionFlags::Strings, llvm::SectionFlags::TLS, llvm::utostr(), and llvm::SectionFlags::Writeable.
| const Section * XCoreTargetAsmInfo::MergeableConstSection | ( | const GlobalVariable * | GV | ) | const |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 100 of file XCoreTargetAsmInfo.cpp.
References llvm::CallingConv::C, llvm::GlobalVariable::getInitializer(), and llvm::Value::getType().
Referenced by SelectSectionForMachineConst().
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 106 of file XCoreTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::getNamedSection(), llvm::TargetAsmInfo::getReadOnlySection(), llvm::TargetMachine::getTargetData(), llvm::TargetData::getTypePaddedSize(), llvm::SectionFlags::Mergeable, Name, llvm::SectionFlags::setEntitySize(), llvm::SectionFlags::Small, TD, llvm::TargetAsmInfo::TM, and llvm::utostr().
| const Section * XCoreTargetAsmInfo::MergeableStringSection | ( | const GlobalVariable * | GV | ) | const |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 123 of file XCoreTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::getReadOnlySection().
Referenced by SelectSectionForGlobal().
| const Section * XCoreTargetAsmInfo::SelectSectionForMachineConst | ( | const Type * | Ty | ) | const [virtual] |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 95 of file XCoreTargetAsmInfo.cpp.
References MergeableConstSection().
| unsigned XCoreTargetAsmInfo::SectionFlagsForGlobal | ( | const GlobalValue * | GV = NULL, |
|
| const char * | name = NULL | |||
| ) | const [virtual] |
SectionFlagsForGlobal - This hook allows the target to select proper section flags either for given global or for section.
Reimplemented from llvm::TargetAsmInfo.
Definition at line 129 of file XCoreTargetAsmInfo.cpp.
References llvm::SectionKind::BSS, llvm::SectionKind::Data, llvm::XCoreSubtarget::isXS1A(), Kind, llvm::SectionKind::ROData, llvm::SectionKind::RODataMergeConst, llvm::SectionKind::RODataMergeStr, llvm::TargetAsmInfo::SectionFlagsForGlobal(), llvm::TargetAsmInfo::SectionKindForGlobal(), llvm::SectionFlags::Small, llvm::SectionKind::SmallBSS, llvm::SectionKind::SmallData, llvm::SectionKind::SmallROData, llvm::SectionKind::ThreadBSS, llvm::SectionKind::ThreadData, llvm::SectionFlags::TLS, and llvm::SectionFlags::Writeable.