Helper for replaceAllUses in gcc gimple

Cristina Georgiana Opriceana cristina.opriceana@gmail.com
Thu Feb 11 17:39:00 GMT 2016


Hello,

Is there any implementation for replacing all uses of a variable with
another variable in gimple?

If I want to replace the uses of a variable with another one, do I
have to do this by hand, investigate the type of the instruction and
perform a replacement where necessary or is there any sort of helper
available?

In llvm, this can be done with Value::replaceAllUsesWith(Value *V).

Thanks,
Cristina



More information about the Gcc mailing list