Displaying 3 results from an estimated 3 matches for "tp52289p52299".
Did you mean:
tp52289p52294
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
Hi Dong Chen,
I realized you are actually executing the IR, right? I am not sure if
the things I mentioned apply in that case. Actually, I wrote a
optimization pass that modify the IR. It modifies global variables and
the final IR is intended to be compiled.
A snippet of what I do looks like this:
class TestClass : public llvm::ModulePass {
public:
TestClass() : llvm::ModulePass(TestClass::ID)
2012 Dec 05
2
[LLVMdev] how to get and modify a global variable inside a module
...hether i got it right and for more details, can you get the
main memory address of the Global Variable? or did the iterator provide
method to get this?
thank you very much
--
View this message in context: http://llvm.1065342.n5.nabble.com/how-to-get-and-modify-a-global-variable-inside-a-module-tp52289p52299.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.
2012 Dec 05
2
[LLVMdev] how to get and modify a global variable inside a module
hi Eduardo,
thanks for your attention, i checked the iterator, but i didn't see any
fucntion can return or modify the main memory address of a global variable
inside the module.
can you provide some reference code or program can achieve this?
thank you very much
--
View this message in context: