This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Helper for replaceAllUses in gcc gimple


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]