[llvm-commits] CVS: llvm/lib/Target/Sparc/Sparc.cpp
Vikram Adve
vadve at cs.uiuc.edu
Tue Jul 29 14:59:04 PDT 2003
Changes in directory llvm/lib/Target/Sparc:
Sparc.cpp updated: 1.69 -> 1.70
---
Log message:
Rename 'dump-asm' to 'dump-input' and really print it just before code-gen.
---
Diffs of the changes:
Index: llvm/lib/Target/Sparc/Sparc.cpp
diff -u llvm/lib/Target/Sparc/Sparc.cpp:1.69 llvm/lib/Target/Sparc/Sparc.cpp:1.70
--- llvm/lib/Target/Sparc/Sparc.cpp:1.69 Wed Jun 18 16:14:21 2003
+++ llvm/lib/Target/Sparc/Sparc.cpp Tue Jul 29 14:58:00 2003
@@ -52,8 +52,8 @@
cl::desc("Do not strip the LLVM bytecode included in the executable"));
static cl::opt<bool>
-DumpAsm("dump-asm", cl::desc("Print bytecode before native code generation"),
- cl::Hidden);
+DumpInput("dump-input",cl::desc("Print bytecode before native code generation"),
+ cl::Hidden);
//----------------------------------------------------------------------------
// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
@@ -154,10 +154,6 @@
// Replace malloc and free instructions with library calls.
PM.add(createLowerAllocationsPass());
- // If LLVM dumping after transformations is requested, add it to the pipeline
- if (DumpAsm)
- PM.add(new PrintFunctionPass("Code after xformations: \n", &std::cerr));
-
// Strip all of the symbols from the bytecode so that it will be smaller...
if (!DisableStrip)
PM.add(createSymbolStrippingPass());
@@ -180,6 +176,10 @@
PM.add(createLICMPass());
PM.add(createGCSEPass());
}
+
+ // If LLVM dumping after transformations is requested, add it to the pipeline
+ if (DumpInput)
+ PM.add(new PrintFunctionPass("Input code to instr. selection: \n", &std::cerr));
PM.add(createInstructionSelectionPass(*this));
More information about the llvm-commits
mailing list