diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-11 05:17:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-11 05:17:48 +0000 |
commit | 81b6ed7ed1dbf1e5cc001aaff2dee5bdd8d1122e (patch) | |
tree | ebc2d846265d53e190d04116ca3a2898c0a9b6bd /lib/Target/X86/X86.h | |
parent | aa507db59e085b1a6c728c2becef76e6dd9ab03a (diff) | |
download | external_llvm-81b6ed7ed1dbf1e5cc001aaff2dee5bdd8d1122e.zip external_llvm-81b6ed7ed1dbf1e5cc001aaff2dee5bdd8d1122e.tar.gz external_llvm-81b6ed7ed1dbf1e5cc001aaff2dee5bdd8d1122e.tar.bz2 |
Refactor things a bit to allow the ELF code emitter to run the X86 machine code emitter
after itself.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86.h')
-rw-r--r-- | lib/Target/X86/X86.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/lib/Target/X86/X86.h b/lib/Target/X86/X86.h index c89bb09..69f887a 100644 --- a/lib/Target/X86/X86.h +++ b/lib/Target/X86/X86.h @@ -20,8 +20,10 @@ namespace llvm { class TargetMachine; +class PassManager; class FunctionPass; class IntrinsicLowering; +class MachineCodeEmitter; enum X86VectorEnum { NoSSE, SSE, SSE2, SSE3 @@ -59,16 +61,19 @@ FunctionPass *createX86FloatingPointStackifierPass(); /// createX86CodePrinterPass - Returns a pass that prints the X86 /// assembly code for a MachineFunction to the given output stream, -/// using the given target machine description. This should work -/// regardless of whether the function is in SSA form. +/// using the given target machine description. /// -FunctionPass *createX86CodePrinterPass(std::ostream &o,TargetMachine &tm); +FunctionPass *createX86CodePrinterPass(std::ostream &o, TargetMachine &tm); -/// createX86ELFObjectWriterPass - Returns a pass that outputs the generated +/// createX86CodeEmitterPass - Return a pass that emits the collected X86 code +/// to the specified MCE object. +FunctionPass *createX86CodeEmitterPass(MachineCodeEmitter &MCE); + +/// addX86ELFObjectWriterPass - Add passes to the FPM that output the generated /// code as an ELF object file. /// -FunctionPass *createX86ELFObjectWriterPass(std::ostream &o, TargetMachine &tm); - +void addX86ELFObjectWriterPass(PassManager &FPM, + std::ostream &o, TargetMachine &tm); /// createX86EmitCodeToMemory - Returns a pass that converts a register /// allocated function into raw machine code in a dynamically |