[pypy-svn] r48949 - in pypy/dist/pypy: config translator/llvm

xoraxax at codespeak.net xoraxax at codespeak.net
Thu Nov 22 21:44:30 CET 2007


Author: xoraxax
Date: Thu Nov 22 21:44:30 2007
New Revision: 48949

Modified:
   pypy/dist/pypy/config/translationoption.py
   pypy/dist/pypy/translator/llvm/buildllvm.py
Log:
Add an option that can be used to change the opt options. If you use this new option with the argument "", you can actually build the prolog target without any abort() in opt.

Modified: pypy/dist/pypy/config/translationoption.py
==============================================================================
--- pypy/dist/pypy/config/translationoption.py	(original)
+++ pypy/dist/pypy/config/translationoption.py	Thu Nov 22 21:44:30 2007
@@ -214,7 +214,9 @@
     OptionDescription("llvm", "GenLLVM options", [
         BoolOption("debug", "Include the llops in the source as comments", default=False),
         BoolOption("logging", "Log how long the various parts of llvm generation take", default=False),
-        BoolOption("isolate", "Peform an isolated import", default=True),
+        BoolOption("isolate", "Perform an isolated import", default=True),
+        StrOption("opt_options", "Options passed to opt (influences level of optimization in LLVM)",
+                     default="-std-compile-opts", cmdline="--translation-llvm-opt-options"),
     ]),
 
     OptionDescription("cli", "GenCLI options", [

Modified: pypy/dist/pypy/translator/llvm/buildllvm.py
==============================================================================
--- pypy/dist/pypy/translator/llvm/buildllvm.py	(original)
+++ pypy/dist/pypy/translator/llvm/buildllvm.py	Thu Nov 22 21:44:30 2007
@@ -53,7 +53,7 @@
         self.cmds = []
 
     def optimizations(self):
-        return '-std-compile-opts'
+        return self.genllvm.config.translation.llvm.opt_options
 
     def execute_cmds(self):
         c = stdoutcapture.Capture(mixed_out_err=True)



More information about the Pypy-commit mailing list