<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54141>54141</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Cherry-pick JIT fixes for EPCIndirectionUtils, BuildingAJIT-Ch3 to LLVM 14.0.0
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
lhames
</td>
</tr>
</table>
<pre>
`EPCIndirectionUtils::writeResolverBlock` was failing to set `ResolverBlockAddr` (broken in `962a2479b57`) which broke lazy compilation support via EPCIndirectionUtils. This was fixed in `34e539dcd78ab828210ecf7f7d2e9d2c986511b3`.
This bug should have broken Chapter 3 of the Bulding-A-JIT tutorial, but we were accidentally bypassing the `CODLayer` (and consequently bypassing the bug). This has been fixed in `1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3`.
Could 34e539dcd78ab828210ecf7f7d2e9d2c986511b3 and 1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3 please be cherry-picked to LLVM 14? Both are very low risk, being in example code and in new, little-used JIT APIs that are broken without these fixes.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNU8tu2zAQ_Br5srBAkdbroIPtNECKFA2KtHdKXFusaVElKTvu13fFOEiK5BCAkERqODszXLZWXZqkYF8etneD0g67oO3wM2jjE7GmcXY64A_01pzQbYztDoSGs_Swk9roYQ_BgscAtPwfbK2Um6EJr1pnDziAHmZQXXDJV2Xd5iXNEl7DudddDxEERv69QGePozZyVgJ-GkfrApy0hA9EpvDYa_-sRz-huhYRK8xFrTpVVrKteMUzht2u3JWKY614V1dFnmWtIGiasJuErZ-fkayd9uB7OxkFvTwhXOVvezkGdCDA7iD0CBtCUADL9fLr3SOEKVinpUn4lhgCnJGGQ5BdpxUOQRpzgfYySu9jakRA1bffb-7lBV-SkoMi94PHPxNtebeBlFFgV889eW6RhL01nmFW8JK3sqwF5rLAUrCqqityX-COqa6ukUv1zvg22v1sbDDr_GwpGA1KT-IRuh6duyxH3R1IMTXO_f2vb5CtEnELGxt6kBQYNdAFjD2D0_4Q08TZP_nDJ3kkMkpIYZRAawOeZ4zRIRhcTp5459NYP9x5ikyGSHk9wbMOdKxhjpL0zLH5dKEaoWpRy0XQxNBsXyVGooiCnXUfdd9ceTPp2AZrQi-3vXhjK2UpW0zONH0IY7xP_JbGnmRMbUpdThNjTi-v5ejsb2KnqfZ-QqK_zVfZKlv0TSuFUFLwmrUy7zJKWlVYqSKrJStWqlwY2aLxTZJvEs4pFIgU9J3kNwvdcMY5E4wzlpesTrtc7tq8EF3VFrIUZbJieKT7nM46Uuv2C9dESdRxnn4a7YN__Tm35H5AjOWIX04ULO3o5RH9IlZuovJ_brVoyw">