Displaying 2 results from an estimated 2 matches for "buildingajit2".
Did you mean:
buildingajit
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
...d, Builder.getInt64(1));
StoreInst* store = Builder.CreateStore(inc, key);}
I print that global variable during execution of instrumented code. I
access it's value by key->getOperand(0), but it's unchanged. I'm using ORC
JIT based on this tutorial:
https://llvm.org/docs/tutorial/BuildingAJIT2.html and I run ModulePass from
optimizeModule function from this tutorial.
In IR it looks like that:
%2 = load i64, i64* @globalKey
%3 = add i64 %2, 1
store i64 %3, i64* @globalKey
I tried updating value of global variable, which was present in source code
that I'm instrumenting. It di...
2020 Jun 03
2
Fwd: I cannot change value of global variable in LLVM IR using IRBuilder
...nst* store = Builder.CreateStore(inc, key);
>
> }
>
> I print that global variable during execution of instrumented code. I
> access it's value by key->getOperand(0), but it's unchanged. I'm using ORC
> JIT based on this tutorial:
> https://llvm.org/docs/tutorial/BuildingAJIT2.html and I run ModulePass
> from optimizeModule function from this tutorial.
>
> In IR it looks like that:
>
> %2 = load i64, i64* @globalKey
>
> %3 = add i64 %2, 1
>
> store i64 %3, i64* @globalKey
>
> I tried updating value of global variable, which was pres...