[LLVMdev] Replace constant with variable

Jonas Wagner jonas.wagner at epfl.ch
Mon Jun 18 03:55:06 PDT 2012


Hello,

I wondered if there was a standard way in LLVM to replace a constant 
with a variable. The standard replaceAllUsesWith does not work because 
other constants may use the constant-to-be-replaced. I would like to 
recursively replace these by the corresponding expression.

Any ideas? Thanks,
Jonas



More information about the llvm-dev mailing list