LLVM API Documentation
#include <CTargetMachine.h>
Public Member Functions | |
| CTargetMachine (const Module &M, const std::string &FS) | |
| virtual bool | WantsWholeFile () const |
| virtual bool | addPassesToEmitWholeFile (PassManager &PM, raw_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.
| virtual bool llvm::CTargetMachine::WantsWholeFile | ( | ) | const [inline, virtual] |
addPassesToEmitWholeFile - This method can be implemented by targets that require having the entire module at once. This is not recommended, do not use this.
Reimplemented from llvm::TargetMachine.
Definition at line 28 of file CTargetMachine.h.
| bool CTargetMachine::addPassesToEmitWholeFile | ( | PassManager & | PM, | |
| raw_ostream & | Out, | |||
| CodeGenFileType | FileType, | |||
| bool | Fast | |||
| ) | [virtual] |
Reimplemented from llvm::TargetMachine.
Definition at line 3583 of file CBackend.cpp.
References llvm::PassManager::add(), llvm::TargetMachine::AssemblyFile, llvm::createCFGSimplificationPass(), llvm::createGCInfoDeleter(), llvm::createGCLoweringPass(), llvm::createLowerAllocationsPass(), and llvm::createLowerInvokePass().
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.