Author: hager <[email protected]>
Branch: ppc-jit-backend
Changeset: r53106:285f2e51cbcc
Date: 2012-03-02 04:12 -0800
http://bitbucket.org/pypy/pypy/changeset/285f2e51cbcc/
Log: emit some information when hitting not implemented operations
diff --git a/pypy/jit/backend/ppc/ppc_assembler.py
b/pypy/jit/backend/ppc/ppc_assembler.py
--- a/pypy/jit/backend/ppc/ppc_assembler.py
+++ b/pypy/jit/backend/ppc/ppc_assembler.py
@@ -1070,10 +1070,13 @@
assert 0, "not implemented yet"
def notimplemented_op(self, op, arglocs, regalloc):
- raise NotImplementedError, op
+ print "[PPC/asm] %s not implemented" % op.getopname()
+ raise NotImplementedError(op)
def notimplemented_op_with_guard(self, op, guard_op, arglocs, regalloc):
- raise NotImplementedError, op
+ print "[PPC/asm] %s with guard %s not implemented" % \
+ (op.getopname(), guard_op.getopname())
+ raise NotImplementedError(op)
operations = [notimplemented_op] * (rop._LAST + 1)
operations_with_guard = [notimplemented_op_with_guard] * (rop._LAST + 1)
diff --git a/pypy/jit/backend/ppc/regalloc.py b/pypy/jit/backend/ppc/regalloc.py
--- a/pypy/jit/backend/ppc/regalloc.py
+++ b/pypy/jit/backend/ppc/regalloc.py
@@ -920,11 +920,15 @@
return lambda self, op: fn(self, op, None)
def notimplemented(self, op):
- raise NotImplementedError, op
+ print "[PPC/regalloc] %s not implemented" % op.getopname()
+ raise NotImplementedError(op)
def notimplemented_with_guard(self, op, guard_op):
+ print "[PPC/regalloc] %s with guard %s not implemented" % \
+ (op.getopname(), guard_op.getopname())
+ raise NotImplementedError(op)
- raise NotImplementedError, op
+
operations = [notimplemented] * (rop._LAST + 1)
operations_with_guard = [notimplemented_with_guard] * (rop._LAST + 1)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit