[LLVMdev] replacing instructions

Ralf Karrenberg Ralf.Karrenberg at gmx.de
Thu Jan 22 07:02:12 PST 2009


Hello everyone,

is there any way to replace an instruction inside LLVM that is more
elegant than creating a new one, replacing uses and deleting the old one
if I only want to modify the type? It is generally not a big deal, but
the issue gets really messy if I am in the middle of iterating over uses
and start deleting some of them...

I hope I could describe my problem well enough ;)

Regards,
Ralf



More information about the llvm-dev mailing list