Connecting two insns by a flag using anonymous pattern.

def : Pat <(A), (B (C))>;

can I connect B and C using a flag here?

TIA,
-Sanjiv

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

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.

> 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