[llvm] Add matchers m_ExtractSubvector and m_InsertSubvector (PR #120212)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 3 09:49:49 PST 2025


================
@@ -802,6 +808,12 @@ inline BinaryOpc_match<LHS, RHS> m_ExtractElt(const LHS &Vec, const RHS &Idx) {
   return BinaryOpc_match<LHS, RHS>(ISD::EXTRACT_VECTOR_ELT, Vec, Idx);
 }
 
+template <typename LHS, typename RHS>
+inline BinaryOpc_match<LHS, RHS> m_ExtractSubvector(const LHS &L,
+                                                    const RHS &R) {
----------------
RKSimon wrote:

(pedantic) replace L and R with Vec and Idx

https://github.com/llvm/llvm-project/pull/120212


More information about the llvm-commits mailing list