LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::PPC32TargetMachine Class Reference

#include <PPC32TargetMachine.h>

Inheritance diagram for llvm::PPC32TargetMachine:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PPC32TargetMachine (const Module &M, IntrinsicLowering *IL)
virtual const PPC32InstrInfogetInstrInfo () const
virtual const MRegisterInfogetRegisterInfo () const
virtual TargetJITInfogetJITInfo ()
bool addPassesToEmitMachineCode (FunctionPassManager &PM, MachineCodeEmitter &MCE)

Static Public Member Functions

static unsigned getJITMatchQuality ()
static unsigned getModuleMatchQuality (const Module &M)

Detailed Description

Definition at line 26 of file PPC32TargetMachine.h.


Constructor & Destructor Documentation

PPC32TargetMachine::PPC32TargetMachine const Module M,
IntrinsicLowering IL
 

PowerPCTargetMachine ctor - Create an ILP32 architecture model

Definition at line 143 of file PowerPCTargetMachine.cpp.


Member Function Documentation

bool PPC32TargetMachine::addPassesToEmitMachineCode FunctionPassManager PM,
MachineCodeEmitter MCE
[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 should returns true if machine code emission is not supported.

Reimplemented from llvm::TargetMachine.

Definition at line 80 of file PPC32CodeEmitter.cpp.

References llvm::FunctionPassManager::add(), and llvm::createMachineCodeDeleter().

virtual const PPC32InstrInfo* llvm::PPC32TargetMachine::getInstrInfo  )  const [inline, virtual]
 

Reimplemented from llvm::TargetMachine.

Definition at line 32 of file PPC32TargetMachine.h.

virtual TargetJITInfo* llvm::PPC32TargetMachine::getJITInfo  )  [inline, virtual]
 

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

Reimplemented from llvm::TargetMachine.

Definition at line 37 of file PPC32TargetMachine.h.

unsigned PPC32TargetMachine::getJITMatchQuality  )  [static]
 

getJITMatchQuality - This static method should be implemented by targets that provide JIT capabilities to indicate how suitable they are for execution on the current host. If a value of 0 is returned, the target will not be used unless an explicit -march option is used.

Reimplemented from llvm::TargetMachine.

Definition at line 59 of file PowerPCTargetMachine.cpp.

Referenced by getModuleMatchQuality().

unsigned PPC32TargetMachine::getModuleMatchQuality const Module M  )  [static]
 

getModuleMatchQuality - This static method should be implemented by targets to indicate how closely they match the specified module. This is used by the LLC tool to determine which target to use when an explicit -march option is not specified. If a target returns zero, it will never be chosen without an explicit -march option.

Reimplemented from llvm::TargetMachine.

Definition at line 155 of file PowerPCTargetMachine.cpp.

References llvm::Module::AnyEndianness, llvm::Module::AnyPointerSize, llvm::Module::BigEndian, llvm::Module::getEndianness(), getJITMatchQuality(), llvm::Module::getPointerSize(), and llvm::Module::Pointer32.

virtual const MRegisterInfo* llvm::PPC32TargetMachine::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 33 of file PPC32TargetMachine.h.

References llvm::PPC32InstrInfo::getRegisterInfo().


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