Trying to pass a dummy variable called "shubha" to the X86 Assembler. Made the
following changes to code, am getting the following errors. Please
help:rpython/jit/backend/llsupport/llmodel.py
class AbstractLLCPU(AbstractCPU): def __init__(self, rtyper, stats, opts,
shubha, translate_support_code=Fa\
lse, gcdescr=None):
self.setup(self.shubha)
/rpython/jit/backend/llsupport/assembler.py
class BaseAssembler(object):
""" Base class for Assembler generator in real backends
"""
def
__init__(self, cpu, shubha, translate_support_code=False):
/rpython/jit/backend/x86/assembler.py
class Assembler386(BaseAssembler, VectorAssemblerMixin):
_regalloc = None
_output_loop_log = None
_second_tmp_reg = ecx
DEBUG_FRAME_DEPTH = False
def
__init__(self, cpu, shubha, translate_support_code=False):
BaseAssembler.__init__(self, cpu, shubha, translate_support_code)
..........+**%%%%%%**++++++++++++++++++++++++%[13772] translation-task} [Timer]
Timings:[Timer] annotate --- 301.5 s[Timer] rtype_lltype
--- 315.2 s[Timer] pyjitpl_lltype --- 177.8
s[Timer] ==========================================[Timer] Total:
--- 794.5 s[translation:info] Error: File
"/opt/shubha_vtune_pypy/rpython/translator/goal/translate.py", line 317, in
main drv.proceed(goals) File
"/opt/shubha_vtune_pypy/rpython/translator/driver.py", line 551, in proceed
result = self._execute(goals, task_skip = self._maybe_skip()) File
"/opt/shubha_vtune_pypy/rpython/translator/tool/taskengine.py", line 114, in
_execute res = self._do(goal, taskcallable, *args, **kwds) File
"/opt/shubha_vtune_pypy/rpython/translator/driver.py", line 278, in _do res
= func() File "/opt/shubha_vtune_pypy/rpython/translator/driver.py", line
361, in task_pyjitpl_lltype
backend_name=self.config.translation.jit_backend, inline=True) File
"/opt/shubha_vtune_pypy/rpython/jit/metainterp/warmspot.py", line 64, in
apply_jit warmrunnerdesc.finish() File
"/opt/shubha_vtune_pypy/rpython/jit/metainterp/warmspot.py", line 281, in
finish self.annhelper.finish() File
"/opt/shubha_vtune_pypy/rpython/rtyper/annlowlevel.py", line 217, in finish
self.finish_annotate() File
"/opt/shubha_vtune_pypy/rpython/rtyper/annlowlevel.py", line 236, in
finish_annotate ann.complete_helpers(self.policy) File
"/opt/shubha_vtune_pypy/rpython/annotator/annrpython.py", line 116, in
complete_helpers self.complete() File
"/opt/shubha_vtune_pypy/rpython/annotator/annrpython.py", line 208, in complete
raise annmodel.AnnotatorError(text)[translation:ERROR] AnnotatorError:
Blocked block -- operation cannot succeed v3556 = getattr(self_279,
('loc_m')) In <FunctionGraph of
(rpython.jit.backend.x86.regloc:251)AddressLoc.find_unused_reg at
0x18ca1da8>:Happened at file
/opt/shubha_vtune_pypy/rpython/jit/backend/x86/regloc.py line 253 ==>
if self.loc_m[0] == eax.value: Known variable annotations: self_279 =
SomeInstance(can_be_None=False,
classdef=rpython.jit.backend.x86.regloc.AddressLoc) Blocked block -- operation
cannot succeed v3557 = getattr(self_280, ('loc_a')) In <FunctionGraph of
(rpython.jit.backend.x86.regloc:251)AddressLoc.find_unused_reg at
0x18ca1da8>:Happened at file
/opt/shubha_vtune_pypy/rpython/jit/backend/x86/regloc.py line 256 ==>
if self.loc_a[0] == eax.value: Known variable annotations: self_280 =
SomeInstance(can_be_None=False,
classdef=rpython.jit.backend.x86.regloc.AddressLoc) Blocked block -- operation
cannot succeed v3558 = getattr(self_281, ('assembler')) In <FunctionGraph
of (rpython.jit.backend.x86.regalloc:160)RegAlloc._prepare at
0x87b47130>:Happened at file
/opt/shubha_vtune_pypy/rpython/jit/backend/x86/regalloc.py line 163 ==>
cpu = self.assembler.cpu self.fm =
X86FrameManager(cpu.get_baseofs_of_frame_field()) operations =
cpu.gc_ll_descr.rewrite_assembler(cpu, operations,
allgcrefs) # compute longevity of
variables longevity, last_real_usage = compute_vars_longevity(
inputargs, operations) Known
variable annotations: self_281 = SomeInstance(can_be_None=False,
classdef=rpython.jit.backend.x86.regalloc.RegAlloc) Blocked block -- operation
cannot succeed v3559 = getattr(self_282, ('loc_m')) In <FunctionGraph of
(rpython.jit.backend.x86.regloc:248)AddressLoc.value_m at 0x9a43bb0>:Happened
at file /opt/shubha_vtune_pypy/rpython/jit/backend/x86/regloc.py line 249 ==>
return self.loc_m Known variable annotations: self_282 =
SomeInstance(can_be_None=False,
classdef=rpython.jit.backend.x86.regloc.AddressLoc) Blocked block -- operation
cannot succeed v3560 = getattr(self_283, ('loc_a')) In <FunctionGraph of
(rpython.jit.backend.x86.regloc:245)AddressLoc.value_a at 0x76b0bb8>:Happened
at file /opt/shubha_vtune_pypy/rpython/jit/backend/x86/regloc.py line 246 ==>
return self.loc_a Known variable annotations: self_283 =
SomeInstance(can_be_None=False,
classdef=rpython.jit.backend.x86.regloc.AddressLoc)[translation] start
debugger...
_______________________________________________
pypy-dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-dev