search for: gp_data

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

Did you mean: vp_data
2006 Nov 28
2
[LLVMdev] question about the LLVM JIT
...l 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() == 10 > gp_data = llvmjit.get_pointer_to_global_data() > llvmjit.add_global_mapping('my_global_data', gp_data) #note: > should be prior to compile() > llvmjit.compile(llglobalmul4) > globalmul4 = llvmjit.find_function('globalmul4') > assert llvmjit.execute(global...