search for: my_global_data

Displaying 1 result from an estimated 1 matches for "my_global_data".

2006 Nov 28
2
[LLVMdev] question about the LLVM JIT
...++ 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 > }''' > > def test_modify_global_data(): > llvmjit.restart() > llvmjit.set_global_data(10) > assert llvmjit.get_global_data...