[llvm-commits] CVS: llvm/tools/llc/llc.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Nov 7 18:12:28 PST 2005



Changes in directory llvm/tools/llc:

llc.cpp updated: 1.116 -> 1.117
---
Log message:

Add a new -fast option, which generates code quickly.


---
Diffs of the changes:  (+5 -1)

 llc.cpp |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletion(-)


Index: llvm/tools/llc/llc.cpp
diff -u llvm/tools/llc/llc.cpp:1.116 llvm/tools/llc/llc.cpp:1.117
--- llvm/tools/llc/llc.cpp:1.116	Sun Oct 23 17:37:13 2005
+++ llvm/tools/llc/llc.cpp	Mon Nov  7 20:12:17 2005
@@ -45,6 +45,10 @@
 
 static cl::opt<bool> Force("f", cl::desc("Overwrite output files"));
 
+static cl::opt<bool> Fast("fast", 
+      cl::desc("Generate code quickly, potentially sacrificing code quality"));
+
+
 static cl::opt<const TargetMachineRegistry::Entry*, false, TargetNameParser>
 MArch("march", cl::desc("Architecture to generate code for:"));
 
@@ -228,7 +232,7 @@
     }
 
     // Ask the target to add backend passes as necessary.
-    if (Target.addPassesToEmitFile(Passes, *Out, FileType)) {
+    if (Target.addPassesToEmitFile(Passes, *Out, FileType, Fast)) {
       std::cerr << argv[0] << ": target '" << Target.getName()
                 << "' does not support generation of this file type!\n";
       if (Out != &std::cout) delete Out;






More information about the llvm-commits mailing list