[LLVMdev] Connecting two insns by a flag using anonymous pattern.

sanjiv gupta sanjiv.gupta at microchip.com
Fri Oct 31 00:35:24 PDT 2008


On Thu, 2008-10-30 at 08:51 -0700, Evan Cheng wrote:
> I think so. If you are defining your own SDNode's, you need to specify  
> one as producing a flag, i.e. SDNPOutFlag; the other will be reading a  
> flag, i.e. SDNPInFlag.
> 
> Evan
> 
The problem is that B produces two values: i8, flag. 
And I would like to connect C using the flag of B and not by i8.

> On Oct 29, 2008, at 2:55 AM, sanjiv gupta wrote:
> 
> > def : Pat <(A), (B (C))>;
> >
> > can I connect B and C using a flag here?
> >
> > TIA,
> > -Sanjiv
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list