LLVM API Documentation
#include <MBlazeTargetObjectFile.h>


Public Member Functions | |
| void | Initialize (MCContext &Ctx, const TargetMachine &TM) |
| bool | IsGlobalInSmallSection (const GlobalValue *GV, const TargetMachine &TM, SectionKind Kind) const |
| bool | IsGlobalInSmallSection (const GlobalValue *GV, const TargetMachine &TM) const |
| const MCSection * | SelectSectionForGlobal (const GlobalValue *GV, SectionKind Kind, Mangler *Mang, const TargetMachine &TM) const |
Definition at line 17 of file MBlazeTargetObjectFile.h.
| void MBlazeTargetObjectFile::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 23 of file MBlazeTargetObjectFile.cpp.
References llvm::SectionKind::getBSS(), llvm::TargetLoweringObjectFile::getContext(), llvm::SectionKind::getDataRel(), llvm::MCContext::getELFSection(), llvm::ELF::SHF_ALLOC, llvm::ELF::SHF_WRITE, llvm::ELF::SHT_NOBITS, and llvm::ELF::SHT_PROGBITS.
| bool MBlazeTargetObjectFile::IsGlobalInSmallSection | ( | const GlobalValue * | GV, |
| const TargetMachine & | TM, | ||
| SectionKind | Kind | ||
| ) | const |
IsGlobalInSmallSection - Return true if this global address should be placed into small data/bss section.
Definition at line 56 of file MBlazeTargetObjectFile.cpp.
References llvm::dyn_cast(), llvm::TargetMachine::getDataLayout(), llvm::SequentialType::getElementType(), llvm::GlobalValue::getType(), llvm::DataLayout::getTypeAllocSize(), llvm::SectionKind::isBSS(), llvm::SectionKind::isDataRel(), IsInSmallSection(), and llvm::SectionKind::isMergeable1ByteCString().
Referenced by IsGlobalInSmallSection(), and SelectSectionForGlobal().
| bool MBlazeTargetObjectFile::IsGlobalInSmallSection | ( | const GlobalValue * | GV, |
| const TargetMachine & | TM | ||
| ) | const |
Definition at line 46 of file MBlazeTargetObjectFile.cpp.
References llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::GlobalValue::hasAvailableExternallyLinkage(), llvm::GlobalValue::isDeclaration(), and IsGlobalInSmallSection().
| const MCSection * MBlazeTargetObjectFile::SelectSectionForGlobal | ( | const GlobalValue * | GV, |
| SectionKind | Kind, | ||
| Mangler * | Mang, | ||
| const TargetMachine & | TM | ||
| ) | const [virtual] |
Reimplemented from llvm::TargetLoweringObjectFileELF.
Definition at line 77 of file MBlazeTargetObjectFile.cpp.
References llvm::SectionKind::isBSS(), llvm::SectionKind::isDataNoRel(), and IsGlobalInSmallSection().