[llvm] [DAG] Implement SDPatternMatch `m_SpecificScalarVT` and `m_SpecificVectorElementVT` matchers (PR #144996)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 28 22:20:34 PDT 2025
================
@@ -110,6 +110,10 @@ TEST_F(SelectionDAGPatternMatchTest, matchValueType) {
using namespace SDPatternMatch;
EXPECT_TRUE(sd_match(Op0, m_SpecificVT(Int32VT)));
+ EXPECT_TRUE(sd_match(Op0, m_SpecificScalarVT(Int32VT)));
+ EXPECT_FALSE(sd_match(Op0, m_SpecificScalarVT(Float32VT)));
+ EXPECT_TRUE(sd_match(Op2, m_SpecificVectorElementVT(Int32VT)));
+ EXPECT_FALSE(sd_match(Op2, m_SpecificVectorElementVT(Float32VT)));
----------------
zhaohuiw42 wrote:
Added.
https://github.com/llvm/llvm-project/pull/144996
More information about the llvm-commits
mailing list