> I think we will have to go that way since I may want to replace a "store" node also > (A store node does not produce any results). In this case ReplaceNodeWith () is my only way out.I agree we should go that way because it is more logical. However you can also work around the problem by calling ReplaceNodeWith yourself, and returning an SDValue with null node. Ciao, Duncan.
On Tue, 2008-09-02 at 09:25 +0200, Duncan Sands wrote:> > I think we will have to go that way since I may want to replace a "store" node also > > (A store node does not produce any results). In this case ReplaceNodeWith () is my only way out. > > I agree we should go that way because it is more logical. However > you can also work around the problem by calling ReplaceNodeWith > yourself, and returning an SDValue with null node. >How do we access ReplaceNodeWith in TLI ? - Sanjiv> Ciao, > > Duncan.
> How do we access ReplaceNodeWith in TLI ?I hadn't understood you wanted to custom lower: I assumed you wanted to teach legalize types what to do if the pointer type is illegal, in the generic code. Indeed if you want to custom lower then there isn't much choice. Ciao, Duncan.