search for: get_global_data

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

2006 Nov 28
2
[LLVMdev] question about the LLVM JIT
...%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() == 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') > ass...