Home | History | Annotate | Download | only in IR

Lines Matching refs:match

61   EXPECT_TRUE(m_OneUse(m_Value(V)).match(One));
64 EXPECT_FALSE(m_OneUse(m_Value()).match(Two));
65 EXPECT_FALSE(m_OneUse(m_Value()).match(Leaf));
76 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R)));
82 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R)));
86 // Test no match on OGE.
88 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R)));
90 // Test no match on OGT.
92 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R)));
94 // Test match on OGE with inverted select.
96 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), R, L)));
100 // Test match on OGT with inverted select.
102 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), R, L)));
115 .match(IRB.CreateSelect(IRB.CreateFCmpOGT(L, R), L, R)));
121 .match(IRB.CreateSelect(IRB.CreateFCmpOGE(L, R), L, R)));
125 // Test no match on OLE.
127 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), L, R)));
129 // Test no match on OLT.
131 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), L, R)));
133 // Test match on OLE with inverted select.
135 .match(IRB.CreateSelect(IRB.CreateFCmpOLE(L, R), R, L)));
139 // Test match on OLT with inverted select.
141 .match(IRB.CreateSelect(IRB.CreateFCmpOLT(L, R), R, L)));
154 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), L, R)));
160 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), L, R)));
164 // Test no match on UGE.
166 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), L, R)));
168 // Test no match on UGT.
170 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), L, R)));
172 // Test match on UGE with inverted select.
174 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), R, L)));
178 // Test match on UGT with inverted select.
180 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), R, L)));
193 .match(IRB.CreateSelect(IRB.CreateFCmpUGT(L, R), L, R)));
199 .match(IRB.CreateSelect(IRB.CreateFCmpUGE(L, R), L, R)));
203 // Test no match on ULE.
205 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), L, R)));
207 // Test no match on ULT.
209 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), L, R)));
211 // Test match on ULE with inverted select.
213 .match(IRB.CreateSelect(IRB.CreateFCmpULE(L, R), R, L)));
217 // Test match on ULT with inverted select.
219 .match(IRB.CreateSelect(IRB.CreateFCmpULT(L, R), R, L)));
230 m_NSWAdd(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNSWAdd(L, R)));
235 m_NSWSub(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNSWSub(L, R)));
240 m_NSWMul(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNSWMul(L, R)));
244 EXPECT_TRUE(m_NSWShl(m_Value(MatchL), m_Value(MatchR)).match(
250 m_NUWAdd(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNUWAdd(L, R)));
255 m_NUWSub(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNUWSub(L, R)));
260 m_NUWMul(m_Value(MatchL), m_Value(MatchR)).match(IRB.CreateNUWMul(L, R)));
264 EXPECT_TRUE(m_NUWShl(m_Value(MatchL), m_Value(MatchR)).match(
269 EXPECT_FALSE(m_NSWAdd(m_Value(), m_Value()).match(IRB.CreateAdd(L, R)));
270 EXPECT_FALSE(m_NSWAdd(m_Value(), m_Value()).match(IRB.CreateNUWAdd(L, R)));
271 EXPECT_FALSE(m_NSWAdd(m_Value(), m_Value()).match(IRB.CreateNSWSub(L, R)));
272 EXPECT_FALSE(m_NSWSub(m_Value(), m_Value()).match(IRB.CreateSub(L, R)));
273 EXPECT_FALSE(m_NSWSub(m_Value(), m_Value()).match(IRB.CreateNUWSub(L, R)));
274 EXPECT_FALSE(m_NSWSub(m_Value(), m_Value()).match(IRB.CreateNSWAdd(L, R)));
275 EXPECT_FALSE(m_NSWMul(m_Value(), m_Value()).match(IRB.CreateMul(L, R)));
276 EXPECT_FALSE(m_NSWMul(m_Value(), m_Value()).match(IRB.CreateNUWMul(L, R)));
277 EXPECT_FALSE(m_NSWMul(m_Value(), m_Value()).match(IRB.CreateNSWAdd(L, R)));
278 EXPECT_FALSE(m_NSWShl(m_Value(), m_Value()).match(IRB.CreateShl(L, R)));
279 EXPECT_FALSE(m_NSWShl(m_Value(), m_Value()).match(
281 EXPECT_FALSE(m_NSWShl(m_Value(), m_Value()).match(IRB.CreateNSWAdd(L, R)));
283 EXPECT_FALSE(m_NUWAdd(m_Value(), m_Value()).match(IRB.CreateAdd(L, R)));
284 EXPECT_FALSE(m_NUWAdd(m_Value(), m_Value()).match(IRB.CreateNSWAdd(L, R)));
285 EXPECT_FALSE(m_NUWAdd(m_Value(), m_Value()).match(IRB.CreateNUWSub(L, R)));
286 EXPECT_FALSE(m_NUWSub(m_Value(), m_Value()).match(IRB.CreateSub(L, R)));
287 EXPECT_FALSE(m_NUWSub(m_Value(), m_Value()).match(IRB.CreateNSWSub(L, R)));
288 EXPECT_FALSE(m_NUWSub(m_Value(), m_Value()).match(IRB.CreateNUWAdd(L, R)));
289 EXPECT_FALSE(m_NUWMul(m_Value(), m_Value()).match(IRB.CreateMul(L, R)));
290 EXPECT_FALSE(m_NUWMul(m_Value(), m_Value()).match(IRB.CreateNSWMul(L, R)));
291 EXPECT_FALSE(m_NUWMul(m_Value(), m_Value()).match(IRB.CreateNUWAdd(L, R)));
292 EXPECT_FALSE(m_NUWShl(m_Value(), m_Value()).match(IRB.CreateShl(L, R)));
293 EXPECT_FALSE(m_NUWShl(m_Value(), m_Value()).match(
295 EXPECT_FALSE(m_NUWShl(m_Value(), m_Value()).match(IRB.CreateNUWAdd(L, R)));