LLVM API Documentation

llvm::TargetMachine Class Reference

#include <TargetMachine.h>

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

List of all members.

Public Types

enum  CodeGenFileType { AssemblyFile, ObjectFile, DynamicLibrary }

Public Member Functions

virtual ~TargetMachine ()
const Target & getTarget () const
virtual const TargetInstrInfo * getInstrInfo () const
virtual const TargetFrameInfo * getFrameInfo () const
virtual TargetLowering * getTargetLowering () const
virtual const TargetData * getTargetData () const
const TargetAsmInfo * getTargetAsmInfo () const
template<typename STC>
const STC & getSubtarget () const
virtual const TargetRegisterInfo * getRegisterInfo () const
virtual const TargetIntrinsicInfo * getIntrinsicInfo () const
virtual TargetJITInfo * getJITInfo ()
virtual const InstrItineraryData getInstrItineraryData () const
virtual const
TargetMachOWriterInfo * 
getMachOWriterInfo () const
virtual const TargetELFWriterInfo * getELFWriterInfo () const
virtual bool getEnableTailMergeDefault () const
virtual FileModel::Model addPassesToEmitFile (PassManagerBase &, formatted_raw_ostream &, CodeGenFileType, CodeGenOpt::Level)
virtual bool addPassesToEmitFileFinish (PassManagerBase &, MachineCodeEmitter *, CodeGenOpt::Level)
virtual bool addPassesToEmitFileFinish (PassManagerBase &, JITCodeEmitter *, CodeGenOpt::Level)
virtual bool addPassesToEmitFileFinish (PassManagerBase &, ObjectCodeEmitter *, CodeGenOpt::Level)
virtual bool addPassesToEmitMachineCode (PassManagerBase &, MachineCodeEmitter &, CodeGenOpt::Level)
virtual bool addPassesToEmitMachineCode (PassManagerBase &, JITCodeEmitter &, CodeGenOpt::Level)
virtual bool WantsWholeFile () const
virtual bool addPassesToEmitWholeFile (PassManager &, formatted_raw_ostream &, CodeGenFileType, CodeGenOpt::Level)

Static Public Member Functions

static Reloc::Model getRelocationModel ()
static void setRelocationModel (Reloc::Model Model)
 setRelocationModel - Sets the code generation relocation model.
static CodeModel::Model getCodeModel ()
static void setCodeModel (CodeModel::Model Model)
 setCodeModel - Sets the code model.
static bool getAsmVerbosityDefault ()
static void setAsmVerbosityDefault (bool)

Protected Member Functions

 TargetMachine (const Target &)
virtual const TargetSubtarget * getSubtargetImpl () const

Protected Attributes

const Target & TheTarget
 TheTarget - The Target that this machine was created for.
const TargetAsmInfo * AsmInfo


Detailed Description

TargetMachine - Primary interface to the complete machine description for the target machine. All target-specific information should be accessible through this interface.

Definition at line 90 of file TargetMachine.h.


Member Enumeration Documentation

CodeGenFileType - These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit.

Enumerator:
AssemblyFile 
ObjectFile 
DynamicLibrary 

Definition at line 196 of file TargetMachine.h.


Constructor & Destructor Documentation

TargetMachine::TargetMachine ( const Target &  T  )  [protected]

Definition at line 185 of file TargetMachine.cpp.

References llvm::FloatABIType, llvm::FloatABI::Soft, and llvm::UseSoftFloat.

TargetMachine::~TargetMachine (  )  [virtual]

Definition at line 193 of file TargetMachine.cpp.

References AsmInfo.


Member Function Documentation

virtual const TargetSubtarget* llvm::TargetMachine::getSubtargetImpl (  )  const [inline, protected, virtual]

getSubtargetImpl - virtual method implemented by subclasses that returns a reference to that target's TargetSubtarget-derived member variable.

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMBaseTargetMachine, llvm::BlackfinTargetMachine, llvm::SPUTargetMachine, llvm::MipsTargetMachine, llvm::MSP430TargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, and llvm::XCoreTargetMachine.

Definition at line 98 of file TargetMachine.h.

Referenced by getSubtarget().

const Target& llvm::TargetMachine::getTarget (  )  const [inline]

Definition at line 110 of file TargetMachine.h.

References TheTarget.

Referenced by llvm::LLVMTargetMachine::addAssemblyEmitter().

virtual const TargetInstrInfo* llvm::TargetMachine::getInstrInfo (  )  const [inline, virtual]

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::ThumbTargetMachine, llvm::BlackfinTargetMachine, llvm::SPUTargetMachine, llvm::MipsTargetMachine, llvm::MSP430TargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, and llvm::XCoreTargetMachine.

Definition at line 118 of file TargetMachine.h.

Referenced by llvm::createBURRListDAGScheduler(), llvm::createTDRRListDAGScheduler(), llvm::PPCTargetLowering::EmitAtomicBinary(), llvm::XCoreTargetLowering::EmitInstrWithCustomInserter(), llvm::X86TargetLowering::EmitInstrWithCustomInserter(), llvm::SparcTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitInstrWithCustomInserter(), llvm::PIC16TargetLowering::EmitInstrWithCustomInserter(), llvm::MSP430TargetLowering::EmitInstrWithCustomInserter(), llvm::ARMTargetLowering::EmitInstrWithCustomInserter(), llvm::AlphaTargetLowering::EmitInstrWithCustomInserter(), llvm::PPCTargetLowering::EmitPartwordAtomicBinary(), llvm::RegScavenger::enterBasicBlock(), llvm::MipsInstrInfo::getGlobalBaseReg(), llvm::AlphaInstrInfo::getGlobalBaseReg(), llvm::AlphaInstrInfo::getGlobalRetAddr(), GetInstSizeWithDesc(), llvm::SDNode::getOperationName(), llvm::VirtRegMap::runOnMachineFunction(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::LiveIntervals::runOnMachineFunction(), llvm::FunctionLoweringInfo::set(), and llvm::SplitCriticalMachineEdge().

virtual const TargetFrameInfo* llvm::TargetMachine::getFrameInfo (  )  const [inline, virtual]

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMBaseTargetMachine, llvm::BlackfinTargetMachine, llvm::SPUTargetMachine, llvm::MipsTargetMachine, llvm::MSP430TargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, and llvm::XCoreTargetMachine.

Definition at line 119 of file TargetMachine.h.

Referenced by llvm::MipsRegisterInfo::adjustMipsStackFrame(), CalculateParameterAndLinkageAreaSize(), llvm::SPURegisterInfo::determineFrameLayout(), llvm::PPCRegisterInfo::determineFrameLayout(), llvm::XCoreRegisterInfo::eliminateCallFramePseudoInstr(), llvm::Thumb1RegisterInfo::eliminateCallFramePseudoInstr(), llvm::ARMBaseRegisterInfo::eliminateCallFramePseudoInstr(), llvm::AlphaRegisterInfo::eliminateCallFramePseudoInstr(), llvm::X86RegisterInfo::emitCalleeSavedFrameMoves(), llvm::JITDwarfEmitter::EmitDwarfTable(), llvm::SystemZRegisterInfo::emitEpilogue(), llvm::PPCRegisterInfo::emitEpilogue(), llvm::Dwarf::EmitFrameMoves(), llvm::X86RegisterInfo::emitPrologue(), llvm::SystemZRegisterInfo::emitPrologue(), llvm::PPCRegisterInfo::emitPrologue(), llvm::AlphaRegisterInfo::emitPrologue(), llvm::JITDwarfEmitter::GetDwarfTableSizeInBytes(), llvm::X86RegisterInfo::getFrameIndexOffset(), llvm::TargetRegisterInfo::getFrameIndexOffset(), llvm::SystemZRegisterInfo::getFrameIndexOffset(), llvm::BlackfinRegisterInfo::getFrameIndexOffset(), InferAlignment(), llvm::PPCRegisterInfo::lowerDynamicAlloc(), llvm::MachineFunction::MachineFunction(), llvm::MachineFrameInfo::print(), llvm::X86RegisterInfo::processFunctionBeforeCalleeSavedScan(), and llvm::ARMBaseRegisterInfo::processFunctionBeforeCalleeSavedScan().

virtual TargetLowering* llvm::TargetMachine::getTargetLowering (  )  const [inline, virtual]

virtual const TargetData* llvm::TargetMachine::getTargetData (  )  const [inline, virtual]

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::ThumbTargetMachine, llvm::BlackfinTargetMachine, llvm::CTargetMachine, llvm::SPUTargetMachine, llvm::CPPTargetMachine, llvm::MipsTargetMachine, llvm::MSILTarget, llvm::MSP430TargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, and llvm::XCoreTargetMachine.

Definition at line 121 of file TargetMachine.h.

Referenced by llvm::JIT::addModuleProvider(), llvm::X86ATTAsmPrinter::DecorateCygMingName(), llvm::X86IntelAsmPrinter::decorateName(), llvm::JIT::deleteModuleProvider(), llvm::X86RegisterInfo::emitCalleeSavedFrameMoves(), llvm::MachOCodeEmitter::emitConstantPool(), llvm::AsmPrinter::EmitConstantPool(), llvm::AsmPrinter::EmitConstantValueOnly(), llvm::JITDwarfEmitter::EmitDwarfTable(), llvm::AsmPrinter::EmitGlobalConstant(), llvm::AsmPrinter::EmitInt64(), llvm::X86RegisterInfo::emitPrologue(), llvm::AsmPrinter::EmitSpecialLLVMGlobal(), llvm::JITDwarfEmitter::GetDwarfTableSizeInBytes(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::SelectionDAGLowering::init(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::MipsTargetObjectFile::IsGlobalInSmallSection(), llvm::MachineFunction::MachineFunction(), llvm::MachOCodeEmitter::MachOCodeEmitter(), llvm::MachOWriter::MachOWriter(), llvm::AsmPrinter::printDataDirective(), llvm::X86IntelAsmPrinter::PrintGlobalVariable(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), llvm::JIT::removeModuleProvider(), llvm::TargetLoweringObjectFileMachO::SelectSectionForGlobal(), llvm::TargetLoweringObjectFileELF::SelectSectionForGlobal(), llvm::MachOCodeEmitter::startFunction(), llvm::TargetELFWriterInfo::TargetELFWriterInfo(), and llvm::X86ELFWriterInfo::X86ELFWriterInfo().

const TargetAsmInfo* llvm::TargetMachine::getTargetAsmInfo (  )  const [inline]

template<typename STC>
const STC& llvm::TargetMachine::getSubtarget (  )  const [inline]

getSubtarget - This method returns a pointer to the specified type of TargetSubtarget. In debug builds, it verifies that the object being returned is of the correct type.

Definition at line 130 of file TargetMachine.h.

References getSubtargetImpl().

Referenced by llvm::AlphaTargetLowering::AlphaTargetLowering(), llvm::ARMTargetLowering::ARMTargetLowering(), llvm::ScheduleDAGInstrs::BuildSchedGraph(), llvm::X86InstrInfo::convertToThreeAddress(), llvm::X86InstrInfo::copyRegToReg(), createPPCAsmPrinterPass(), createTLOF(), llvm::X86RegisterInfo::emitPrologue(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::PPCTargetLowering::getByValTypeAlignment(), llvm::PPCFrameInfo::getCalleeSavedSpillSlots(), llvm::X86RegisterInfo::getDwarfRegNum(), llvm::ARMTargetLowering::getFunctionAlignment(), llvm::X86InstrInfo::getGlobalBaseReg(), getLoadRegOpcode(), llvm::X86RegisterInfo::getPointerRegClass(), getStoreRegOpcode(), gvNeedsNonLazyPtr(), llvm::XCoreTargetObjectFile::Initialize(), llvm::ARMElfTargetObjectFile::Initialize(), isGVStub(), llvm::MipsTargetLowering::MipsTargetLowering(), llvm::PPCTargetLowering::PerformDAGCombine(), llvm::PIC16TargetLowering::PIC16TargetLowering(), llvm::PPCTargetLowering::PPCTargetLowering(), llvm::X86InstrInfo::restoreCalleeSavedRegisters(), llvm::SparcTargetLowering::SparcTargetLowering(), llvm::X86InstrInfo::spillCalleeSavedRegisters(), llvm::X86ATTAsmPrinter::X86ATTAsmPrinter(), llvm::X86RegisterInfo::X86RegisterInfo(), and llvm::X86TargetLowering::X86TargetLowering().

virtual const TargetRegisterInfo* llvm::TargetMachine::getRegisterInfo (  )  const [inline, virtual]

getRegisterInfo - If register information is available, return it. If not, return null. This is kept separate from RegInfo until RegInfo has details of graph coloring register allocation removed from it.

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::ThumbTargetMachine, llvm::BlackfinTargetMachine, llvm::SPUTargetMachine, llvm::MipsTargetMachine, llvm::MSP430TargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, llvm::SystemZTargetMachine, llvm::X86TargetMachine, and llvm::XCoreTargetMachine.

Definition at line 141 of file TargetMachine.h.

Referenced by llvm::createBURRListDAGScheduler(), llvm::createTDRRListDAGScheduler(), llvm::JITDwarfEmitter::EmitDwarfTable(), llvm::RegScavenger::enterBasicBlock(), llvm::JITDwarfEmitter::GetDwarfTableSizeInBytes(), llvm::MachineFrameInfo::getPristineRegs(), llvm::TargetLowering::getRegForInlineAsmConstraint(), llvm::SelectionDAGLowering::GetRegistersForValue(), llvm::MachineFunction::MachineFunction(), llvm::VirtRegMap::print(), llvm::MachineOperand::print(), llvm::MachineFunction::print(), llvm::MachineBasicBlock::print(), llvm::X86IntelAsmPrinter::printOperand(), llvm::SystemZInstrInfo::restoreCalleeSavedRegisters(), llvm::VirtRegMap::runOnMachineFunction(), llvm::SimpleRegisterCoalescing::runOnMachineFunction(), llvm::SelectionDAGISel::runOnMachineFunction(), llvm::PEI::runOnMachineFunction(), llvm::LiveVariables::runOnMachineFunction(), and llvm::LiveIntervals::runOnMachineFunction().

virtual const TargetIntrinsicInfo* llvm::TargetMachine::getIntrinsicInfo (  )  const [inline, virtual]

getIntrinsicInfo - If intrinsic information is available, return it. If not, return null.

Definition at line 146 of file TargetMachine.h.

virtual TargetJITInfo* llvm::TargetMachine::getJITInfo (  )  [inline, virtual]

getJITInfo - If this target supports a JIT, return information for it, otherwise return null.

Reimplemented in llvm::AlphaTargetMachine, llvm::ARMBaseTargetMachine, llvm::SPUTargetMachine, llvm::PPCTargetMachine, and llvm::X86TargetMachine.

Definition at line 151 of file TargetMachine.h.

Referenced by llvm::JIT::createJIT().

virtual const InstrItineraryData llvm::TargetMachine::getInstrItineraryData (  )  const [inline, virtual]

getInstrItineraryData - Returns instruction itinerary data for the target or specific subtarget.

Reimplemented in llvm::ARMBaseTargetMachine, llvm::SPUTargetMachine, and llvm::PPCTargetMachine.

Definition at line 156 of file TargetMachine.h.

Referenced by llvm::ScheduleDAGSDNodes::ComputeLatency(), llvm::ScheduleDAGInstrs::ComputeLatency(), and llvm::ScheduleDAGInstrs::ComputeOperandLatency().

virtual const TargetMachOWriterInfo* llvm::TargetMachine::getMachOWriterInfo (  )  const [inline, virtual]

getMachOWriterInfo - If this target supports a Mach-O writer, return information for it, otherwise return null.

Reimplemented in llvm::PPCTargetMachine.

Definition at line 163 of file TargetMachine.h.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().

virtual const TargetELFWriterInfo* llvm::TargetMachine::getELFWriterInfo (  )  const [inline, virtual]

getELFWriterInfo - If this target supports an ELF writer, return information for it, otherwise return null.

Reimplemented in llvm::X86TargetMachine.

Definition at line 168 of file TargetMachine.h.

Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile(), llvm::ELFWriter::ELFWriter(), and llvm::ELFCodeEmitter::emitJumpTables().

Reloc::Model TargetMachine::getRelocationModel (  )  [static]

getRelocationModel - Returns the code generation relocation model. The choices are static, PIC, and dynamic-no-pic, and target default.

getRelocationModel - Returns the code generation relocation model. The choices are static, PIC, and dynamic-no-pic, and target default.

Definition at line 199 of file TargetMachine.cpp.

References llvm::RelocationModel.

Referenced by llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(), llvm::MachOCodeEmitter::emitConstantPool(), llvm::ELFCodeEmitter::emitConstantPool(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::MachOCodeEmitter::emitJumpTables(), llvm::ELFCodeEmitter::emitJumpTables(), llvm::MipsRegisterInfo::emitPrologue(), llvm::X86InstrInfo::foldMemoryOperandImpl(), llvm::X86InstrInfo::GetInstSizeInBytes(), llvm::TargetLoweringObjectFile::getKindForGlobal(), llvm::SystemZSubtarget::GVRequiresExtraLoad(), llvm::PPCSubtarget::hasLazyResolverStub(), llvm::TargetLoweringObjectFileMachO::Initialize(), llvm::PPCTargetLowering::IsEligibleForTailCallOptimization(), llvm::X86Subtarget::IsLegalToCallImmediateAddr(), LowerConstantPool(), llvm::SystemZTargetLowering::LowerGlobalAddress(), LowerGlobalAddress(), LowerJumpTable(), llvm::MachineFunction::MachineFunction(), llvm::MipsTargetMachine::MipsTargetMachine(), llvm::PPCTargetMachine::PPCTargetMachine(), llvm::X86ATTAsmPrinter::PrintGlobalVariable(), llvm::AsmPrinter::printPICJumpTableEntry(), llvm::MipsRegisterInfo::processFunctionBeforeFrameFinalized(), llvm::SystemZTargetMachine::SystemZTargetMachine(), and llvm::X86TargetMachine::X86TargetMachine().

void TargetMachine::setRelocationModel ( Reloc::Model  Model  )  [static]

CodeModel::Model TargetMachine::getCodeModel (  )  [static]

getCodeModel - Returns the code model. The choices are small, kernel, medium, large, and target default.

getCodeModel - Returns the code model. The choices are small, kernel, medium, large, and target default.

Definition at line 210 of file TargetMachine.cpp.

References llvm::CMModel.

Referenced by llvm::X86Subtarget::ClassifyGlobalReference(), llvm::X86TargetLowering::isLegalAddressingMode(), llvm::MipsTargetMachine::MipsTargetMachine(), and llvm::X86TargetMachine::X86TargetMachine().

void TargetMachine::setCodeModel ( CodeModel::Model  Model  )  [static]

setCodeModel - Sets the code model.

setCodeModel - Sets the code model.

Definition at line 215 of file TargetMachine.cpp.

References llvm::CMModel.

Referenced by llvm::X86TargetMachine::addCodeEmitter(), llvm::MipsTargetMachine::MipsTargetMachine(), and llvm::X86TargetMachine::X86TargetMachine().

bool TargetMachine::getAsmVerbosityDefault (  )  [static]

getAsmVerbosityDefault - Returns the default value of asm verbosity.

Definition at line 219 of file TargetMachine.cpp.

References llvm::AsmVerbosityDefault().

Referenced by llvm::LLVMTargetMachine::addPassesToEmitFile().

void TargetMachine::setAsmVerbosityDefault ( bool  V  )  [static]

setAsmVerbosityDefault - Set the default value of asm verbosity. Default is false.

Definition at line 223 of file TargetMachine.cpp.

References llvm::AsmVerbosityDefault().

virtual bool llvm::TargetMachine::getEnableTailMergeDefault (  )  const [inline, virtual]

getEnableTailMergeDefault - the default setting for -enable-tail-merge on this target. User flag overrides.

Reimplemented in llvm::LLVMTargetMachine, and llvm::PPCTargetMachine.

Definition at line 202 of file TargetMachine.h.

virtual FileModel::Model llvm::TargetMachine::addPassesToEmitFile ( PassManagerBase &  ,
formatted_raw_ostream &  ,
CodeGenFileType  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitFile - Add passes to the specified pass manager to get the specified file emitted. Typically this will involve several steps of code generation. This method should return FileModel::Error if emission of this file type is not supported.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 210 of file TargetMachine.h.

References llvm::FileModel::None.

virtual bool llvm::TargetMachine::addPassesToEmitFileFinish ( PassManagerBase &  ,
MachineCodeEmitter *  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitFileFinish - If the passes to emit the specified file had to be split up (e.g., to add an object writer pass), this method can be used to finish up adding passes to emit the file, if necessary.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 221 of file TargetMachine.h.

virtual bool llvm::TargetMachine::addPassesToEmitFileFinish ( PassManagerBase &  ,
JITCodeEmitter *  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitFileFinish - If the passes to emit the specified file had to be split up (e.g., to add an object writer pass), this method can be used to finish up adding passes to emit the file, if necessary.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 231 of file TargetMachine.h.

virtual bool llvm::TargetMachine::addPassesToEmitFileFinish ( PassManagerBase &  ,
ObjectCodeEmitter *  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitFileFinish - If the passes to emit the specified file had to be split up (e.g., to add an object writer pass), this method can be used to finish up adding passes to emit the file, if necessary.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 241 of file TargetMachine.h.

virtual bool llvm::TargetMachine::addPassesToEmitMachineCode ( PassManagerBase &  ,
MachineCodeEmitter &  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitMachineCode - Add passes to the specified pass manager to get machine code emitted. This uses a MachineCodeEmitter object to handle actually outputting the machine code and resolving things like the address of functions. This method returns true if machine code emission is not supported.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 253 of file TargetMachine.h.

Referenced by llvm::JIT::addModuleProvider(), llvm::JIT::deleteModuleProvider(), and llvm::JIT::removeModuleProvider().

virtual bool llvm::TargetMachine::addPassesToEmitMachineCode ( PassManagerBase &  ,
JITCodeEmitter &  ,
CodeGenOpt::Level   
) [inline, virtual]

addPassesToEmitMachineCode - Add passes to the specified pass manager to get machine code emitted. This uses a MachineCodeEmitter object to handle actually outputting the machine code and resolving things like the address of functions. This method returns true if machine code emission is not supported.

Reimplemented in llvm::LLVMTargetMachine.

Definition at line 265 of file TargetMachine.h.

virtual bool llvm::TargetMachine::WantsWholeFile (  )  const [inline, virtual]

addPassesToEmitWholeFile - This method can be implemented by targets that require having the entire module at once. This is not recommended, do not use this.

Reimplemented in llvm::CTargetMachine, llvm::CPPTargetMachine, and llvm::MSILTarget.

Definition at line 274 of file TargetMachine.h.

virtual bool llvm::TargetMachine::addPassesToEmitWholeFile ( PassManager &  ,
formatted_raw_ostream &  ,
CodeGenFileType  ,
CodeGenOpt::Level   
) [inline, virtual]

Reimplemented in llvm::CTargetMachine, llvm::CPPTargetMachine, and llvm::MSILTarget.

Definition at line 275 of file TargetMachine.h.


Member Data Documentation

TheTarget - The Target that this machine was created for.

Definition at line 101 of file TargetMachine.h.

Referenced by getTarget().

AsmInfo - Contains target specific asm information.

Definition at line 105 of file TargetMachine.h.

Referenced by getTargetAsmInfo(), llvm::LLVMTargetMachine::LLVMTargetMachine(), and ~TargetMachine().


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