<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118844>118844</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DAG] SDPatternMatch - add m_ExtractElt / m_InsertElt matchers
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
llvm:SelectionDAG
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RKSimon
</td>
</tr>
</table>
<pre>
Add SDPatternMatch matchers and unit test coverage for ISD::EXTRACT_VECTOR_ELT and ISD::INSERT_VECTOR_ELT opcodes
e.g.
```cpp
m_ExtractElt(m_Value(), m_Value())
m_ExtractElt(m_Value(), m_ConstInt())
m_ExtractElt(m_Value(), m_SpecificInt())
m_InsertElt(m_Value(), m_Value(), m_Value())
m_InsertElt(m_Value(), m_Value(), m_ConstInt())
m_InsertElt(m_Value(), m_Value(), m_SpecificInt())
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU02PmzAQ_TXDxVpkBkjIgQMNUEX9VIhWvUUGD8QVYGSbqP33FWyVbrddaSNZtuU3bzzPfiOsVd1IlEL8DuLcE7O7aJMeP1Rq0KNXa_kzzaRkVf5VOEdm_CRcc2HDMpOxTIySzaNyzJF1rNFXMqIj1mrDDlUOYQZhVnw7HbP96fxY7E9fjufi42ml3fDD56o4_gXrqdGSLPAMeEZ-5y-7DX8azTQBz4Zz8cMZ0biid4DJcH4U_UyACeAOcM9eHOzeRNnr0brD6O5jVRM1qlXNP8TDaMm8scBXKr43xf8V3JvlFUW3L_BkGspduBMepcE2DCMMgiDxLmkiKWlljW2wkbsm3rQiCcI62mIsE7mVradS5BgFyONgGwdx4nPREichN9so5GHCIeI0CNX7fX8dfG06T1k7UxoESRJFXi9q6u3qVsROa8laZaxjaxAgAu4BceFCmFXUU-OUHvPs_YLFuWfSBXuo585CxHtlnf1zk1OuXzthiY_zl6Z_YEJK9twPDLBkz5731hfebPr04txkF4tjCVh2yl3m2m_0AFiuBT4tD5PR36lxgOUqwgKWv8VeU_wVAAD__xsKG7g">