[LLVMdev] Type Legalizer - Load handling problem

sanjiv gupta sanjiv.gupta at microchip.com
Fri Aug 29 11:08:59 PDT 2008


On Fri, 2008-08-29 at 17:28 +0200, Duncan Sands wrote:
> > > LOAD node has two values but the assertion checks N->getNumValues() == 1
> > > which is not letting us change load operation. 
> > 
> > Yup, in this case you need to return an SDValue with null Val field,
> > and take care of replacing values yourself.
> 
> That said, it looks like it is done this way because no-one needed
> anything more.  It could easily be changed to handle the case of any
> number of return values.
> 
Why not use ReplaceNodeWith ?

- Sanjiv



More information about the llvm-dev mailing list