[pypy-commit] pypy arm-backend-2: print some information when hitting a missing operation in the backend

bivab noreply at buildbot.pypy.org
Mon Jan 16 09:48:55 CET 2012


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r51337:a317879ec998
Date: 2012-01-16 09:48 +0100
http://bitbucket.org/pypy/pypy/changeset/a317879ec998/

Log:	print some information when hitting a missing operation in the
	backend

diff --git a/pypy/jit/backend/arm/assembler.py b/pypy/jit/backend/arm/assembler.py
--- a/pypy/jit/backend/arm/assembler.py
+++ b/pypy/jit/backend/arm/assembler.py
@@ -1071,10 +1071,13 @@
 
 
 def notimplemented_op(self, op, arglocs, regalloc, fcond):
+    print "[ARM/asm] %s not implemented" % op.getopname()
     raise NotImplementedError(op)
 
 
 def notimplemented_op_with_guard(self, op, guard_op, arglocs, regalloc, fcond):
+    print "[ARM/asm] %s with guard %s not implemented" % \
+                        (op.getopname(), guard_op.getopname())
     raise NotImplementedError(op)
 
 asm_operations = [notimplemented_op] * (rop._LAST + 1)
diff --git a/pypy/jit/backend/arm/regalloc.py b/pypy/jit/backend/arm/regalloc.py
--- a/pypy/jit/backend/arm/regalloc.py
+++ b/pypy/jit/backend/arm/regalloc.py
@@ -1166,10 +1166,13 @@
 
 
 def notimplemented(self, op, fcond):
+    print "[ARM/regalloc] %s not implemented" % op.getopname()
     raise NotImplementedError(op)
 
 
 def notimplemented_with_guard(self, op, guard_op, fcond):
+    print "[ARM/regalloc] %s with guard %s not implemented" % \
+                        (op.getopname(), guard_op.getopname())
     raise NotImplementedError(op)
 
 operations = [notimplemented] * (rop._LAST + 1)


More information about the pypy-commit mailing list