[llvm] [AArch64][SVE] Mark AES instructions commutable. (PR #142919)
Ricardo Jesus via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 5 01:13:24 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:
Is there a cleaner/preferable way of doing this?
https://github.com/llvm/llvm-project/pull/142919
More information about the llvm-commits
mailing list