[pypy-svn] r26284 - pypy/dist/pypy/translator

dialtone at codespeak.net dialtone at codespeak.net
Tue Apr 25 05:22:33 CEST 2006


Author: dialtone
Date: Tue Apr 25 05:22:30 2006
New Revision: 26284

Modified:
   pypy/dist/pypy/translator/interactive.py
Log:
(sanxiyn, dialtone) add source_cl to interactive.py, first step towards a cl backend target

Modified: pypy/dist/pypy/translator/interactive.py
==============================================================================
--- pypy/dist/pypy/translator/interactive.py	(original)
+++ pypy/dist/pypy/translator/interactive.py	Tue Apr 25 05:22:30 2006
@@ -56,6 +56,7 @@
         'source_c': [],
         'compile_c': [],
         'compile_llvm': [],
+        'source_cl': [],
     }
 
     def view(self):
@@ -153,6 +154,11 @@
         self.ensure_backend('llvm')
         self.driver.source_llvm()
 
+    def source_cl(self, argtypes=None, **kwds):
+        self.update_options(argtypes, kwds)
+        self.ensure_backend('cl')
+        self.driver.source_cl()
+
     def compile(self, argtypes=None, **kwds):
         self.update_options(argtypes, kwds)
         backend = self.ensure_backend()



More information about the Pypy-commit mailing list