LLVM API Documentation
#include <TargetMachine.h>
Inheritance diagram for llvm::LLVMTargetMachine:


Public Member Functions | |
| virtual FileModel::Model | addPassesToEmitFile (PassManagerBase &PM, raw_ostream &Out, CodeGenFileType FileType, bool Fast) |
| virtual bool | addPassesToEmitFileFinish (PassManagerBase &PM, MachineCodeEmitter *MCE, bool Fast) |
| virtual bool | addPassesToEmitMachineCode (PassManagerBase &PM, MachineCodeEmitter &MCE, bool Fast) |
| virtual bool | addInstSelector (PassManagerBase &, bool) |
| Target-Independent Code Generator Pass Configuration Options. | |
| virtual bool | addPreRegAlloc (PassManagerBase &, bool) |
| virtual bool | addPostRegAlloc (PassManagerBase &, bool) |
| virtual bool | addPreEmitPass (PassManagerBase &, bool) |
| virtual bool | addAssemblyEmitter (PassManagerBase &, bool, raw_ostream &) |
| virtual bool | addCodeEmitter (PassManagerBase &, bool, bool, MachineCodeEmitter &) |
| virtual bool | addSimpleCodeEmitter (PassManagerBase &, bool, bool, MachineCodeEmitter &) |
| virtual bool | getEnableTailMergeDefault () const |
Protected Member Functions | |
| LLVMTargetMachine () | |
Definition at line 240 of file TargetMachine.h.
|
|
Definition at line 242 of file TargetMachine.h. |
|
||||||||||||||||
|
addAssemblyEmitter - This pass should be overridden by the target to add the asmprinter, if asm emission is supported. If this is not supported, 'true' should be returned. Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::SPUTargetMachine, llvm::IA64TargetMachine, llvm::MipsTargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, and llvm::X86TargetMachine. Definition at line 312 of file TargetMachine.h. Referenced by addPassesToEmitFile(). |
|
||||||||||||||||||||
|
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. If DumpAsm is true, the generated assembly is printed to cerr. Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::PPCTargetMachine, and llvm::X86TargetMachine. Definition at line 320 of file TargetMachine.h. Referenced by addPassesToEmitMachineCode(). |
|
||||||||||||
|
Target-Independent Code Generator Pass Configuration Options. addInstSelector - This method should add any "last minute" LLVM->LLVM passes, then install an instruction selector pass, which converts from LLVM code to machine instructions. Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::SPUTargetMachine, llvm::IA64TargetMachine, llvm::MipsTargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, llvm::SparcTargetMachine, and llvm::X86TargetMachine. Definition at line 282 of file TargetMachine.h. Referenced by addPassesToEmitFile(), and addPassesToEmitMachineCode(). |
|
||||||||||||||||||||
|
||||||||||||||||
|
addPassesToEmitFileFinish - If the passes to emit the specified file had to be split up (e.g., to add an object writer pass), this method can be used to finish up adding passes to emit the file, if necessary. Reimplemented from llvm::TargetMachine. Definition at line 171 of file LLVMTargetMachine.cpp. References llvm::PassManagerBase::add(), addSimpleCodeEmitter(), llvm::createGCInfoDeleter(), llvm::createMachineCodeDeleter(), and PrintEmittedAsm. |
|
||||||||||||||||
|
||||||||||||
|
addPostRegAllocPasses - This method may be implemented by targets that want to run passes after register allocation but before prolog-epilog insertion. This should return true if -print-machineinstrs should print after these passes. Reimplemented in llvm::X86TargetMachine. Definition at line 297 of file TargetMachine.h. Referenced by addPassesToEmitFile(), and addPassesToEmitMachineCode(). |
|
||||||||||||
|
addPreEmitPass - This pass may be implemented by targets that want to run passes immediately before machine code is emitted. This should return true if -print-machineinstrs should print out the code after the passes. Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::IA64TargetMachine, llvm::MipsTargetMachine, llvm::PIC16TargetMachine, llvm::PPCTargetMachine, and llvm::SparcTargetMachine. Definition at line 304 of file TargetMachine.h. Referenced by addPassesToEmitFile(), and addPassesToEmitMachineCode(). |
|
||||||||||||
|
addPreRegAllocPasses - This method may be implemented by targets that want to run passes immediately before register allocation. This should return true if -print-machineinstrs should print after these passes. Reimplemented in llvm::X86TargetMachine. Definition at line 289 of file TargetMachine.h. Referenced by addPassesToEmitFile(), and addPassesToEmitMachineCode(). |
|
||||||||||||||||||||
|
addSimpleCodeEmitter - This pass should be overridden by the target to add a code emitter (without setting flags), if supported. If this is not supported, 'true' should be returned. If DumpAsm is true, the generated assembly is printed to cerr. Reimplemented in llvm::AlphaTargetMachine, llvm::ARMTargetMachine, llvm::PPCTargetMachine, and llvm::X86TargetMachine. Definition at line 329 of file TargetMachine.h. Referenced by addPassesToEmitFileFinish(). |
|
|
getEnableTailMergeDefault - the default setting for -enable-tail-merge on this target. User flag overrides. Reimplemented from llvm::TargetMachine. Reimplemented in llvm::PPCTargetMachine. Definition at line 336 of file TargetMachine.h. Referenced by addPassesToEmitFile(), and addPassesToEmitMachineCode(). |