[llvm] Add SD matchers and unit test coverage for ISD::VECTOR_SHUFFLE (PR #119592)
Aidan Goldfarb via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 14 14:50:54 PST 2024
================
@@ -540,6 +549,25 @@ struct BinaryOpc_match {
}
};
+/// Matches shuffle.
+template <typename T0, typename T1> struct SDShuffle_match {
+ T0 Op1;
+ T1 Op2;
+ ArrayRef<int> Mask;
+
+ SDShuffle_match(const T0 &Op1, const T1 &Op2, const ArrayRef<int> &Mask)
----------------
AidanGoldfarb wrote:
I noticed I accidentally removed the `m_Shuffle()` independant of mask. Is it correct to keep this, using the `binary_OpMatch()`? It is not either of the cases you described, however `PatternMatch.h` implements it
https://github.com/llvm/llvm-project/pull/119592
More information about the llvm-commits
mailing list