Skip to content

Commit 88d1b05

Browse files
committed
[VPlan] Add m_Intrinsic matcher that takes a variable intrinsic ID (NFC)
Add a variant of m_Intrinsic that matches a variable runtime ID.
1 parent 13f9db2 commit 88d1b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -608,6 +608,11 @@ template <Intrinsic::ID IntrID> inline IntrinsicID_match m_Intrinsic() {
608608
return IntrinsicID_match(IntrID);
609609
}
610610

611+
/// Match intrinsic calls with a runtime intrinsic ID.
612+
inline IntrinsicID_match m_Intrinsic(Intrinsic::ID IntrID) {
613+
return IntrinsicID_match(IntrID);
614+
}
615+
611616
template <Intrinsic::ID IntrID, typename T0>
612617
inline typename m_Intrinsic_Ty<T0>::Ty m_Intrinsic(const T0 &Op0) {
613618
return m_CombineAnd(m_Intrinsic<IntrID>(), m_Argument<0>(Op0));

0 commit comments

Comments
 (0)