[pypy-dev] LLVM backend

holger krekel hpk at trillke.net
Sun Feb 6 19:01:17 CET 2005


Hi Carl, 

On Sun, Feb 06, 2005 at 17:53 +0100, Carl Friedrich Bolz wrote:
> I just checked my LLVM-backend in (I hope I did nothing wrong). It resides
> in pypy/translator/llvm. It is still a bit rough but should work for most
> functions that use just ints and bools (I started addint some list and
> string support but at the moment only lists of length one work and strings
> are not tested at all).

cool!

So I just installed llvm-1.4 (on gcc-3.3.4, gentoo i386) without frontends 
and tried to run the tests.  But there is apparently some odd 
bytecode "corruption" going on ... 

> To try it out use the function 'llvmcompile' in the module
> pypy.translator.llvm.genllvm on an annotated flowgraph:
> %~/pypy/translator/llvm> python -i genllvm.py
> >>> t = Translator(test.my_gcd) 
> >>> a = t.annotate([int, int])
> >>> f = llvmcompile(t)

e.g. here i get: 

    <... traceback ...>
    ExecutionFailed: 1  llc _my_gcd_wrap.o.bc -f -o _my_gcd_wrap.s
    llc: bytecode didn't read correctly

any idea what could be the problem here? 

cheers, 

    holger




More information about the Pypy-dev mailing list