[llvm-commits] CVS: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp SparcV8TargetMachine.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 7 18:12:06 PST 2005
Changes in directory llvm/lib/Target/SparcV8:
SparcV8TargetMachine.cpp updated: 1.30 -> 1.31
SparcV8TargetMachine.h updated: 1.7 -> 1.8
---
Log message:
Add a new option to indicate we want the code generator to emit code quickly,not spending tons of time microoptimizing it. This is useful for an -O0style of build.
---
Diffs of the changes: (+3 -8)
SparcV8TargetMachine.cpp | 3 ++-
SparcV8TargetMachine.h | 8 +-------
2 files changed, 3 insertions(+), 8 deletions(-)
Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.30 llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.31
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp:1.30 Sat Oct 29 00:28:34 2005
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.cpp Mon Nov 7 20:11:51 2005
@@ -65,7 +65,8 @@
///
bool SparcV8TargetMachine::addPassesToEmitFile(PassManager &PM,
std::ostream &Out,
- CodeGenFileType FileType) {
+ CodeGenFileType FileType,
+ bool Fast) {
if (FileType != TargetMachine::AssemblyFile) return true;
// FIXME: Implement efficient support for garbage collection intrinsics.
Index: llvm/lib/Target/SparcV8/SparcV8TargetMachine.h
diff -u llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.7 llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.8
--- llvm/lib/Target/SparcV8/SparcV8TargetMachine.h:1.7 Thu Sep 1 16:38:21 2005
+++ llvm/lib/Target/SparcV8/SparcV8TargetMachine.h Mon Nov 7 20:11:51 2005
@@ -45,17 +45,11 @@
static unsigned getModuleMatchQuality(const Module &M);
static unsigned getJITMatchQuality();
- /// addPassesToEmitMachineCode - Add passes to the specified pass manager to
- /// 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(FunctionPassManager &PM,
MachineCodeEmitter &MCE);
virtual bool addPassesToEmitFile(PassManager &PM, std::ostream &Out,
- CodeGenFileType FileType);
+ CodeGenFileType FileType, bool Fast);
};
} // end namespace llvm
More information about the llvm-commits
mailing list