[llvm] [AArch64][SVE] Mark AES instructions commutable. (PR #142919)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 06:56:10 PDT 2025


================
@@ -9254,7 +9254,9 @@ class sve2_crypto_des_bin_op<bits<2> opc, string asm, ZPRRegOp zprty>
 }
 
 multiclass sve2_crypto_des_bin_op<bits<2> opc, string asm, ZPRRegOp zprty,
-                                  SDPatternOperator op, ValueType vt> {
+                                  SDPatternOperator op, ValueType vt,
+                                  bit commutable = 0> {
+  let isCommutable = commutable in
----------------
rj-jesus wrote:

Ah, thanks very much, that looks much better. :)
(Please let me know if I missed or misunderstood anything.)

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


More information about the llvm-commits mailing list