[pypy-commit] pypy ppc-jit-backend-rpythonization: remove ppcgen directory

hager noreply at buildbot.pypy.org
Wed Feb 8 14:33:14 CET 2012


Author: hager <sven.hager at uni-duesseldorf.de>
Branch: ppc-jit-backend-rpythonization
Changeset: r52230:ed5e44d50011
Date: 2012-02-08 05:32 -0800
http://bitbucket.org/pypy/pypy/changeset/ed5e44d50011/

Log:	remove ppcgen directory

diff --git a/pypy/jit/backend/ppc/ppcgen/_ppcgen.c b/pypy/jit/backend/ppc/_ppcgen.c
rename from pypy/jit/backend/ppc/ppcgen/_ppcgen.c
rename to pypy/jit/backend/ppc/_ppcgen.c
diff --git a/pypy/jit/backend/ppc/ppcgen/arch.py b/pypy/jit/backend/ppc/arch.py
rename from pypy/jit/backend/ppc/ppcgen/arch.py
rename to pypy/jit/backend/ppc/arch.py
--- a/pypy/jit/backend/ppc/ppcgen/arch.py
+++ b/pypy/jit/backend/ppc/arch.py
@@ -1,6 +1,6 @@
 # Constants that depend on whether we are on 32-bit or 64-bit
 
-from pypy.jit.backend.ppc.ppcgen.register import (NONVOLATILES,
+from pypy.jit.backend.ppc.register import (NONVOLATILES,
                                                   NONVOLATILES_FLOAT,
                                                   MANAGED_REGS)
 
diff --git a/pypy/jit/backend/ppc/ppcgen/asmfunc.py b/pypy/jit/backend/ppc/asmfunc.py
rename from pypy/jit/backend/ppc/ppcgen/asmfunc.py
rename to pypy/jit/backend/ppc/asmfunc.py
--- a/pypy/jit/backend/ppc/ppcgen/asmfunc.py
+++ b/pypy/jit/backend/ppc/asmfunc.py
@@ -4,7 +4,7 @@
 from pypy.jit.backend.ppc.codebuf import MachineCodeBlockWrapper
 from pypy.jit.backend.llsupport.asmmemmgr import AsmMemoryManager
 from pypy.rpython.lltypesystem import lltype, rffi
-from pypy.jit.backend.ppc.ppcgen.arch import IS_PPC_32, IS_PPC_64, WORD
+from pypy.jit.backend.ppc.arch import IS_PPC_32, IS_PPC_64, WORD
 from pypy.rlib.rarithmetic import r_uint
 
 _ppcgen = None
diff --git a/pypy/jit/backend/ppc/ppcgen/assembler.py b/pypy/jit/backend/ppc/assembler.py
rename from pypy/jit/backend/ppc/ppcgen/assembler.py
rename to pypy/jit/backend/ppc/assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/assembler.py
+++ b/pypy/jit/backend/ppc/assembler.py
@@ -1,5 +1,5 @@
 import os
-from pypy.jit.backend.ppc.ppcgen import form
+from pypy.jit.backend.ppc import form
 
 # don't be fooled by the fact that there's some separation between a
 # generic assembler class and a PPC assembler class... there's
@@ -62,7 +62,7 @@
 
     def assemble(self, dump=os.environ.has_key('PPY_DEBUG')):
         #insns = self.assemble0(dump)
-        from pypy.jit.backend.ppc.ppcgen import asmfunc
+        from pypy.jit.backend.ppc import asmfunc
         c = asmfunc.AsmCode(len(self.insts)*4)
         for i in self.insts:
             c.emit(i)#.assemble())
diff --git a/pypy/jit/backend/ppc/ppcgen/codebuilder.py b/pypy/jit/backend/ppc/codebuilder.py
rename from pypy/jit/backend/ppc/ppcgen/codebuilder.py
rename to pypy/jit/backend/ppc/codebuilder.py
--- a/pypy/jit/backend/ppc/ppcgen/codebuilder.py
+++ b/pypy/jit/backend/ppc/codebuilder.py
@@ -1,16 +1,16 @@
 import os
 import struct
-from pypy.jit.backend.ppc.ppcgen.ppc_form import PPCForm as Form
-from pypy.jit.backend.ppc.ppcgen.ppc_field import ppc_fields
-from pypy.jit.backend.ppc.ppcgen.regalloc import (TempInt, PPCFrameManager,
+from pypy.jit.backend.ppc.ppc_form import PPCForm as Form
+from pypy.jit.backend.ppc.ppc_field import ppc_fields
+from pypy.jit.backend.ppc.regalloc import (TempInt, PPCFrameManager,
                                                   Regalloc)
-from pypy.jit.backend.ppc.ppcgen.assembler import Assembler
-from pypy.jit.backend.ppc.ppcgen.symbol_lookup import lookup
-from pypy.jit.backend.ppc.ppcgen.arch import (IS_PPC_32, WORD, NONVOLATILES,
+from pypy.jit.backend.ppc.assembler import Assembler
+from pypy.jit.backend.ppc.symbol_lookup import lookup
+from pypy.jit.backend.ppc.arch import (IS_PPC_32, WORD, NONVOLATILES,
                                               GPR_SAVE_AREA, IS_PPC_64)
-from pypy.jit.backend.ppc.ppcgen.helper.assembler import gen_emit_cmp_op
-import pypy.jit.backend.ppc.ppcgen.register as r
-import pypy.jit.backend.ppc.ppcgen.condition as c
+from pypy.jit.backend.ppc.helper.assembler import gen_emit_cmp_op
+import pypy.jit.backend.ppc.register as r
+import pypy.jit.backend.ppc.condition as c
 from pypy.jit.metainterp.history import (Const, ConstPtr, JitCellToken, 
                                          TargetToken, AbstractFailDescr)
 from pypy.jit.backend.llsupport.asmmemmgr import (BlockBuilderMixin, AsmMemoryManager, MachineDataBlockWrapper)
@@ -26,7 +26,7 @@
 from pypy.rlib.objectmodel import we_are_translated
 
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
-from pypy.jit.backend.ppc.ppcgen.rassemblermaker import make_rassembler
+from pypy.jit.backend.ppc.rassemblermaker import make_rassembler
 
 A = Form("frD", "frA", "frB", "XO3", "Rc")
 A1 = Form("frD", "frB", "XO3", "Rc")
diff --git a/pypy/jit/backend/ppc/ppcgen/condition.py b/pypy/jit/backend/ppc/condition.py
rename from pypy/jit/backend/ppc/ppcgen/condition.py
rename to pypy/jit/backend/ppc/condition.py
diff --git a/pypy/jit/backend/ppc/ppcgen/field.py b/pypy/jit/backend/ppc/field.py
rename from pypy/jit/backend/ppc/ppcgen/field.py
rename to pypy/jit/backend/ppc/field.py
diff --git a/pypy/jit/backend/ppc/ppcgen/form.py b/pypy/jit/backend/ppc/form.py
rename from pypy/jit/backend/ppc/ppcgen/form.py
rename to pypy/jit/backend/ppc/form.py
diff --git a/pypy/jit/backend/ppc/ppcgen/func_builder.py b/pypy/jit/backend/ppc/func_builder.py
rename from pypy/jit/backend/ppc/ppcgen/func_builder.py
rename to pypy/jit/backend/ppc/func_builder.py
--- a/pypy/jit/backend/ppc/ppcgen/func_builder.py
+++ b/pypy/jit/backend/ppc/func_builder.py
@@ -1,6 +1,6 @@
-from pypy.jit.backend.ppc.ppcgen.ppc_assembler import PPCAssembler
-from pypy.jit.backend.ppc.ppcgen.symbol_lookup import lookup
-from pypy.jit.backend.ppc.ppcgen.regname import *
+from pypy.jit.backend.ppc.ppc_assembler import PPCAssembler
+from pypy.jit.backend.ppc.symbol_lookup import lookup
+from pypy.jit.backend.ppc.regname import *
 
 def load_arg(code, argi, typecode):
     rD = r3+argi
diff --git a/pypy/jit/backend/ppc/helper/__init__.py b/pypy/jit/backend/ppc/helper/__init__.py
new file mode 100644
diff --git a/pypy/jit/backend/ppc/ppcgen/helper/assembler.py b/pypy/jit/backend/ppc/helper/assembler.py
rename from pypy/jit/backend/ppc/ppcgen/helper/assembler.py
rename to pypy/jit/backend/ppc/helper/assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/helper/assembler.py
+++ b/pypy/jit/backend/ppc/helper/assembler.py
@@ -1,10 +1,10 @@
-import pypy.jit.backend.ppc.ppcgen.condition as c
+import pypy.jit.backend.ppc.condition as c
 from pypy.rlib.rarithmetic import r_uint, r_longlong, intmask
-from pypy.jit.backend.ppc.ppcgen.arch import (MAX_REG_PARAMS, IS_PPC_32, WORD,
+from pypy.jit.backend.ppc.arch import (MAX_REG_PARAMS, IS_PPC_32, WORD,
                                               BACKCHAIN_SIZE)
 from pypy.jit.metainterp.history import FLOAT
 from pypy.rlib.unroll import unrolling_iterable
-import pypy.jit.backend.ppc.ppcgen.register as r
+import pypy.jit.backend.ppc.register as r
 from pypy.rpython.lltypesystem import rffi, lltype
 
 def gen_emit_cmp_op(condition, signed=True):
diff --git a/pypy/jit/backend/ppc/ppcgen/helper/regalloc.py b/pypy/jit/backend/ppc/helper/regalloc.py
rename from pypy/jit/backend/ppc/ppcgen/helper/regalloc.py
rename to pypy/jit/backend/ppc/helper/regalloc.py
diff --git a/pypy/jit/backend/ppc/ppcgen/jump.py b/pypy/jit/backend/ppc/jump.py
rename from pypy/jit/backend/ppc/ppcgen/jump.py
rename to pypy/jit/backend/ppc/jump.py
--- a/pypy/jit/backend/ppc/ppcgen/jump.py
+++ b/pypy/jit/backend/ppc/jump.py
@@ -76,7 +76,7 @@
                              src_locations2, dst_locations2, tmpreg2):
     # find and push the xmm stack locations from src_locations2 that
     # are going to be overwritten by dst_locations1
-    from pypy.jit.backend.ppc.ppcgen.arch import WORD
+    from pypy.jit.backend.ppc.arch import WORD
     extrapushes = []
     dst_keys = {}
     for loc in dst_locations1:
diff --git a/pypy/jit/backend/ppc/ppcgen/locations.py b/pypy/jit/backend/ppc/locations.py
rename from pypy/jit/backend/ppc/ppcgen/locations.py
rename to pypy/jit/backend/ppc/locations.py
diff --git a/pypy/jit/backend/ppc/ppcgen/opassembler.py b/pypy/jit/backend/ppc/opassembler.py
rename from pypy/jit/backend/ppc/ppcgen/opassembler.py
rename to pypy/jit/backend/ppc/opassembler.py
--- a/pypy/jit/backend/ppc/ppcgen/opassembler.py
+++ b/pypy/jit/backend/ppc/opassembler.py
@@ -1,19 +1,19 @@
-from pypy.jit.backend.ppc.ppcgen.helper.assembler import (gen_emit_cmp_op, 
+from pypy.jit.backend.ppc.helper.assembler import (gen_emit_cmp_op, 
                                                           gen_emit_unary_cmp_op)
-import pypy.jit.backend.ppc.ppcgen.condition as c
-import pypy.jit.backend.ppc.ppcgen.register as r
-from pypy.jit.backend.ppc.ppcgen.arch import (IS_PPC_32, WORD,
+import pypy.jit.backend.ppc.condition as c
+import pypy.jit.backend.ppc.register as r
+from pypy.jit.backend.ppc.arch import (IS_PPC_32, WORD,
                                               GPR_SAVE_AREA, BACKCHAIN_SIZE,
                                               MAX_REG_PARAMS)
 
 from pypy.jit.metainterp.history import (JitCellToken, TargetToken, Box,
                                          AbstractFailDescr, FLOAT, INT, REF)
 from pypy.rlib.objectmodel import we_are_translated
-from pypy.jit.backend.ppc.ppcgen.helper.assembler import (count_reg_args,
+from pypy.jit.backend.ppc.helper.assembler import (count_reg_args,
                                                           Saved_Volatiles)
-from pypy.jit.backend.ppc.ppcgen.jump import remap_frame_layout
-from pypy.jit.backend.ppc.ppcgen.codebuilder import OverwritingBuilder
-from pypy.jit.backend.ppc.ppcgen.regalloc import TempPtr, TempInt
+from pypy.jit.backend.ppc.jump import remap_frame_layout
+from pypy.jit.backend.ppc.codebuilder import OverwritingBuilder
+from pypy.jit.backend.ppc.regalloc import TempPtr, TempInt
 from pypy.jit.backend.llsupport import symbolic
 from pypy.rpython.lltypesystem import rstr, rffi, lltype
 from pypy.jit.metainterp.resoperation import rop
diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py b/pypy/jit/backend/ppc/ppc_assembler.py
rename from pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
rename to pypy/jit/backend/ppc/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppc_assembler.py
@@ -1,27 +1,27 @@
 import os
 import struct
-from pypy.jit.backend.ppc.ppcgen.ppc_form import PPCForm as Form
-from pypy.jit.backend.ppc.ppcgen.ppc_field import ppc_fields
-from pypy.jit.backend.ppc.ppcgen.regalloc import (TempInt, PPCFrameManager,
+from pypy.jit.backend.ppc.ppc_form import PPCForm as Form
+from pypy.jit.backend.ppc.ppc_field import ppc_fields
+from pypy.jit.backend.ppc.regalloc import (TempInt, PPCFrameManager,
                                                   Regalloc)
-from pypy.jit.backend.ppc.ppcgen.assembler import Assembler
-from pypy.jit.backend.ppc.ppcgen.opassembler import OpAssembler
-from pypy.jit.backend.ppc.ppcgen.symbol_lookup import lookup
-from pypy.jit.backend.ppc.ppcgen.codebuilder import PPCBuilder
-from pypy.jit.backend.ppc.ppcgen.jump import remap_frame_layout
-from pypy.jit.backend.ppc.ppcgen.arch import (IS_PPC_32, IS_PPC_64, WORD,
+from pypy.jit.backend.ppc.assembler import Assembler
+from pypy.jit.backend.ppc.opassembler import OpAssembler
+from pypy.jit.backend.ppc.symbol_lookup import lookup
+from pypy.jit.backend.ppc.codebuilder import PPCBuilder
+from pypy.jit.backend.ppc.jump import remap_frame_layout
+from pypy.jit.backend.ppc.arch import (IS_PPC_32, IS_PPC_64, WORD,
                                               NONVOLATILES, MAX_REG_PARAMS,
                                               GPR_SAVE_AREA, BACKCHAIN_SIZE,
                                               FPR_SAVE_AREA,
                                               FLOAT_INT_CONVERSION, FORCE_INDEX,
                                               SIZE_LOAD_IMM_PATCH_SP)
-from pypy.jit.backend.ppc.ppcgen.helper.assembler import (gen_emit_cmp_op, 
+from pypy.jit.backend.ppc.helper.assembler import (gen_emit_cmp_op, 
                                                           encode32, encode64,
                                                           decode32, decode64,
                                                           count_reg_args,
                                                           Saved_Volatiles)
-import pypy.jit.backend.ppc.ppcgen.register as r
-import pypy.jit.backend.ppc.ppcgen.condition as c
+import pypy.jit.backend.ppc.register as r
+import pypy.jit.backend.ppc.condition as c
 from pypy.jit.metainterp.history import (Const, ConstPtr, JitCellToken, 
                                          TargetToken, AbstractFailDescr)
 from pypy.jit.backend.llsupport.asmmemmgr import (BlockBuilderMixin, 
@@ -40,7 +40,7 @@
 from pypy.rpython.annlowlevel import llhelper
 from pypy.rlib.objectmodel import we_are_translated
 from pypy.rpython.lltypesystem.lloperation import llop
-from pypy.jit.backend.ppc.ppcgen.locations import StackLocation, get_spp_offset
+from pypy.jit.backend.ppc.locations import StackLocation, get_spp_offset
 
 memcpy_fn = rffi.llexternal('memcpy', [llmemory.Address, llmemory.Address,
                                        rffi.SIZE_T], lltype.Void,
diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_field.py b/pypy/jit/backend/ppc/ppc_field.py
rename from pypy/jit/backend/ppc/ppcgen/ppc_field.py
rename to pypy/jit/backend/ppc/ppc_field.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_field.py
+++ b/pypy/jit/backend/ppc/ppc_field.py
@@ -1,5 +1,5 @@
-from pypy.jit.backend.ppc.ppcgen.field import Field
-from pypy.jit.backend.ppc.ppcgen import regname
+from pypy.jit.backend.ppc.field import Field
+from pypy.jit.backend.ppc import regname
 
 fields = { # bit margins are *inclusive*! (and bit 0 is
            # most-significant, 31 least significant)
diff --git a/pypy/jit/backend/ppc/ppcgen/ppc_form.py b/pypy/jit/backend/ppc/ppc_form.py
rename from pypy/jit/backend/ppc/ppcgen/ppc_form.py
rename to pypy/jit/backend/ppc/ppc_form.py
--- a/pypy/jit/backend/ppc/ppcgen/ppc_form.py
+++ b/pypy/jit/backend/ppc/ppc_form.py
@@ -1,5 +1,5 @@
-from pypy.jit.backend.ppc.ppcgen.form import Form
-from pypy.jit.backend.ppc.ppcgen.ppc_field import ppc_fields
+from pypy.jit.backend.ppc.form import Form
+from pypy.jit.backend.ppc.ppc_field import ppc_fields
 
 class PPCForm(Form):
     fieldmap = ppc_fields
diff --git a/pypy/jit/backend/ppc/ppcgen/__init__.py b/pypy/jit/backend/ppc/ppcgen/__init__.py
deleted file mode 100644
diff --git a/pypy/jit/backend/ppc/ppcgen/helper/__init__.py b/pypy/jit/backend/ppc/ppcgen/helper/__init__.py
deleted file mode 100644
diff --git a/pypy/jit/backend/ppc/ppcgen/test/__init__.py b/pypy/jit/backend/ppc/ppcgen/test/__init__.py
deleted file mode 100644
diff --git a/pypy/jit/backend/ppc/ppcgen/rassemblermaker.py b/pypy/jit/backend/ppc/rassemblermaker.py
rename from pypy/jit/backend/ppc/ppcgen/rassemblermaker.py
rename to pypy/jit/backend/ppc/rassemblermaker.py
--- a/pypy/jit/backend/ppc/ppcgen/rassemblermaker.py
+++ b/pypy/jit/backend/ppc/rassemblermaker.py
@@ -1,7 +1,7 @@
 from pypy.tool.sourcetools import compile2
 from pypy.rlib.rarithmetic import r_uint
-from pypy.jit.backend.ppc.ppcgen.form import IDesc, IDupDesc
-from pypy.jit.backend.ppc.ppcgen.ppc_field import IField
+from pypy.jit.backend.ppc.form import IDesc, IDupDesc
+from pypy.jit.backend.ppc.ppc_field import IField
 
 ##     "opcode": ( 0,  5),
 ##     "rA":     (11, 15, 'unsigned', regname._R),
diff --git a/pypy/jit/backend/ppc/ppcgen/regalloc.py b/pypy/jit/backend/ppc/regalloc.py
rename from pypy/jit/backend/ppc/ppcgen/regalloc.py
rename to pypy/jit/backend/ppc/regalloc.py
--- a/pypy/jit/backend/ppc/ppcgen/regalloc.py
+++ b/pypy/jit/backend/ppc/regalloc.py
@@ -1,10 +1,10 @@
 from pypy.jit.backend.llsupport.regalloc import (RegisterManager, FrameManager,
                                                  TempBox, compute_vars_longevity)
-from pypy.jit.backend.ppc.ppcgen.arch import (WORD, MY_COPY_OF_REGS)
-from pypy.jit.backend.ppc.ppcgen.jump import (remap_frame_layout_mixed,
+from pypy.jit.backend.ppc.arch import (WORD, MY_COPY_OF_REGS)
+from pypy.jit.backend.ppc.jump import (remap_frame_layout_mixed,
                                               remap_frame_layout)
-from pypy.jit.backend.ppc.ppcgen.locations import imm
-from pypy.jit.backend.ppc.ppcgen.helper.regalloc import (_check_imm_arg,
+from pypy.jit.backend.ppc.locations import imm
+from pypy.jit.backend.ppc.helper.regalloc import (_check_imm_arg,
                                                          check_imm_box,
                                                          prepare_cmp_op,
                                                          prepare_unary_int_op,
@@ -15,12 +15,12 @@
                                          ConstPtr, Box)
 from pypy.jit.metainterp.history import JitCellToken, TargetToken
 from pypy.jit.metainterp.resoperation import rop
-from pypy.jit.backend.ppc.ppcgen import locations
+from pypy.jit.backend.ppc import locations
 from pypy.rpython.lltypesystem import rffi, lltype, rstr
 from pypy.jit.backend.llsupport import symbolic
 from pypy.jit.backend.llsupport.descr import ArrayDescr
 from pypy.jit.codewriter.effectinfo import EffectInfo
-import pypy.jit.backend.ppc.ppcgen.register as r
+import pypy.jit.backend.ppc.register as r
 from pypy.jit.codewriter import heaptracker
 from pypy.jit.backend.llsupport.descr import unpack_arraydescr
 from pypy.jit.backend.llsupport.descr import unpack_fielddescr
diff --git a/pypy/jit/backend/ppc/ppcgen/register.py b/pypy/jit/backend/ppc/register.py
rename from pypy/jit/backend/ppc/ppcgen/register.py
rename to pypy/jit/backend/ppc/register.py
--- a/pypy/jit/backend/ppc/ppcgen/register.py
+++ b/pypy/jit/backend/ppc/register.py
@@ -1,4 +1,4 @@
-from pypy.jit.backend.ppc.ppcgen.locations import (RegisterLocation,
+from pypy.jit.backend.ppc.locations import (RegisterLocation,
                                                    FPRegisterLocation)
 
 ALL_REGS        = [RegisterLocation(i) for i in range(32)]
diff --git a/pypy/jit/backend/ppc/ppcgen/regname.py b/pypy/jit/backend/ppc/regname.py
rename from pypy/jit/backend/ppc/ppcgen/regname.py
rename to pypy/jit/backend/ppc/regname.py
diff --git a/pypy/jit/backend/ppc/runner.py b/pypy/jit/backend/ppc/runner.py
--- a/pypy/jit/backend/ppc/runner.py
+++ b/pypy/jit/backend/ppc/runner.py
@@ -6,16 +6,16 @@
 from pypy.jit.metainterp import history, compile
 from pypy.jit.metainterp.history import BoxPtr
 from pypy.jit.backend.x86.assembler import Assembler386
-from pypy.jit.backend.ppc.ppcgen.arch import FORCE_INDEX_OFS
+from pypy.jit.backend.ppc.arch import FORCE_INDEX_OFS
 from pypy.jit.backend.x86.profagent import ProfileAgent
 from pypy.jit.backend.llsupport.llmodel import AbstractLLCPU
 from pypy.jit.backend.x86 import regloc
 from pypy.jit.backend.x86.support import values_array
-from pypy.jit.backend.ppc.ppcgen.ppc_assembler import AssemblerPPC
-from pypy.jit.backend.ppc.ppcgen.arch import NONVOLATILES, GPR_SAVE_AREA, WORD
-from pypy.jit.backend.ppc.ppcgen.regalloc import PPCRegisterManager, PPCFrameManager
-from pypy.jit.backend.ppc.ppcgen.codebuilder import PPCBuilder
-from pypy.jit.backend.ppc.ppcgen import register as r
+from pypy.jit.backend.ppc.ppc_assembler import AssemblerPPC
+from pypy.jit.backend.ppc.arch import NONVOLATILES, GPR_SAVE_AREA, WORD
+from pypy.jit.backend.ppc.regalloc import PPCRegisterManager, PPCFrameManager
+from pypy.jit.backend.ppc.codebuilder import PPCBuilder
+from pypy.jit.backend.ppc import register as r
 import sys
 
 from pypy.tool.ansi_print import ansi_log
diff --git a/pypy/jit/backend/ppc/ppcgen/symbol_lookup.py b/pypy/jit/backend/ppc/symbol_lookup.py
rename from pypy/jit/backend/ppc/ppcgen/symbol_lookup.py
rename to pypy/jit/backend/ppc/symbol_lookup.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/autopath.py b/pypy/jit/backend/ppc/test/autopath.py
rename from pypy/jit/backend/ppc/ppcgen/test/autopath.py
rename to pypy/jit/backend/ppc/test/autopath.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_call_assembler.py b/pypy/jit/backend/ppc/test/test_call_assembler.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_call_assembler.py
rename to pypy/jit/backend/ppc/test/test_call_assembler.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_field.py b/pypy/jit/backend/ppc/test/test_field.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_field.py
rename to pypy/jit/backend/ppc/test/test_field.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_field.py
+++ b/pypy/jit/backend/ppc/test/test_field.py
@@ -1,6 +1,6 @@
 import autopath
 
-from pypy.jit.backend.ppc.ppcgen.field import Field
+from pypy.jit.backend.ppc.field import Field
 from py.test import raises
 
 import random
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_form.py b/pypy/jit/backend/ppc/test/test_form.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_form.py
rename to pypy/jit/backend/ppc/test/test_form.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_func_builder.py b/pypy/jit/backend/ppc/test/test_func_builder.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_func_builder.py
rename to pypy/jit/backend/ppc/test/test_func_builder.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_func_builder.py
+++ b/pypy/jit/backend/ppc/test/test_func_builder.py
@@ -1,11 +1,11 @@
 import py
 import random, sys, os
 
-from pypy.jit.backend.ppc.ppcgen.ppc_assembler import MyPPCAssembler
-from pypy.jit.backend.ppc.ppcgen.symbol_lookup import lookup
-from pypy.jit.backend.ppc.ppcgen.func_builder import make_func
-from pypy.jit.backend.ppc.ppcgen import form, func_builder
-from pypy.jit.backend.ppc.ppcgen.regname import *
+from pypy.jit.backend.ppc.ppc_assembler import MyPPCAssembler
+from pypy.jit.backend.ppc.symbol_lookup import lookup
+from pypy.jit.backend.ppc.func_builder import make_func
+from pypy.jit.backend.ppc import form, func_builder
+from pypy.jit.backend.ppc.regname import *
 from pypy.jit.backend.detect_cpu import autodetect_main_model
 
 class TestFuncBuilderTest(object):
@@ -78,7 +78,7 @@
         f = make_func(a, "O", "O")
         assert f(1) == 1
         b = MyPPCAssembler()
-        from pypy.jit.backend.ppc.ppcgen import util
+        from pypy.jit.backend.ppc import util
         # eurgh!:
         b.load_word(r0, util.access_at(id(f.code), 8) + f.FAST_ENTRY_LABEL)
         b.mtctr(r0)
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_helper.py b/pypy/jit/backend/ppc/test/test_helper.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_helper.py
rename to pypy/jit/backend/ppc/test/test_helper.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_helper.py
+++ b/pypy/jit/backend/ppc/test/test_helper.py
@@ -1,4 +1,4 @@
-from pypy.jit.backend.ppc.ppcgen.helper.assembler import (encode32, decode32)
+from pypy.jit.backend.ppc.helper.assembler import (encode32, decode32)
                                                           #encode64, decode64)
 
 def test_encode32():
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py b/pypy/jit/backend/ppc/test/test_ppc.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
rename to pypy/jit/backend/ppc/test/test_ppc.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_ppc.py
+++ b/pypy/jit/backend/ppc/test/test_ppc.py
@@ -1,13 +1,13 @@
 import py
 import random, sys, os
 
-from pypy.jit.backend.ppc.ppcgen.codebuilder import BasicPPCAssembler, PPCBuilder
-from pypy.jit.backend.ppc.ppcgen.symbol_lookup import lookup
-from pypy.jit.backend.ppc.ppcgen.regname import *
-from pypy.jit.backend.ppc.ppcgen.register import *
-from pypy.jit.backend.ppc.ppcgen import form, pystructs
+from pypy.jit.backend.ppc.codebuilder import BasicPPCAssembler, PPCBuilder
+from pypy.jit.backend.ppc.symbol_lookup import lookup
+from pypy.jit.backend.ppc.regname import *
+from pypy.jit.backend.ppc.register import *
+from pypy.jit.backend.ppc import form
 from pypy.jit.backend.detect_cpu import autodetect_main_model
-from pypy.jit.backend.ppc.ppcgen.arch import IS_PPC_32, IS_PPC_64, WORD
+from pypy.jit.backend.ppc.arch import IS_PPC_32, IS_PPC_64, WORD
 
 from pypy.rpython.lltypesystem import lltype, rffi
 from pypy.rpython.annlowlevel import llhelper
@@ -59,6 +59,7 @@
     def setup_class(cls):
         if autodetect_main_model() not in ["ppc", "ppc64"]: 
             py.test.skip("can't test all of ppcgen on non-PPC!")
+        py.test.xfail("assemble does not return a function any longer, fix tests")
 
     """
     Tests are build like this:
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_rassemblermaker.py b/pypy/jit/backend/ppc/test/test_rassemblermaker.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_rassemblermaker.py
rename to pypy/jit/backend/ppc/test/test_rassemblermaker.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_regalloc.py b/pypy/jit/backend/ppc/test/test_regalloc.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_regalloc.py
rename to pypy/jit/backend/ppc/test/test_regalloc.py
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_register_manager.py b/pypy/jit/backend/ppc/test/test_register_manager.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_register_manager.py
rename to pypy/jit/backend/ppc/test/test_register_manager.py
--- a/pypy/jit/backend/ppc/ppcgen/test/test_register_manager.py
+++ b/pypy/jit/backend/ppc/test/test_register_manager.py
@@ -1,4 +1,4 @@
-from pypy.jit.backend.ppc.ppcgen import regalloc, register
+from pypy.jit.backend.ppc import regalloc, register
 
 class TestPPCRegisterManager(object):
     def test_allocate_scratch_register(self):
diff --git a/pypy/jit/backend/ppc/ppcgen/test/test_stackframe.py b/pypy/jit/backend/ppc/test/test_stackframe.py
rename from pypy/jit/backend/ppc/ppcgen/test/test_stackframe.py
rename to pypy/jit/backend/ppc/test/test_stackframe.py


More information about the pypy-commit mailing list