LLVM API Documentation
#include <SparcV9TargetMachine.h>
Inheritance diagram for llvm::SparcV9TargetMachine:
Public Member Functions | |
SparcV9TargetMachine (const Module &M, const std::string &FS) | |
virtual const TargetInstrInfo * | getInstrInfo () const |
virtual const TargetSchedInfo * | getSchedInfo () const |
virtual const SparcV9RegInfo * | getRegInfo () const |
virtual const TargetFrameInfo * | getFrameInfo () const |
virtual TargetJITInfo * | getJITInfo () |
virtual const MRegisterInfo * | getRegisterInfo () const |
virtual bool | addPassesToEmitFile (PassManager &PM, std::ostream &Out, CodeGenFileType FileType, bool Fast) |
virtual bool | addPassesToEmitMachineCode (FunctionPassManager &PM, MachineCodeEmitter &MCE) |
Static Public Member Functions | |
static unsigned | getModuleMatchQuality (const Module &M) |
static unsigned | getJITMatchQuality () |
Definition at line 28 of file SparcV9TargetMachine.h.
SparcV9TargetMachine::SparcV9TargetMachine | ( | const Module & | M, | |
const std::string & | FS | |||
) |
Definition at line 697 of file SparcV9TargetMachine.cpp.
bool SparcV9TargetMachine::addPassesToEmitFile | ( | PassManager & | PM, | |
std::ostream & | Out, | |||
CodeGenFileType | FileType, | |||
bool | Fast | |||
) | [virtual] |
addPassesToEmitFile - This method controls the entire code generation process for the ultra sparc.
Definition at line 710 of file SparcV9TargetMachine.cpp.
bool SparcV9TargetMachine::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 42 of file SparcV9CodeEmitter.cpp.
References llvm::FunctionPassManager::add(), llvm::createSparcV9MachineCodeDestructionPass(), and MCE.
virtual const TargetFrameInfo* llvm::SparcV9TargetMachine::getFrameInfo | ( | ) | const [inline, virtual] |
virtual const TargetInstrInfo* llvm::SparcV9TargetMachine::getInstrInfo | ( | ) | const [inline, virtual] |
virtual TargetJITInfo* llvm::SparcV9TargetMachine::getJITInfo | ( | ) | [inline, virtual] |
getJITInfo - If this target supports a JIT, return information for it, otherwise return null.
Reimplemented from llvm::TargetMachine.
Definition at line 41 of file SparcV9TargetMachine.h.
unsigned SparcV9TargetMachine::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 623 of file SparcV9TargetMachine.cpp.
unsigned SparcV9TargetMachine::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 631 of file SparcV9TargetMachine.cpp.
virtual const SparcV9RegInfo* llvm::SparcV9TargetMachine::getRegInfo | ( | ) | const [inline, virtual] |
virtual const MRegisterInfo* llvm::SparcV9TargetMachine::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 42 of file SparcV9TargetMachine.h.
References llvm::SparcV9InstrInfo::getRegisterInfo().
virtual const TargetSchedInfo* llvm::SparcV9TargetMachine::getSchedInfo | ( | ) | const [inline, virtual] |