[LLVMdev] Connecting two insns by a flag using anonymous pattern.
sanjiv gupta
sanjiv.gupta at microchip.com
Mon Nov 3 01:15:41 PST 2008
On Fri, 2008-10-31 at 13:05 +0530, sanjiv gupta wrote:
> 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.
>
Typo in earlier email.
def : Pat <(A), (B (C))>;
The problem is that C produces two values: i8, flag.
And I would like to connect B using the flag of C and not by i8.
I think .td patterns needs ResNo mechanism.
- Sanjiv
> > >
> > > 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
> _______________________________________________
> 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