LLVM API Documentation
#include <CTargetMachine.h>
Inheritance diagram for llvm::CTargetMachine:
Public Member Functions | |
CTargetMachine (const Module &M, const std::string &FS) | |
virtual bool | addPassesToEmitFile (PassManager &PM, std::ostream &Out, CodeGenFileType FileType, bool Fast) |
virtual const TargetData * | getTargetData () const |
Static Public Member Functions | |
static unsigned | getModuleMatchQuality (const Module &M) |
Public Attributes | |
const TargetData | DataLayout |
Definition at line 22 of file CTargetMachine.h.
llvm::CTargetMachine::CTargetMachine | ( | const Module & | M, | |
const std::string & | FS | |||
) | [inline] |
Definition at line 25 of file CTargetMachine.h.
bool CTargetMachine::addPassesToEmitFile | ( | PassManager & | PM, | |
std::ostream & | Out, | |||
CodeGenFileType | FileType, | |||
bool | Fast | |||
) | [virtual] |
addPassesToEmitFile - Add passes to the specified pass manager to get the specified file emitted. Typically this will involve several steps of code generation. If Fast is set to true, the code generator should emit code as fast as possible, without regard for compile time. This method should return true if emission of this file type is not supported.
Reimplemented from llvm::TargetMachine.
Definition at line 2024 of file Target/CBackend/Writer.cpp.
References llvm::PassManager::add(), llvm::TargetMachine::AssemblyFile, llvm::createCFGSimplificationPass(), llvm::createLowerAllocationsPass(), llvm::createLowerGCPass(), and llvm::createLowerInvokePass().
static unsigned llvm::CTargetMachine::getModuleMatchQuality | ( | const Module & | M | ) | [inline, 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 33 of file CTargetMachine.h.
virtual const TargetData* llvm::CTargetMachine::getTargetData | ( | ) | const [inline, virtual] |
Reimplemented from llvm::TargetMachine.
Definition at line 35 of file CTargetMachine.h.
References DataLayout.