LLVM API Documentation

llvm::MipsTargetObjectFile Class Reference

#include <MipsTargetObjectFile.h>

Inheritance diagram for llvm::MipsTargetObjectFile:
[legend]
Collaboration diagram for llvm::MipsTargetObjectFile:
[legend]

List of all members.

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


Detailed Description

Definition at line 17 of file MipsTargetObjectFile.h.


Member Function Documentation

void MipsTargetObjectFile::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::TargetLoweringObjectFileELF.

Definition at line 24 of file MipsTargetObjectFile.cpp.

References llvm::SectionKind::getBSS(), llvm::SectionKind::getDataRel(), llvm::TargetLoweringObjectFileELF::getELFSection(), llvm::TargetLoweringObjectFileELF::Initialize(), llvm::MCSectionELF::SHF_ALLOC, llvm::MCSectionELF::SHF_WRITE, llvm::MCSectionELF::SHT_NOBITS, and llvm::MCSectionELF::SHT_PROGBITS.

bool MipsTargetObjectFile::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.

IsGlobalInSmallSection - Return true if this global address should be placed into small data/bss section.

Definition at line 57 of file MipsTargetObjectFile.cpp.

References llvm::dyn_cast(), llvm::SequentialType::getElementType(), llvm::TargetMachine::getTargetData(), llvm::GlobalValue::getType(), llvm::TargetData::getTypeAllocSize(), llvm::SectionKind::isBSS(), llvm::SectionKind::isDataRel(), IsInSmallSection(), llvm::SectionKind::isMergeable1ByteCString(), and Ty.

Referenced by IsGlobalInSmallSection(), and SelectSectionForGlobal().

bool MipsTargetObjectFile::IsGlobalInSmallSection ( const GlobalValue *  GV,
const TargetMachine &  TM 
) const

const MCSection * MipsTargetObjectFile::SelectSectionForGlobal ( const GlobalValue *  GV,
SectionKind  Kind,
Mangler *  Mang,
const TargetMachine &  TM 
) const [virtual]


The documentation for this class was generated from the following files: