[llvm] [PowerPC][XXEVAL] Exploit xxeval instruction for cases of the ternary(A, X, and(B, C)), ternary(A, X, B), ternary(A, X, C), ternary(A, X, xor(B, C)) forms. (PR #141733)

Tony Varghese via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 11 08:01:37 PDT 2025


tonykuttai wrote:

> Unsure about all the class def that just contain a dag def. Maybe we can have 1 `XXEvalUnaryOp` class with the different dag defined with descriptive names and have all the xxevalpattern classes derive from that and use the appropriate dag from there as needed?

Two classes defined for getting the Unary and the BinaryPattern.
- `XXEvalUnaryPattern`
- `XXEvalBinaryPattern`

For getting a simple dag of `vt:$vB` or `vt:$vC`, it would be simpler to do it without the use of a wrapper class. and hence I have excluded them from the `XXEvalUnaryPattern`.



https://github.com/llvm/llvm-project/pull/141733


More information about the llvm-commits mailing list