From 9953302cb64dc56f618568bd327e4c397517f747 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 11 Jun 2015 02:58:29 +0300 Subject: [PATCH] Move old py2llvm code to artiq/py2llvm_old. --- artiq/py2llvm/__init__.py | 6 ------ artiq/py2llvm_old/__init__.py | 6 ++++++ artiq/{py2llvm => py2llvm_old}/ast_body.py | 0 artiq/{py2llvm => py2llvm_old}/base_types.py | 0 artiq/{py2llvm => py2llvm_old}/fractions.py | 0 artiq/{py2llvm => py2llvm_old}/infer_types.py | 0 artiq/{py2llvm => py2llvm_old}/iterators.py | 0 artiq/{py2llvm => py2llvm_old}/lists.py | 0 artiq/{py2llvm => py2llvm_old}/module.py | 0 artiq/{py2llvm => py2llvm_old}/tools.py | 0 artiq/{py2llvm => py2llvm_old}/values.py | 0 11 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 artiq/py2llvm_old/__init__.py rename artiq/{py2llvm => py2llvm_old}/ast_body.py (100%) rename artiq/{py2llvm => py2llvm_old}/base_types.py (100%) rename artiq/{py2llvm => py2llvm_old}/fractions.py (100%) rename artiq/{py2llvm => py2llvm_old}/infer_types.py (100%) rename artiq/{py2llvm => py2llvm_old}/iterators.py (100%) rename artiq/{py2llvm => py2llvm_old}/lists.py (100%) rename artiq/{py2llvm => py2llvm_old}/module.py (100%) rename artiq/{py2llvm => py2llvm_old}/tools.py (100%) rename artiq/{py2llvm => py2llvm_old}/values.py (100%) diff --git a/artiq/py2llvm/__init__.py b/artiq/py2llvm/__init__.py index fefb2b9ff..e69de29bb 100644 --- a/artiq/py2llvm/__init__.py +++ b/artiq/py2llvm/__init__.py @@ -1,6 +0,0 @@ -from artiq.py2llvm.module import Module - -def get_runtime_binary(env, func_def): - module = Module(env) - module.compile_function(func_def, dict()) - return module.emit_object() diff --git a/artiq/py2llvm_old/__init__.py b/artiq/py2llvm_old/__init__.py new file mode 100644 index 000000000..fefb2b9ff --- /dev/null +++ b/artiq/py2llvm_old/__init__.py @@ -0,0 +1,6 @@ +from artiq.py2llvm.module import Module + +def get_runtime_binary(env, func_def): + module = Module(env) + module.compile_function(func_def, dict()) + return module.emit_object() diff --git a/artiq/py2llvm/ast_body.py b/artiq/py2llvm_old/ast_body.py similarity index 100% rename from artiq/py2llvm/ast_body.py rename to artiq/py2llvm_old/ast_body.py diff --git a/artiq/py2llvm/base_types.py b/artiq/py2llvm_old/base_types.py similarity index 100% rename from artiq/py2llvm/base_types.py rename to artiq/py2llvm_old/base_types.py diff --git a/artiq/py2llvm/fractions.py b/artiq/py2llvm_old/fractions.py similarity index 100% rename from artiq/py2llvm/fractions.py rename to artiq/py2llvm_old/fractions.py diff --git a/artiq/py2llvm/infer_types.py b/artiq/py2llvm_old/infer_types.py similarity index 100% rename from artiq/py2llvm/infer_types.py rename to artiq/py2llvm_old/infer_types.py diff --git a/artiq/py2llvm/iterators.py b/artiq/py2llvm_old/iterators.py similarity index 100% rename from artiq/py2llvm/iterators.py rename to artiq/py2llvm_old/iterators.py diff --git a/artiq/py2llvm/lists.py b/artiq/py2llvm_old/lists.py similarity index 100% rename from artiq/py2llvm/lists.py rename to artiq/py2llvm_old/lists.py diff --git a/artiq/py2llvm/module.py b/artiq/py2llvm_old/module.py similarity index 100% rename from artiq/py2llvm/module.py rename to artiq/py2llvm_old/module.py diff --git a/artiq/py2llvm/tools.py b/artiq/py2llvm_old/tools.py similarity index 100% rename from artiq/py2llvm/tools.py rename to artiq/py2llvm_old/tools.py diff --git a/artiq/py2llvm/values.py b/artiq/py2llvm_old/values.py similarity index 100% rename from artiq/py2llvm/values.py rename to artiq/py2llvm_old/values.py