[llvm] Add SD matchers and unit test coverage for ISD::VECTOR_SHUFFLE (PR #119592)
Min-Yih Hsu via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 24 13:37:33 PST 2024
================
@@ -125,6 +125,7 @@ TEST_F(SelectionDAGPatternMatchTest, matchVecShuffle) {
auto VInt32VT = EVT::getVectorVT(Context, Int32VT, 4);
const std::array<int, 4> MaskData = {2, 0, 3, 1};
const std::array<int, 4> OtherMaskData = {1, 2, 3, 4};
+ ArrayRef<int> Mask(MaskData);
----------------
mshockwave wrote:
Once `m_SpecficMask` takes ArrayRef rather than `ArrayRef &`, you don't need the explicit declaration of `Mask` here since `MaskData` will be implicitly converted to ArrayRef below.
https://github.com/llvm/llvm-project/pull/119592
More information about the llvm-commits
mailing list