[llvm] [PowerPC10][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)

Lei Huang via llvm-commits llvm-commits at lists.llvm.org
Wed May 28 10:31:53 PDT 2025


================
@@ -2159,8 +2159,133 @@ let AddedComplexity = 400, Predicates = [IsISA3_1, HasVSX] in {
                                (COPY_TO_REGCLASS $VRB, VSRC), 2)))>;
 }
 
-class xxevalPattern <dag pattern, bits<8> imm> :
-  Pat<(v4i32 pattern), (XXEVAL $vA, $vB, $vC, imm)> {}
+class xxevalPattern <ValueType vt, dag pattern, bits<8> imm> :
----------------
lei137 wrote:

All classes should start with a cap.  This was probably missed in the original patch.  Would be good to update to match new class def.

```suggestion
class XXEvalPattern <ValueType vt, dag pattern, bits<8> imm> :
```

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


More information about the llvm-commits mailing list