[llvm-commits] CVS: llvm/lib/Target/X86/X86CodeEmitter.cpp X86TargetMachine.h
Brian Gaeke
gaeke at niobe.cs.uiuc.edu
Wed Aug 13 13:18:08 PDT 2003
Changes in directory llvm/lib/Target/X86:
X86CodeEmitter.cpp updated: 1.34 -> 1.35
X86TargetMachine.h updated: 1.10 -> 1.11
---
Log message:
addPassesToJITCompile and addPassesToEmitMachineCode now take a
FunctionPassManager, to support function-at-a-time compilation and
emission of code.
---
Diffs of the changes:
Index: llvm/lib/Target/X86/X86CodeEmitter.cpp
diff -u llvm/lib/Target/X86/X86CodeEmitter.cpp:1.34 llvm/lib/Target/X86/X86CodeEmitter.cpp:1.35
--- llvm/lib/Target/X86/X86CodeEmitter.cpp:1.34 Mon Aug 4 19:48:46 2003
+++ llvm/lib/Target/X86/X86CodeEmitter.cpp Wed Aug 13 13:17:27 2003
@@ -181,7 +181,7 @@
/// of functions. This method should returns true if machine code emission is
/// not supported.
///
-bool X86TargetMachine::addPassesToEmitMachineCode(PassManager &PM,
+bool X86TargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
MachineCodeEmitter &MCE) {
PM.add(new Emitter(MCE));
return false;
Index: llvm/lib/Target/X86/X86TargetMachine.h
diff -u llvm/lib/Target/X86/X86TargetMachine.h:1.10 llvm/lib/Target/X86/X86TargetMachine.h:1.11
--- llvm/lib/Target/X86/X86TargetMachine.h:1.10 Wed Jun 18 16:43:21 2003
+++ llvm/lib/Target/X86/X86TargetMachine.h Wed Aug 13 13:17:27 2003
@@ -9,6 +9,7 @@
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetFrameInfo.h"
+#include "llvm/PassManager.h"
#include "X86InstrInfo.h"
class X86TargetMachine : public TargetMachine {
@@ -32,15 +33,15 @@
/// implement a fast dynamic compiler for this target. Return true if this is
/// not supported for this target.
///
- virtual bool addPassesToJITCompile(PassManager &PM);
+ virtual bool addPassesToJITCompile(FunctionPassManager &PM);
/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
- /// get machine code emitted. This uses a MAchineCodeEmitter object to handle
+ /// 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.
///
- virtual bool addPassesToEmitMachineCode(PassManager &PM,
+ virtual bool addPassesToEmitMachineCode(FunctionPassManager &PM,
MachineCodeEmitter &MCE);
virtual bool addPassesToEmitAssembly(PassManager &PM, std::ostream &Out);
More information about the llvm-commits
mailing list