<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57706>57706</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            How to trace the local value in LLVM JIT?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          zwm0502
      </td>
    </tr>
</table>

<pre>
    int globalA=1;
int main()
{
      int localA=1;
      while(1)
      {
       localA++;
       globalA++;
      }
      return 0;
}

I wrote the code above in C language and compiled it to IR.ll .   I want to get the value of globalA and localA in the run-time.
I have found the API MCJIT::getGlobalValueAddress to get the value of globalA. 
But I have no idea to get the value of localA. 
Could you please help me? Thanks a lot.

Best wishes,
zwm
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9U9uO2yAQ_Rr8MloLQxzHD37IpWlT7UpVtdp3bCY2LTGRgVjbry_YSXa7WtXCF-bMOXMYTG3ka6V6B602tdBrwncZ4RtCd4SuY_wkVE_YirByjpHiCsJ0xRRtmo_MGRw7pTGQszt7jn_QuAmwTRz_Stx9fQaSYvd-OqDzQw_0nnXH5-cBxsE4BNchNEYiiNpcMCwBtqBF33rRhlgvA3g6B-cSlANn4PAz1RrSUCEoiH6KtegmnYvQHsEcbz4n_ryeKBxTBt8_OHXC9OaiE6Hq0fiQGfH1jwM8bb8fngkPTVwH5a-T1kuUXks5oLX_K5nCLLzxDq7ivQElUXzKms3dSFvjtYRX4-GsUViEDvUZTkj4Hp470f-2IALFpe8buUHrYFS2Q0vYdo79GU8JVtlyyemizFc0kRWXJS9F4pTTWH0zY7TjBtHMOzD5uNoKnXp8fHmC2IQve7LZknKf-EFXnXNnG_vC9mG0ynW-TsP2hInWl9vr4TyYX9i4MFXW-uhqnxcFXSZdJTPR5ILXfEGLRnKWy2IhjyvBBJPZETHRokZtK5KHH4z1OMIkEb5JvktUxShjtMw4XYabpryu85XklDO24KVsyIJiOCI6jT5SM7TJUE2Wat_aAGplnX0DhbWq7RGnckFfeNeZoQrNozllyVS6mqz_Bb4JFDw">