Displaying 3 results from an estimated 3 matches for "tp52446p52456".
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hello guys,
recently, i successfully get and modify global variable by execution engine.
the functions i used are listed here:
int m=1;
EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m);
EE->recompileAndRelinkFunction(EntryFn);
x is the global variable in the module.
but how to modify the local variable in the module?
--
View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes:
> hello guys,
> recently, i successfully get and modify global variable by execution engine.
> the functions i used are listed here:
> int m=1;
> EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m);
> EE->recompileAndRelinkFunction(EntryFn);
> x is the global variable in the module.
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
....
i think that module is a structure like AST(i am not sure whether i was
right), this must be a traversal method. am i right or do i misunderstand
something?
--
View this message in context: http://llvm.1065342.n5.nabble.com/how-to-get-and-modify-a-local-variable-s-value-through-executionEngine-tp52446p52456.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.