Updating the Chain


I have a short question regarding the update of chain.

I would like to morph/select a node having a simple value (only a chain, in position 0) into a node having a composed value (a return i32 value, in position 0, and the preserved chain, in position 1).

The SelectNodeTo() API build the composed result value, but does not update all the chain links to the new position. Is there an API to update all the references in the chain to this new position?

I’ve seen the SelectionDAGISel::UpdateChains() API but none of the reference architectures make a direct call to this service…

Thanks, Dominique T.

Hi Dominique,