[LLVMdev] obtaining the address of an instruction...?

Mark Oskin markoskin at gmail.com
Sat Nov 3 22:00:33 PDT 2007


I'm currently working on a compiler pass, where it would be vastly  
simplified if I could obtain the address of an instruction.  Any  
suggestions on how to do this?  Effectively, I'm trying to translate  
code that looks like this:

instruction
branch

into:

instruction
call somewhere(&branch)
branch

thanks,

-mark



More information about the llvm-dev mailing list