Hello guys,
I have a question and may be you can help me. Is there a way to
replace an existing instruction in a function with another instruction
that takes care of the use-defs?
I found a couple of functions called ReplaceInstWithInst() and
ReplaceInstWithValue() in llvm/Transforms/Utils/BasicBlockUtils.h that
might do the trick. Here is the link to the programmers manual page:
http://llvm.org/docs/ProgrammersManual.html#schanges_replacing
Any ideas?
Thanks in advance.
~cheers, topo