LLVM API Documentation

Public Member Functions
llvm::PPCTargetMachine Class Reference

#include <PPCTargetMachine.h>

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

List of all members.

Public Member Functions

 PPCTargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL, bool is64Bit)
virtual const PPCInstrInfogetInstrInfo () const
virtual const PPCFrameLoweringgetFrameLowering () const
virtual PPCJITInfogetJITInfo ()
virtual const PPCTargetLoweringgetTargetLowering () const
virtual const PPCSelectionDAGInfogetSelectionDAGInfo () const
virtual const PPCRegisterInfogetRegisterInfo () const
virtual const DataLayoutgetDataLayout () const
virtual const PPCSubtargetgetSubtargetImpl () const
virtual const InstrItineraryDatagetInstrItineraryData () const
virtual TargetPassConfigcreatePassConfig (PassManagerBase &PM)
virtual bool addCodeEmitter (PassManagerBase &PM, JITCodeEmitter &JCE)
virtual void addAnalysisPasses (PassManagerBase &PM)
 Register PPC analysis passes with a pass manager.

Detailed Description

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

Definition at line 30 of file PPCTargetMachine.h.


Constructor & Destructor Documentation

Definition at line 75 of file PPCTargetMachine.cpp.

References llvm::LLVMTargetMachine::initAsmInfo().


Member Function Documentation

void PPCTargetMachine::addAnalysisPasses ( PassManagerBase &  PM) [virtual]

Register PPC analysis passes with a pass manager.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 214 of file PPCTargetMachine.cpp.

References llvm::createBasicTargetTransformInfoPass(), and llvm::createPPCTargetTransformInfoPass().

bool PPCTargetMachine::addCodeEmitter ( PassManagerBase &  ,
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 202 of file PPCTargetMachine.cpp.

References llvm::createPPCJITCodeEmitterPass(), and llvm::PPCSubtarget::SetJITMode().

TargetPassConfig * PPCTargetMachine::createPassConfig ( PassManagerBase &  PM) [virtual]

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

Targets may override this to extend TargetPassConfig.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 139 of file PPCTargetMachine.cpp.

virtual const DataLayout* llvm::PPCTargetMachine::getDataLayout ( ) const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 61 of file PPCTargetMachine.h.

virtual const PPCFrameLowering* llvm::PPCTargetMachine::getFrameLowering ( ) const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 47 of file PPCTargetMachine.h.

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

Reimplemented from llvm::TargetMachine.

Definition at line 46 of file PPCTargetMachine.h.

Referenced by llvm::PPCInstrInfo::CreateTargetPostRAHazardRecognizer().

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

Reimplemented from llvm::TargetMachine.

Definition at line 63 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 50 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 57 of file PPCTargetMachine.h.

References llvm::PPCInstrInfo::getRegisterInfo().

Reimplemented from llvm::TargetMachine.

Definition at line 54 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 TargetSubtargetInfo-derived member variable.

Reimplemented from llvm::TargetMachine.

Definition at line 62 of file PPCTargetMachine.h.

Referenced by llvm::PPCInstrInfo::AnalyzeBranch(), llvm::PPCInstrInfo::canInsertSelect(), CreateTLOF(), llvm::PPCJITInfo::emitFunctionStub(), llvm::PPCInstrInfo::FoldImmediate(), llvm::PPCInstrInfo::InsertBranch(), llvm::PPCInstrInfo::insertSelect(), llvm::PPCInstrInfo::optimizeCompareInstr(), and llvm::PPCInstrInfo::PredicateInstruction().

Reimplemented from llvm::TargetMachine.

Definition at line 51 of file PPCTargetMachine.h.


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