Displaying 1 result from an estimated 1 matches for "globalmul4".
2006 Nov 28
2
[LLVMdev] question about the LLVM JIT
...> I'm working on using the LLVM JIT in PyPy and I hop you can give me a few
> hint.
ok
> I have some things working at and try to write C++ code for what I need
> from Python. The unittest I am working on at the moment is looks like
> this
>
> --- Python code...
> llglobalmul4 = '''%my_global_int = external global int
>
> implementation
>
> int %globalmul4(int %a) {
> % v0 = load int* %my_global_data
> % v1 = mul int %v0, 4
> % v2 = add int %v1, %a
> store int %v2, int* %my_global_int
> ret int %v2
> }'&...