LLVM API Documentation
#include <MipsTargetAsmInfo.h>
Public Member Functions | |
| MipsTargetAsmInfo (const MipsTargetMachine &TM) | |
| virtual SectionKind::Kind | SectionKindForGlobal (const GlobalValue *GV) const |
| virtual unsigned | SectionFlagsForGlobal (const GlobalValue *GV=NULL, const char *name=NULL) const |
| virtual const Section * | SelectSectionForGlobal (const GlobalValue *GV) const |
Definition at line 29 of file MipsTargetAsmInfo.h.
| MipsTargetAsmInfo::MipsTargetAsmInfo | ( | const MipsTargetMachine & | TM | ) | [explicit] |
Definition at line 20 of file MipsTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::AlignmentIsInBytes, llvm::SectionFlags::BSS, llvm::TargetAsmInfo::BSSSection, llvm::TargetAsmInfo::COMMDirectiveTakesAlignment, llvm::TargetAsmInfo::CommentString, llvm::TargetAsmInfo::CStringSection, llvm::TargetAsmInfo::Data16bitsDirective, llvm::TargetAsmInfo::Data32bitsDirective, llvm::TargetAsmInfo::Data64bitsDirective, llvm::TargetAsmInfo::getNamedSection(), llvm::TargetMachine::getSubtarget(), llvm::MipsSubtarget::hasABICall(), llvm::TargetAsmInfo::JumpTableDataSection, llvm::TargetAsmInfo::JumpTableDirective, llvm::TargetAsmInfo::PrivateGlobalPrefix, llvm::TargetAsmInfo::SmallBSSSection, llvm::TargetAsmInfo::SmallDataSection, llvm::SectionFlags::Writeable, and llvm::TargetAsmInfo::ZeroDirective.
| SectionKind::Kind MipsTargetAsmInfo::SectionKindForGlobal | ( | const GlobalValue * | GV | ) | const [virtual] |
SectionKindForGlobal - This hook allows the target to select proper section kind used for global emission.
Reimplemented from llvm::TargetAsmInfo.
Definition at line 57 of file MipsTargetAsmInfo.cpp.
References llvm::SectionKind::BSS, llvm::SectionKind::Data, llvm::SequentialType::getElementType(), llvm::MipsSubtarget::getSSectionThreshold(), llvm::TargetMachine::getTargetData(), llvm::GlobalValue::getType(), llvm::TargetData::getTypePaddedSize(), llvm::MipsSubtarget::hasABICall(), llvm::SectionKind::RODataMergeConst, llvm::TargetAsmInfo::SectionKindForGlobal(), llvm::SectionKind::SmallBSS, llvm::SectionKind::SmallData, TD, Threshold, and llvm::TargetAsmInfo::TM.
Referenced by SelectSectionForGlobal().
| unsigned MipsTargetAsmInfo::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 49 of file MipsTargetAsmInfo.cpp.
References llvm::TargetAsmInfo::SectionFlagsForGlobal(), and llvm::SectionFlags::Small.
| const Section * MipsTargetAsmInfo::SelectSectionForGlobal | ( | const GlobalValue * | GV | ) | const [virtual] |
Reimplemented from llvm::ELFTargetAsmInfo.
Definition at line 84 of file MipsTargetAsmInfo.cpp.
References llvm::dyn_cast(), llvm::TargetAsmInfo::getSmallBSSSection(), llvm::TargetAsmInfo::getSmallDataSection(), llvm::GlobalValue::mayBeOverridden(), SectionKindForGlobal(), llvm::ELFTargetAsmInfo::SelectSectionForGlobal(), llvm::SectionKind::SmallBSS, and llvm::SectionKind::SmallData.