LLVM API Documentation

llvm::PPCTargetMachine Class Reference

#include <PPCTargetMachine.h>

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

List of all members.

Public Member Functions

 PPCTargetMachine (const Target &T, const std::string &TT, const std::string &FS, bool is64Bit)
virtual const PPCInstrInfo * getInstrInfo () const
virtual const PPCFrameInfo * getFrameInfo () const
virtual PPCJITInfo * getJITInfo ()
virtual PPCTargetLowering * getTargetLowering () const
virtual const PPCRegisterInfo * getRegisterInfo () const
virtual const TargetData * getTargetData () const
virtual const PPCSubtarget * getSubtargetImpl () const
virtual const InstrItineraryData getInstrItineraryData () const
virtual const PPCMachOWriterInfo * getMachOWriterInfo () const
virtual bool addInstSelector (PassManagerBase &PM, CodeGenOpt::Level OptLevel)
 Target-Independent Code Generator Pass Configuration Options.
virtual bool addPreEmitPass (PassManagerBase &PM, CodeGenOpt::Level OptLevel)
virtual bool addCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, MachineCodeEmitter &MCE)
virtual bool addCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, JITCodeEmitter &JCE)
virtual bool addCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, ObjectCodeEmitter &OCE)
virtual bool addSimpleCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, MachineCodeEmitter &MCE)
virtual bool addSimpleCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, JITCodeEmitter &JCE)
virtual bool addSimpleCodeEmitter (PassManagerBase &PM, CodeGenOpt::Level OptLevel, ObjectCodeEmitter &OCE)
virtual bool getEnableTailMergeDefault () const


Detailed Description

PPCTargetMachine - Common code between 32-bit and 64-bit PowerPC targets.

Definition at line 32 of file PPCTargetMachine.h.


Constructor & Destructor Documentation

PPCTargetMachine::PPCTargetMachine ( const Target &  T,
const std::string &  TT,
const std::string &  FS,
bool  is64Bit 
)


Member Function Documentation

virtual const PPCInstrInfo* llvm::PPCTargetMachine::getInstrInfo (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 46 of file PPCTargetMachine.h.

virtual const PPCFrameInfo* llvm::PPCTargetMachine::getFrameInfo (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 47 of file PPCTargetMachine.h.

virtual PPCJITInfo* llvm::PPCTargetMachine::getJITInfo (  )  [inline, virtual]

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

Reimplemented from llvm::TargetMachine.

Definition at line 48 of file PPCTargetMachine.h.

virtual PPCTargetLowering* llvm::PPCTargetMachine::getTargetLowering (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 49 of file PPCTargetMachine.h.

virtual const PPCRegisterInfo* llvm::PPCTargetMachine::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 52 of file PPCTargetMachine.h.

References llvm::PPCInstrInfo::getRegisterInfo().

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

Reimplemented from llvm::TargetMachine.

Definition at line 56 of file PPCTargetMachine.h.

virtual const PPCSubtarget* llvm::PPCTargetMachine::getSubtargetImpl (  )  const [inline, virtual]

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

Reimplemented from llvm::TargetMachine.

Definition at line 57 of file PPCTargetMachine.h.

Referenced by CreateTLOF(), and llvm::PPCJITInfo::emitFunctionStub().

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

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

Reimplemented from llvm::TargetMachine.

Definition at line 58 of file PPCTargetMachine.h.

virtual const PPCMachOWriterInfo* llvm::PPCTargetMachine::getMachOWriterInfo (  )  const [inline, virtual]

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

Reimplemented from llvm::TargetMachine.

Definition at line 61 of file PPCTargetMachine.h.

bool PPCTargetMachine::addInstSelector ( PassManagerBase &  ,
CodeGenOpt::Level   
) [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 79 of file PPCTargetMachine.cpp.

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

bool PPCTargetMachine::addPreEmitPass ( PassManagerBase &  ,
CodeGenOpt::Level   
) [virtual]

addPreEmitPass - This pass may be implemented by targets that want to run passes immediately before machine code is emitted. This should return true if -print-machineinstrs should print out the code after the passes.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 86 of file PPCTargetMachine.cpp.

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

bool PPCTargetMachine::addCodeEmitter ( PassManagerBase &  ,
CodeGenOpt::Level  ,
MachineCodeEmitter &   
) [virtual]

addCodeEmitter - This pass should be overridden by the target to add a code emitter, if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 93 of file PPCTargetMachine.cpp.

References llvm::PassManagerBase::add(), llvm::createPPCCodeEmitterPass(), llvm::DisableJumpTables, llvm::PPCSubtarget::isPPC64(), llvm::Reloc::PIC_, llvm::PPCSubtarget::SetJITMode(), llvm::TargetMachine::setRelocationModel(), and llvm::Reloc::Static.

bool PPCTargetMachine::addCodeEmitter ( PassManagerBase &  ,
CodeGenOpt::Level  ,
JITCodeEmitter &   
) [virtual]

addCodeEmitter - This pass should be overridden by the target to add a code emitter, if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 120 of file PPCTargetMachine.cpp.

References llvm::PassManagerBase::add(), llvm::createPPCJITCodeEmitterPass(), llvm::DisableJumpTables, llvm::PPCSubtarget::isPPC64(), llvm::Reloc::PIC_, llvm::PPCSubtarget::SetJITMode(), llvm::TargetMachine::setRelocationModel(), and llvm::Reloc::Static.

bool PPCTargetMachine::addCodeEmitter ( PassManagerBase &  PM,
CodeGenOpt::Level  OptLevel,
ObjectCodeEmitter &  OCE 
) [virtual]

bool PPCTargetMachine::addSimpleCodeEmitter ( PassManagerBase &  ,
CodeGenOpt::Level  ,
MachineCodeEmitter &   
) [virtual]

addSimpleCodeEmitter - This pass should be overridden by the target to add a code emitter (without setting flags), if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 174 of file PPCTargetMachine.cpp.

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

bool PPCTargetMachine::addSimpleCodeEmitter ( PassManagerBase &  ,
CodeGenOpt::Level  ,
JITCodeEmitter &   
) [virtual]

addSimpleCodeEmitter - This pass should be overridden by the target to add a code emitter (without setting flags), if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 182 of file PPCTargetMachine.cpp.

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

bool PPCTargetMachine::addSimpleCodeEmitter ( PassManagerBase &  ,
CodeGenOpt::Level  ,
ObjectCodeEmitter &   
) [virtual]

addSimpleCodeEmitter - This pass should be overridden by the target to add a code emitter (without setting flags), if supported. If this is not supported, 'true' should be returned.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 190 of file PPCTargetMachine.cpp.

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

bool PPCTargetMachine::getEnableTailMergeDefault (  )  const [virtual]

Override this for PowerPC. Tail merging happily breaks up instruction issue groups, which typically degrades performance.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 61 of file PPCTargetMachine.cpp.


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