Displaying 1 result from an estimated 1 matches for "chaining1057".
2013 Jan 11
0
[LLVMdev] modifiy the address of GlobalVariable emitted by JIT
...onstantValue*, I insert a call instruction
& a returnInst which looks like
%x = call @G ;
ret %x;
then remove the *LLVM IR returnInst constantValue*
The initializer of @G is a function which has prototype int f(struct MyType*
);
and the content in terms of LLVM IR is
define internal i32 @chaining1057({ i32, [32 x i32] }* %ThreadCtx1) {
"block":
%0 = getelementptr inbounds { i32, [32 x i32] }* %ThreadCtx1, i32 0, i32 1
%1 = getelementptr inbounds [32 x i32]* %0, i32 0, i32 23
store i32 0, i32* %1 ; // the first three instruction just stores
information
ret i32 296696 ; // retu...