diff options
author | Chris Lattner <sabre@nondot.org> | 2005-11-08 02:12:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-11-08 02:12:17 +0000 |
commit | 178e0c41ce22160e6a1005420a52c29162dd87d3 (patch) | |
tree | 666d16144090dfe71960c2f8bac480917a08bad0 /tools/llc | |
parent | ce8eb0c16b7197eaa886f90c1ef9ab9bbf1957c4 (diff) | |
download | external_llvm-178e0c41ce22160e6a1005420a52c29162dd87d3.zip external_llvm-178e0c41ce22160e6a1005420a52c29162dd87d3.tar.gz external_llvm-178e0c41ce22160e6a1005420a52c29162dd87d3.tar.bz2 |
Add a new -fast option, which generates code quickly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llc')
-rw-r--r-- | tools/llc/llc.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index b365f27..e71a7b9 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -45,6 +45,10 @@ OutputFilename("o", cl::desc("Output filename"), cl::value_desc("filename")); 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 @@ int main(int argc, char **argv) { } // 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; |