[LLVMdev] how to get and modify a local variable's value through executionEngine?

Óscar Fuentes ofv at wanadoo.es
Mon Dec 10 06:25:07 PST 2012

Dong Chen <jameschennerd at gmail.com> writes:

> i am new to llvm, so i still have several questions. thanks for you help.
> (1)what is SSA form(static single assignment)?


> (2)how to traverse the basic blocks? if the module is gained by parser, what
> will the basic blocks contain?

Once the LLVM IR bytecode is loaded (or the LLVM assembler is parsed)
you have the same C++ objects that you previously generated when you
emitted the IR from your compiler. As for traversing those C++ objects
for examining the IR or transforming it, see

See http://www.llvm.org/docs/WritingAnLLVMPass.html

More information about the llvm-dev mailing list