LLVM API Documentation

llvm::SPUTargetMachine Class Reference

#include <SPUTargetMachine.h>

Inheritance diagram for llvm::SPUTargetMachine:

Inheritance graph
[legend]
Collaboration diagram for llvm::SPUTargetMachine:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 SPUTargetMachine (const Module &M, const std::string &FS)
virtual const SPUSubtargetgetSubtargetImpl () const
 Return the subtarget implementation object.
virtual const SPUInstrInfogetInstrInfo () const
virtual const SPUFrameInfogetFrameInfo () const
virtual TargetJITInfogetJITInfo ()
virtual SPUTargetLoweringgetTargetLowering () const
virtual const SPURegisterInfogetRegisterInfo () const
virtual const TargetDatagetTargetData () const
virtual const InstrItineraryData getInstrItineraryData () const
virtual bool addInstSelector (PassManagerBase &PM, bool)
 Target-Independent Code Generator Pass Configuration Options.
virtual bool addAssemblyEmitter (PassManagerBase &PM, bool, raw_ostream &Out)

Static Public Member Functions

static unsigned getModuleMatchQuality (const Module &M)
 Module match function.

Protected Member Functions

virtual const TargetAsmInfocreateTargetAsmInfo () const


Detailed Description

SPUTargetMachine

Definition at line 31 of file SPUTargetMachine.h.


Constructor & Destructor Documentation

SPUTargetMachine::SPUTargetMachine ( const Module M,
const std::string &  FS 
)


Member Function Documentation

const TargetAsmInfo * SPUTargetMachine::createTargetAsmInfo (  )  const [protected, virtual]

createTargetAsmInfo - Create a new instance of target specific asm information.

Reimplemented from llvm::TargetMachine.

Definition at line 47 of file SPUTargetMachine.cpp.

virtual const SPUSubtarget* llvm::SPUTargetMachine::getSubtargetImpl (  )  const [inline, virtual]

Return the subtarget implementation object.

Reimplemented from llvm::TargetMachine.

Definition at line 46 of file SPUTargetMachine.h.

Referenced by llvm::SPUTargetLowering::LowerOperation(), and llvm::SPUTargetLowering::PerformDAGCombine().

virtual const SPUInstrInfo* llvm::SPUTargetMachine::getInstrInfo (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 49 of file SPUTargetMachine.h.

virtual const SPUFrameInfo* llvm::SPUTargetMachine::getFrameInfo (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 52 of file SPUTargetMachine.h.

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

Note:
Cell SPU does not support JIT today. It could support JIT at some point.

Reimplemented from llvm::TargetMachine.

Definition at line 59 of file SPUTargetMachine.h.

unsigned SPUTargetMachine::getModuleMatchQuality ( const Module M  )  [static]

Module match function.

Module matching function called by TargetMachineRegistry().

Reimplemented from llvm::TargetMachine.

Definition at line 53 of file SPUTargetMachine.cpp.

References llvm::Module::getTargetTriple().

virtual SPUTargetLowering* llvm::SPUTargetMachine::getTargetLowering (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 69 of file SPUTargetMachine.h.

virtual const SPURegisterInfo* llvm::SPUTargetMachine::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 from llvm::TargetMachine.

Definition at line 73 of file SPUTargetMachine.h.

References llvm::SPUInstrInfo::getRegisterInfo().

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

Reimplemented from llvm::TargetMachine.

Definition at line 77 of file SPUTargetMachine.h.

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

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

Reimplemented from llvm::TargetMachine.

Definition at line 81 of file SPUTargetMachine.h.

bool SPUTargetMachine::addInstSelector ( PassManagerBase ,
bool   
) [virtual]

Target-Independent Code Generator Pass Configuration Options.

addInstSelector - This method should add any "last minute" LLVM->LLVM passes, then install an instruction selector pass, which converts from LLVM code to machine instructions.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 84 of file SPUTargetMachine.cpp.

References llvm::PassManagerBase::add(), and llvm::createSPUISelDag().

bool SPUTargetMachine::addAssemblyEmitter ( PassManagerBase ,
bool  ,
raw_ostream  
) [virtual]

addAssemblyEmitter - This pass should be overridden by the target to add the asmprinter, if asm emission is supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 91 of file SPUTargetMachine.cpp.

References llvm::PassManagerBase::add(), and llvm::createSPUAsmPrinterPass().


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



This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.